How on earth can you both not accept the password I copied from my password safe and tell me that I cannot use the same pasaword again?

  • villainy@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    6 hours ago

    I had this happen once where input validation on login and password change were different. I was allowed to set my password to a string containing a special character not accepted by the login form. Top men.

  • GrabtharsHammer@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    7 hours ago

    This often happens when you entered the right password but have a typo in the user name. Everyone tries the password again, but nobody spell checks their email or username.

  • RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    9 hours ago

    I once had to reset my password as the new one got truncated without telling me.

    Yes. It was deemed too long.

    It was for an company that got plenty of my personal data

    • cron@feddit.orgOP
      link
      fedilink
      arrow-up
      4
      ·
      9 hours ago

      Why on earth would someone truncate a password? I could make at least 10 more memea about bad handling of passwords

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        6 hours ago

        There’s no good reason. Whoever did it, did it for a bad reason. (Oh, well, there’s no good reason until you reach several thousand characters.)

        That said, it could be worse. Some sites do not truncate your password at the creation form, and only truncate it on the login screen. (Yeah, that happened to me, in 2 different sites.)

      • kautau@lemmy.world
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        9 hours ago

        Why? Probably some wild row length limit being hit where a table storing user data was storing an asinine amount of data, just terrible DB organization in an org where someone said “who even needs a DBA.”

        How? If you can truncate user passwords, you should never handle user passwords again, unless you’re a student or hobbyist learning a valuable lesson.

        • MajorHavoc@programming.dev
          link
          fedilink
          arrow-up
          4
          ·
          9 hours ago

          How? If you can truncate user passwords, you should never handle user passwords again, unless you’re a student or hobbyist learning a valuable lesson.

          Yeah. The real reason to be alarmed is worse than the obvious one.

          If a partial version of what was originally set actually works later, it implies a scary chance they’re not even hashing the password before storing it.

          • kautau@lemmy.world
            link
            fedilink
            arrow-up
            4
            ·
            2 hours ago

            I think it’s a nonzero chance they’re not hashing it. Pretty much every hashing function, in the interest of preventing collisions, provides vastly different responses on small amounts of input. Even if they were hashing it, it would just appear to be the same password in a situation where they somehow got a collision, but again, the column length for passwords would always be fixed since a hash function always outputs the same data length.

          • sloppy_diffuser@sh.itjust.works
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            8 hours ago

            Also suggests the user may be reusing the same prefix if only the changed bits are getting truncated.

            Should use different random passwords every time. Completely random or a random string of words. While it doesn’t solve the cleartext password storage issue, a data breach won’t compromise all your other accounts to same degree.

            Doesn’t hurt to also randomize usernames, emails, and even security question answers.

            edit: or my new favorite passkeys, just make sure you trust whatever tool is managing your private keys.

            • kautau@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              edit-2
              1 hour ago

              Not how password hashing works. Demonstrated with sha256:

              hunter2butitsreallylong:
              a9953dfbfec699349341edc857dcfe5c7a617c81f312cf57297d5b852881bab3

              hunter2:
              f52fbd32b2b3b86ff88ef6c490628285f482af15ddcb29541f94bcf526a3f6c7

              a hash algorithm encompasses all provided data and returns a single fixed length data response

              https://en.wikipedia.org/wiki/Cryptographic_hash_function

              Any changes, even just removing a few characters, drastically changes the output of the hash function (https://en.wikipedia.org/wiki/Avalanche_effect)

              You have no way of knowing a user password when you are storing hashes, you can’t truncate them, and the user password length doesn’t matter (up to a certain point where it’s technologically dumb to hash user input over a certain amount of data)

              I do agree however that changing / randomizing your password is important, as someone brute forcing or running rainbow tables etc on a hash dump can quickly attack a common password across different dumps

  • Willem@kutsuya.dev
    link
    fedilink
    arrow-up
    13
    ·
    11 hours ago

    If there has been a data leak, they might block your current password because the hash has been leaked

    • cron@feddit.orgOP
      link
      fedilink
      arrow-up
      10
      ·
      11 hours ago

      Yes, that might be a plausible theory. Basically a bad yersion of you must change your password.

    • MajorHavoc@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      9 hours ago

      If there has been a data leak, they might block your current password because the hash has been leaked

      I’m sure that makes them feel much better, lol.

      • Willem@kutsuya.dev
        link
        fedilink
        arrow-up
        2
        ·
        9 hours ago

        The leak doesn’t even need to happen on their site, they could check the password hash against known leaked hashes (from have I been pwned for example) and block it

  • Cid Vicious@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    4
    ·
    8 hours ago

    As someone who regularly uses a vpn, I’ve noticed that there’s a surprising number of sites that will just lock your account if they decide they don’t like your ip address.

  • cm0002@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    11 hours ago

    Lol I usually abort the password reset flow and try to login with the same password lmao

  • Majorllama@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    10 hours ago

    It’s like when you are trying to blindly install a USB type A . First orientation is wrong so you flip it. Second orientation is wrong so you get confused and flip it again only for it work easily lol.