I'm not sure that I necessarily agree with your estimate of 20,000+ attempts to guess someone's password, it depends how stringent your password policy is. If it's fairly lax and you're allowing simple dictionary words (i.e. no requirement for numbers, capital letters or punctuation), not only are you allowing passwords that are easier to brute force, but you're also allowing your users to choose words which may be very commonly used passwords because they're easy to remember. I'd be willing to bet that there are about 10 strings which are used as passwords far more often than other strings. Things like 'password', 'changeme' and 'abc123' would be at the top of my list of passwords to try even before beginning a brute force attack because chances are if you don't have a strict password policy I can break into someone's account this way with very little effort.

Also make sure that you give the same message when someone tries to log in as a user who doesn't exist as when a user who does exist logs in with the wrong password. Something along the lines of "Your username and password do not match" rather than "That user doesn't exist" and "Your password is incorrect". That way if someone is trying to get in who shouldn't and they don't know any of your user's login names it's not so easy for them to find out what they are. Using graff's analogy, don't make it any easier for them to find the door if they don't know where it is.

----------
"Write a wise saying and your name will live forever." - Anonymous


In reply to Re: Why do you have to worry about Brute Force Attacks? by Nevtlathiel
in thread Why do you have to worry about Brute Force Attacks? by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.