top 29 comments

sorted by: hot top controversial new old
[–] 159 points 1 year ago (10 children)

isFirstSuccessfulLoginAttempt

Important distinction.

  • source
  • hideshow 10 child comments
  • [–] 34 points 1 year ago (8 children)

    Yeah, as it is it only works if the brute force algorithm gets it on the first try.

  • source
  • parent
  • hideshow 8 child comments
  • [–] 4 points 1 year ago (4 children)

    Boho sort is O(1) in the best case scenario

  • source
  • parent
  • hideshow 4 child comments
  • [+] 1 point 1 year ago (3 children)
  • [–] 2 points 1 year ago (2 children)

    Yeah, stupid autocorrect. And verifying ain’t the same as doing. I’ll come in, I’ll “sort” your data, and I’ll do it damn fast. You want verification that’s extra!

  • source
  • parent
  • hideshow 2 child comments
  • [–] 9 points 1 year ago (1 child)

    At least make it if !isPasswordCorrect || isFirstTry

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 16 points 1 year ago (13 children)

    How does this 'kinda work'?

  • source
  • hideshow 13 child comments
  • [–] 75 points 1 year ago* (7 children)

    It rejects the first [correct] login attempt (it’s worded poorly). It assumes that a brute force attacker will try any given password once and move on, while a human user will think they made a typo and try again. This works until the attacker realizes that it takes two attempts, in which case it merely doubles the attempts required to breach the account, and simply requiring an additional password character would be vastly more effective.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 37 points 1 year ago (6 children)

    What a shitty user experience for regular users.

  • source
  • parent
  • hideshow 6 child comments
  • [–] 14 points 1 year ago*

    Agreed, and also makes it readily known that that is what you are doing.

    The sneakier more user friendly way to implement it would be to require the second correct attempt only if the user has made an incorrect attempt since the last successful login.

  • source
  • parent
  • [–] 22 points 1 year ago

    All tools that bruteforce passwords attempt each password only once, and if it doesn't work, discard it. Nobody really runs 2 identical attacks back to back (they're incredibly slow when done over the internet), so the password would seem uncrackable at first glance.

    This approach wouldn't work with hash cracking, vault breaking or file encryption, because once they get their hands on the hash/vault/file, the attacker can use their own code for hashing/checking a password candidate.

  • source
  • parent
  • [–] 5 points 1 year ago (1 child)

    It doesn't. Cracking programs don't use the user login form repeatedly. They use the same algorithm that creates the publicly encoded password to generate encoded passwords and keep going until they have a match. Besides getting the encoded password and salt, everything is done offline.

    This just creates a really bad user experience.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 6 points 1 year ago (1 child)

    They'll change the correct password every time because they are told it is wrong.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 1 year ago

    Don't worry, a not-insignificant number of users probably use "Forgot Password?" every time because they can't keep track of the correct one. Lol

    I suspect this is why we started to see all those "use a temporary password instead" options lately. XD

  • source
  • parent
  • [–] 8 points 1 year ago

    Center guy's hair got visibly lighter from the stress

  • source
  • [–] 2 points 1 year ago

    The only part that works is that I get to keep my trust issues.

  • source
  • [–] 2 points 1 year ago

    Is this Tron: Ares?

  • source