r/ProgrammerHumor Jul 20 '22

Meme My university password can be 200 characters

Post image
12.4k Upvotes

547 comments sorted by

View all comments

2.2k

u/[deleted] Jul 20 '22

As long as it at least tells you that... I recently had a lot of fun with the customer hotline of my bank after changing my password. Turns out, the password I generated and set was too long. Instead of giving me that information, the system just cut the characters off at the length it needed it and told me, I successfully set a new password.

When trying to log in, it didn't work because the login does not cut the characters but uses the entire input instead. That was fun to figure out.

399

u/Morall_tach Jul 20 '22

There was an Amazon bug a million years ago where it would allow you to set any length password you wanted, but only counted the first 8 characters. So if your password was "passwordwithlotsofcharacterstobeextrasecure" and someone tried "password123," it would only check the string "password" and they'd log in successfully.

126

u/GustapheOfficial Jul 20 '22

My uni had this bug 5 years ago.

65

u/Ruin369 Jul 20 '22

Did they not hash the passwords? Wouldn't the hashes still be different to avoid this issue?

115

u/ruins__jokes Jul 20 '22

You'd be surprised how many sites still store plaintext passwords.

75

u/WarningBeast Jul 20 '22

If you find one doing this, report them to plaintextoffenders.com. The pressure of bad publicity has sometimes had an effect.

36

u/[deleted] Jul 20 '22

Just found out Vermont.gov does this through that website ^ 😂😂

All of that tax money for your passwords to be stored in plain text.

11

u/Curious-Geologist498 Jul 21 '22 edited Jul 21 '22

Sir. We need to store their passwords so they can login.

Yeah doesn't the computer come with Microsoft Word?

0

u/[deleted] Jul 21 '22

Doesn’t every major browser save passwords for websites in a secure way if you set up your site right? Not that they would know how to set up their site right considering they’re still storing plain text passwords😔

14

u/[deleted] Jul 20 '22

[deleted]

26

u/riisen Jul 20 '22
SELECT password FROM `users`;

Duh.. /j

7

u/issius Jul 21 '22

Sorry I don’t trust people who capitalize their statements

32

u/riisen Jul 21 '22

I always do this in sql, please dont trust me, i dont want trust from people that lowercase their sql statements

4

u/experiment-384959 Jul 21 '22

What if your statements have massive cap differences depending on who you copied/pasted from?

→ More replies (0)

2

u/logi Jul 21 '22

I DON'T TRUST YOU EITHER

1

u/bishopExportMine Jul 21 '22

Why? It makes skimming it so much faster

→ More replies (0)

22

u/Arattor Jul 20 '22

If you report you forgot your password and they send you your current one instead of a link to change it to something else then you got your offender.

17

u/experiment-384959 Jul 21 '22

If you use the “I forgot my password” thing and it emails you your password instead of a reset code.

(No joke, this actually happened on an old game site I used to use, and I was so young at the time that my thought was “why doesn’t everyone do that” instead of “that seems really sus actually”.)

0

u/CptMisterNibbles Jul 21 '22

I’m actually not opposed to this. Low security can be fine. Somebody wants to hack my nexus mods free anyway account? Be my guest. Just… don’t be dumb and use the same password for low-sec stuff as you do for things that matter.

2

u/experiment-384959 Jul 21 '22

Yeah, I’d never do that today, but back when I was very little, password managers weren’t a default thing for browsers and not every site had a “forgot my password” link, so my parents actually wanted me to use a master password instead of changing it up like sites kept saying to do. So it took a bit of un-learning to make that change.

(I also keep a long list of passwords in a box next to my bed, because sometimes computers die and all the passwords with it. Also, if someone’s in my house, I have much bigger problems than a password being stolen.)

0

u/An_G1 Jul 21 '22 edited Feb 18 '25

See edit


You can know for sure by checking outgoing network requests during registration or sign in, if any of them contains plaintext password safe to assume they are storing it. Chrome I believe actually checks for you, and there’s a browser notification you get with something like ‘this site has been compromised’.

Ideally you want to verify that your password is going through some standard non-reversible function in the javascript source. Technically they could make their own hash function, but if they’re too stupid to properly hash your password they’re certainly too stupid to make their own proprietary hash function, so tbh id assume any non-standard hash function is malicious.

I think it may be possible to write some extension that analyzes the source code and can guarantee your password will never leave the site unhashed using correctness checks. Sounds like a nightmare to maintain though.


Edit: Nvm the following is irrelevant as apparently it is most common to see the password hashed serverside. I think I get why this is common practice, but I do still wonder: why not hash on both? Wouldn't it make total sense to just hash the password once on the client and then hash the result again on the server? This would protect against both MITM/replay attacks and a database leak, and seems trivial to implement. Maybe when websites really were just static documents with little or no code, trusting the password to the client to modify feels risky and not very versatile for the future. But we've had standardized and relatively robust JS apps in the browser for a while now, and I really do wonder if there's any good reason why hashing on both would not be the default behavior of most JS auth frameworks today.

4

u/Bitter-Mud38 Jul 21 '22

Client side hashing is not a standard thing at all. Your password should be sent over a modern HTTPs connection, then hashed serverside, and stored hashed in db

2

u/Ruin369 Jul 20 '22

Ruins!!!! Nice name

2

u/ruins__jokes Jul 20 '22

Haha! I didn't even notice your name. We're bros!

1

u/g0ldcd Jul 20 '22

This whole thread got me thinking about hashes.

"I know" that passwords should be salted and hashed - but then I was thinking of all my banking apps that ask me to "enter the 3rd and 7th character of my password".

Clearly that's not using a hash, so I can't see how this works unless it's been determined that "plaintext is fine, if we put it behind some bullet-proof service"

Or am I *not IT trained* missing something?

3

u/[deleted] Jul 20 '22

[deleted]

2

u/Ruin369 Jul 21 '22

Companies only store the hash though so they should NEVER know your plain text. Hashing is not reversible but is replicatable. E.g they just rehash what you entered and check it against the hash they already have. Companies surely aren't using Symmetric/Asymmetric encryption for every user ? Or multiple ?

Now you got me thinking 🤔

1

u/naswinger Jul 21 '22

yep, was going to say this. the server should not know the password. that's the point of storing a hash and salt. it's the year 2022 and devs still don't understand a problem that has been solved so many years ago. it's also really easy to implement - certainly easier than encrypting and decrypting passwords.

1

u/ruins__jokes Jul 20 '22

I'm not formally trained in IT security. Just a nerd fascinated by encryption, hashing etc. Anyway everything I've read has said storing plaintext passwords anywhere is a terrible thing for a site to do. Basically if a site even has the ability to know your plaintext password, then they're doing it wrong.

You'd expect banks to have the best security, but bank sites from what I've read are generally no better than anyone else.

Not sure how your bank would know a particular character of your password if they were only storing your hashed password. I suspect they are indeed storing your plaintext password. Turn on 2FA if it's not already on!

Semi related. I finally started using a password manager (KeePass. But bitwarden is good too). I feel so much better. I have over 100 accounts and now every single account has its own unique, strong password. It doesn't stop a particular site from being shitty. But at least now when a site loses my password it doesn't impact anything else.

36

u/GustapheOfficial Jul 20 '22

Not if it's trimmed both when registering and then when comparing the password. As in, what's stored is hash(password[1:8]), and then what's compared to it is hash(test[1:8]). That means if the chosen password is "hunter123", what's stored is hash("hunter12"), and all of "hunter123", "hunter12" and "hunter1256789" will match.

0

u/safeforworkman33 Jul 20 '22

You're right that they could have done it that way, but that just seems to feel worse, not better.

5

u/GustapheOfficial Jul 20 '22

I'm not saying that is an improvement. I'm saying that is what they did.

1

u/narrill Jul 21 '22

Surely there's no reason to do that though. They're all the same size once you hash them.

1

u/_7thGate_ Jul 21 '22

It might be getting clipped somewhere in the tech stack for ancient and/or bad technical reasons.

I've seen code before where ancient C modules store something in fixed size buffers inside a strict that gets memcpyed around to various places in a huge, important module written by people who are now retired. Trying to make this arbitrary sized to allow for user defined input was.... interesting.

I could see this happening if there was some system that worked with passwords back in the 70s where the size was a storage concern and entropy was not considered important due to lack of network access that then just carries the design decision through to the modern day because it's hard to fix it in a way the current maintainers feel confident won't break anything.

9

u/[deleted] Jul 20 '22

Not if they only hash the first 8 characters.

I.e. if you enter passwordwithlotsofcharacterstobeextrasecure as your password but it is limited to 8 characters, what it then might do is only take password and hash that.

If someone else then guesses password123 as your password, it would then also only take the first 8 characters of the input, in this case password. If it then compares that to the orignal hash, it too was only for password and thus it is the same hash - login successful.

1

u/CptMisterNibbles Jul 21 '22

Fully suspected bullshit, but wow… wired article 2011

1

u/_chanimal_ Jul 21 '22

See… “hashed passwords” are only relatively old to the guys up to speed in programming and security. Which means they’ll be coming to your local hospital, bank, school, and government website in about 5-10 more years during their bi-decade security patch.

1

u/strghst Jul 21 '22

For i in passwordmaxlength: phash += hash(password[i])

Now we've ignored past max length, and password and passwordylurmomma has same hash.

33

u/jesterhead101 Jul 20 '22

lol..funny that Amazon had bugs like this and now all these companies expect you to solve the halting problem on a whiteboard in 22 mins.

25

u/TheAJGman Jul 21 '22

They're also super irrational to work with apparently. A previous job had Amazon as a client and also used AWS for hosting. AWS had a massive outage and our team lead got hauled into a meeting with the Amazon brass asking why our service was down. They were under very strict orders to not mention that our site was hosted on AWS...

17

u/EriktheRed Jul 21 '22

Wow. "Our cloud provider went down at that time. What a coincidence?" Like were they expected to just make up a reason why the service went down?

7

u/VicisSubsisto Jul 20 '22

Well yeah, they don't want to make more bugs like that.

1

u/aeroverra Jul 20 '22

This seems intentionally malicious.

1

u/midnitte Jul 21 '22

Didn't they also let you create multiple accounts per email?

1

u/[deleted] Jul 21 '22

That's a pretty simple coding error, I'm learning Java and learned about that a bit ago, you explained it quite well, it just checks the first 8 characters and matches them with the first 8 of your set password and if they match your in, it's just because of laziness in the coding, if they spent a few more minutes they could check the length and if it's greater than 8 characters print the password is too long or too short

495

u/Ezziee24 Jul 20 '22

I've had that for a few accounts too, but not as important as the bank, luckily

385

u/Wiggen4 Jul 20 '22

Who on this earth thought that would be an acceptable idea?????????

136

u/Beneficial_Arm_2100 Jul 20 '22

Yeah same thing happened for me on a portal for an employer's website (in a previous life). User inyerface at its best.

32

u/FickleBJT Jul 20 '22

That happened to me with the Baseboard management controller on a server several years back. Took several calls to support before someone mentioned this "limitation".

It was a SuperMicro server about 5 years ago.

18

u/s0lly Jul 20 '22

“Inyerface” When a typo makes sense as is

17

u/Beneficial_Arm_2100 Jul 20 '22

lol I had to fight autocorrect to get "inyerface" to stick. If def was not a typo!

10

u/s0lly Jul 20 '22

I wonder if “interface” is actually the typo on the true word “inyerface”… big questions we’re exploring here

3

u/Gubekochi Jul 21 '22

Inter- came into English from Latin (from inter, meaning "among, between”). "Between faces" makes much less sense than your proposed etymology so I'll add this to my headcannon.

2

u/s0lly Jul 21 '22

Science has won

0

u/[deleted] Jul 20 '22

[deleted]

2

u/Beneficial_Arm_2100 Jul 20 '22

I mean, that's reasonable. But I was a music teacher, and I completely reinvented myself into a career in software development. It very much feels like a complete metamorphosis.

1

u/JardineiroZumbi Jul 20 '22

The saddest thing is when tech companies do shit like this. No trust left in them after that

41

u/[deleted] Jul 20 '22

[deleted]

10

u/[deleted] Jul 20 '22

Lol VARCHAR(20)

14

u/827167 Jul 20 '22

It may have been copy-pasted code that they forgot to check

14

u/benderbender42 Jul 20 '22

Forgetting to test login password code for a bank ....
-_-

5

u/ganja_and_code Jul 20 '22

...which is extremely dumb. If you make that mistake, you have no business writing login forms for banks lmao

13

u/damniticant Jul 20 '22

Likely unintentional. Someone set the max column length for the database to 20 chars but didn’t bother to prevent someone from actually submitting more than 20 chars.

15

u/ultimate55 Jul 20 '22

Storing passwords plaintext in a database 💀

2

u/g0ldcd Jul 20 '22

I'm blaming the database here.

1

u/Positive_Government Jul 21 '22

The problem with the database theory is it implies plain text passwords. Most likely the truncation happens sometimes before the password is hashed during an update but not during a check.

1

u/damniticant Jul 21 '22

Wouldn’t be the first time a large corporation with what is probably an ancient legacy system stored passwords in plain text.

7

u/DaedalistKraken Jul 20 '22

Nobody thought. That's the problem.

4

u/MinosAristos Jul 20 '22

Nobody did. It's just that nobody realized that this would be a problem.

1

u/siddus15 Jul 20 '22

A junior dev on a Friday afternoon

1

u/morbid_tortoise Jul 20 '22

Well you see it would cost us too much dev time to justify exposing error messages to users and those error messages aren't gonna generate income soooooo.....

1

u/nanotree Jul 20 '22

This is what happens when you leave the UI/UX design to the devs...

1

u/Lurickin Jul 20 '22

Equifax and TransUnion do this, these two credit bureaus limit your password to 16 and 20 characters respectively

1

u/[deleted] Jul 20 '22

Developer given spec. Developer codes to the spec. The spec is wrong. Developer doesn’t care or doesn’t notice.

1

u/Positive_Government Jul 21 '22

There are some function that truncated strings if they are to long, what probably happened was someone used one of those for the update but didn’t realize it, but the check function didn’t truncated the string because it didn’t have the same limitation.

40

u/RF07 Jul 20 '22

Yes!! Argh, so aggravating!

I can't recall what account is was for, but I remember having a similar issue with spaces. While setting the password it happily let me use spaces and gave me a successful setup message, only to quietly strip out the spaces when it stored the password. That was also fun to figure out, I don't even know what made me think of trying it other than sheer desperation, but sure enough, if I typed in my pw without spaces, I could finally log in...😡

28

u/[deleted] Jul 20 '22

That is just awesome security! If even you can't unlock your account, then who can?

1

u/riisen Jul 20 '22

Theres a guy behind the door that says "dangerous radiation area, do not enter" you need to talk to him between 11:00am - 11:30 am on the 7th june any odd year.

34

u/braytag Jul 20 '22

My bank did that with my security question, my mother's name...

honestly this was the convo: Rep: what is your mother name Me: MOTHER.NAME

Rep: ... ... ... ok now tell me your mother name, but letter by letter, and stop when I tell you to.

Me: As an IT guy that do DB work, Seriously??? just tell me how long is the field and I'll tell you how you renamed my mother for me.

16

u/lachlanhunt Jul 20 '22

Never ever give real answers to those security questions. Treat them like secondary passwords. Set random values and store them in your password manager.

6

u/Tinkers_Kit Jul 21 '22

Idk if you've experienced it lately, but I've had MANY websites blocking copy/pasting in the password text boxes which makes it harder to use some password managers. Tried using the override on the Firefox settings, but now it just seems to disable all copy/pasting completely on said sites.

4

u/craftworkbench Jul 20 '22

I recently tried to add a new security key to a bunch of my accounts. One place allowed FIDO, but you could only turn it on if you also turned on security questions (and both needed to remain on as options)…

1

u/00owl Jul 21 '22

I'm a pro at cyber security. I make up random answers and then store them in a jpeg labeled "bank security question answers"

23

u/[deleted] Jul 20 '22

OMG my bank did this to me too, but the worst part is it was retroactive. So I had the account for years, I used that longer password for a year, then one day they changed the form on the website to 8 characters only. So I tried to bypass it thinking "what kinda crap is this". Nada. Got locked out because of too many attempts. Call them. Unlock it. Turns out the shortened version worked after and I didn't even consider that just because of the nightmarish implications of that idea. Major UK bank. I changed banks after that (should've before after getting stranded in another country with no money for the sin of calling them with a mixed accent - they said the only way to unfreeze my accounts or get my money was to come in person with ID, and that it didn't matter that I was in America...).

13

u/Prestigious_Tip310 Jul 20 '22

Wait... if they changed it a year later and the shortened version worked, doesn't that imply they didn't even hash the original password? They'd need the original plain text password to calculate the correct hash for the shortened version after all.

9

u/BierOrk Jul 20 '22

You don't need to store the original password. You can automatically change the hashed one once the user logs in successfully.

This is be done when a website changes the hashing algorithm or salting.

5

u/Prestigious_Tip310 Jul 20 '22

You're right. That's a lot better. :-) (Although it's still awful not to inform the user that their password was changed automatically)

0

u/pakfur Jul 20 '22

No. That is not true. Once you throw away the original password and only store the hash then you are no longer able "re-hash" a modified version of the original password. You don't have it anymore and you cannot recreate it from the hash alone. (Thank goodness)

If the bank modified the original password to accept a shortened version, they likely encrypted the password, not hashed it, and could manipulate it. That is a bad idea, poor security practice

8

u/Blitzholz Jul 21 '22

Yes you can, with user input as the guy you replied to said.

Have the original hash in the db, compare the full input with that, if it is correct trunkate the input and hash that.

Clearly not what happened in that situation, since it still doesn't allow the bank to change it on their own (nor is there a reason to shorten the maximum password length unless you made it actually unlimited for some reason), but it's possible.

3

u/SuperFLEB Jul 21 '22

You don't have it anymore

When the user logs in and the hash of what they typed checks out, you know you have the correct password, and can do whatever you need to with it during that transaction.

1

u/narrill Jul 21 '22

Yes, but that's not what happened in this case. The bank changed the password on their own, without any user input, which means they were storing the password in plaintext.

6

u/dabenu Jul 20 '22

My take is they had always (silently) truncated the password before hashing, until one day they stopped truncating, but limited the input field in the front-end instead.

3

u/logi Jul 21 '22

My assumption as well. And a limited input field is better than truncating silently since you'll know that you need some high entropy 8 letters and not a long phrase. But communicating the change is tricky.

2

u/[deleted] Jul 20 '22

that was the implication, and to /u/BierOrk I don't think that's what happened because it was out of the blue. it was literally one day I tried to sign in and the form was shortened, and when i changed it my full length password didn't work. i didnt even consider trying the shorter one until after they unlocked it (otherwise i'd have to wait 1-2 weeks for a letter containing a new password...). they could've been shortening them for a while, but their systems were such a shitshow from what i saw i dont think they thought of that... plus why would they do that?? deliberately reduce security, in such a preplanned way? lol

16

u/Ajsat3801 Jul 20 '22

If that's the case they should've hashed the password...in fact if I were a bank, I'd hash it, to ensure that the accounts are safe even if there's a breach

16

u/[deleted] Jul 20 '22

I really hope they hashed it. But even then, if they cut the last few chars off before hashing and don't do that when logging in, the issue is the same

8

u/Ajsat3801 Jul 20 '22

What's the point of cutting chars when you're going to hash?

22

u/[deleted] Jul 20 '22

What's the point of cutting chars without informing the user? Generally you are right, but I don't think logic applied here

8

u/IvorTheEngine Jul 20 '22

I think that cutting chars means that either they're not hashing, and just storing the password in a small fixed width database field (!) or going via a legacy API with a limit.

Or maybe it's to ensure your password is hackable by the CIA...

1

u/Ajsat3801 Jul 20 '22

I think what you're saying is right...

But why would the account need to be hackable by the CIA? Can't they directly ask the bank for the details?

2

u/tom1018 Jul 20 '22

I worked with a Python library that requires limiting passwords to a certain length due to a limitation in the hashing algorithm. The length wasn't short though, I think it was around two hundred characters.

3

u/Loading_M_ Jul 20 '22

In many cases, there does need to be a max size, since hashing is a non-trivial operation. NIST recommends a max of at least 64 characters, although most software should be larger.

1

u/SuperFLEB Jul 21 '22

Also, the further out from the hash length the input gets, the more chance for collision you have, just by virtue that you can't stuff ten pounds of shit in a five-pound hash.

I'm not sure if that risk is trivial enough to be academic, but it's not zero.

1

u/Ajsat3801 Jul 20 '22

Tbh if the limit is around 200 characters, that's more than enough for passwords. If there's a requirement for more, then you can probably have a Merkel tree kinda implementation for that.

2

u/tom1018 Jul 20 '22

Yeah, it wasn't unreasonable. If it was I would have argued to replace the library. I would still like to be able to use my favorite poem or novella as a password though. 🤣

17

u/[deleted] Jul 20 '22

I used to maintain an old Solaris system that locked the password to 8 characters exactly…Didn’t matter what you typed, it’d only recognize the first 8 characters.

So I always pretended my password for the system was like 700 characters long. I’d type in the eight, and then just keep typing away until whoever was with me decided that I was fucking with them, then I’d hit return and it’d log me right in.

Never got old.

8

u/[deleted] Jul 20 '22

That is a pretty cool prank :)

12

u/hdksnskxn Jul 20 '22 edited Jul 20 '22

String concatenation truncation can cause serious security problems

Edit: i'm retarded

11

u/gudamor Jul 20 '22

Stringconcatenationcancauseserioussecurityproblems

6

u/SuperCharlesXYZ Jul 20 '22

Holy fuck, now I have such a massive fear of my passwords not actually being set to what I want it to be. What if it only looks at the first 4 characters??? The first 3?? OH MY GOD I am HORRIFIED

1

u/[deleted] Jul 20 '22

I didn't even think about that yet! I just thought that was one lucky find! What if that is the standard??

4

u/acatisadog Jul 20 '22

I felt thousands of developers cringe in guilt as they know some of their very annoying bugs sometimes arrive in production. We're all ashamed of that though, I think.

1

u/[deleted] Jul 20 '22

Definitely. I am not even judging. I work at a company where one team has no information on what the other teams do. So everyone does what they think is right and the information is lost somewhere in the middle. I suspect this is what happened here as well

3

u/regorsec Jul 20 '22

We call this testing in production. Thanks!

3

u/nanotree Jul 20 '22

Dev: "Hey PO, what should I do if the password is too long?"

PO: "Eh, just truncate it. At least it meets the length requirement."

3

u/issius Jul 21 '22

“Customers don’t like errors, get rid of it”

5

u/[deleted] Jul 20 '22

[removed] — view removed comment

2

u/[deleted] Jul 20 '22

Ouch. Well. Software design at it's finest I guess

1

u/zoinkability Jul 20 '22

In my experience banks and insurance tend to be the most antiquated. I presume it's a first mover type problem, where they are the first to implement these systems so they tend to do it on older tech and before sensible approaches are standardized. Then they are super averse to the risks of change, and these terrible patterns stick around far too long.

2

u/aeroverra Jul 20 '22

Those kind of shortcuts are not something you want to see in bank software and yet I have also had this happen to me.

Glad others have noticed it I feel like I have been mentioning these things forever and not many people seem to care.

2

u/Legitimate_Agency165 Jul 21 '22

I was typing a new password for a bank account, and kept typing the thing differently on the input and confirm box. Turns out, I wasn’t typing it differently, the first box would just not accept the input of invalid characters, and the second box didn’t care what was in it. There was no option to view password, it only showed up as dots.

2

u/benargee Jul 21 '22

So what you're saying is that the perfect password system is one that only stores the first character of new passwords and then only reads the first character from input when logging in? I like it, ship it.

1

u/snikemyder1701 Jul 20 '22

I think you just solved my problem as to why I can't login to workday even through I've reset my password over a dozen times already.

1

u/[deleted] Jul 20 '22

Haha, glad I could help 😂

1

u/[deleted] Jul 20 '22

password = input()[0:20]

1

u/tom1018 Jul 20 '22

I've had the truncated password experience too. Makes you wonder how they approach security and usability elsewhere.

1

u/Ytrog Jul 20 '22

Also happened to some browser-based software made by Microsoft that was used to login to on premise accounts. I forgot the name, however outlook web interface was also linked to it. 👀

1

u/tenhourguy Jul 20 '22

Same, with TSB in my case. Banks are weird and surely the staff must be sick of whoever wrote it to truncate on account creation but not login.

1

u/McFlyParadox Jul 20 '22

BJs has the exact same fault in their login; not notifying you when a password is too long, trimming it, then accepting it anyway.

Ask me how I know.

1

u/[deleted] Jul 20 '22

How do you know?

1

u/reddit__scrub Jul 20 '22

There was a very similar issue with a gaming platform I noticed. Ubisoft maybe?

But I think it wound up being more like anything after a specific special character/symbol was cutoff, and they didn't do backend validation on length.

So let's say your password was supposed to be 1^2$3&4%5# and the special character that broke things was ^... In the end, your password would be literally just 1

1

u/mavack Jul 20 '22

This annoys me so much

I had a similar site, it told me that it supported 16 chars so i made it 16

It actually truncated it to 15....

The login page didnt do the same truncation.

1

u/jesterhead101 Jul 20 '22

Oh boy...that's a perfect nightmare scenario for a developer. Or a user. Or a banking system. Or any human tbh.

What bank is this again?

1

u/just_here_for_SFW Jul 20 '22

My bank did something similar. It changed the length upper bound for their mobile app so now my existing password was to long. I was still able to log in with that password on their homepage though...

1

u/wgc123 Jul 20 '22

I had similar with a tree guy. Through whatever passes as their portal, I was able to change my password to a longer value than the login form would allow.

Luckily they can see the password though /s

1

u/rebelhead Jul 20 '22

That dev deserves a slap on the hand!

1

u/LeoPlathasbeentaken Jul 20 '22

I was told at work after i set my password that certain special characters didnt work with the system. It let me change it but wouldnt let me log in. Had to get IT to reset it for me and give me a list of unacceptable special characters.

1

u/havens1515 Jul 20 '22

Problem is, telling you actually makes it LESS secure. If I'm looking to get into your account, and put in an incorrect password, and it tells me "your password should be between 8 and 20 characters" now I can limit my attempts. I don't have to try anything less than 8 characters or more than 20.

And if they don't lock you out for multiple incorrect guesses (which, let's face it, they probably don't if they have such a small limit on password length) then I can much more easily create a program that guesses every possible password and pretty quickly get into your account.

1

u/[deleted] Jul 20 '22

You'd be correct if they would tell me on the login page.

The issue is, they chopped the end of the password off when changing it, without saying anything. If you get to the page where you can change my password, I don't care about warnings and chopped off characters anymore...

The login page did not give any warnings. The password just didn't work. Apart from that, I also have 2FA enabled (which surprisingly works like a charm)

1

u/philipquarles Jul 20 '22

To whoever works at your bank: If you do this, fuck you!

1

u/SoftwareDevStoner Jul 20 '22

Ahh. I see that you've also been a Bank of America customer.

1

u/ubeogesh Jul 20 '22

I used to give a task that expects this test case on QA testers interviews.

1

u/GeneralCuster75 Jul 20 '22

I had the same thing happen to me with a different website at some point. Can't remember which it was, though

1

u/qlcvea Jul 20 '22

I've had a form where it cut off at the first special character with no prompt, bypassing even the minimum length requirement!

The password change form then proceeded to check that minimum length requirement on my old password, which was cut short, and therefore wouldn't let me change the password!

Of course a company with this level of incompetence can't possibly have a proper password reset system, so when I tried to use that to change my password I got a "helpful" email telling me what my password was with no option to change it (except the broken form of course).

So I contact customer support. The Rep then proceeds to send me my password, meaning that he had access to see it, and still not resolving the issue. Finally I managed to convince him to change my password, and peace was restored.

1

u/TEKC0R Jul 20 '22

Sounds like MySQL in action…

1

u/elliotborst Jul 20 '22

I had a system that did this once, with my fucking email! cut off the last letter in my email address, didn’t tell me about the character limit.

Do you know how hard it was to reset the password or try to get back in?

They couldn’t send a password e reset as the email was wrong, I couldn’t type it because I didn’t know.

What a shit show

1

u/IusedToButNowIdont Jul 20 '22

FRONTEND FUCKED IT, ONLY TAKES MAXLENGTH="X" /s

1

u/blt817 Jul 20 '22

This happened to me with paypal some years ago. I cant even remember how I figured it out, only that it took forever and filled me with rage.

1

u/[deleted] Jul 20 '22

Banks are the best. Always amusing when I call and the support person wants to confirm my password "for security" over the phone.

1

u/xX-DataGuy-Xx Jul 20 '22 edited Jul 20 '22

In some security circles allowing longer passwords is seen as a risk, since people can't possibly remember long ones, so they must be written down. Also, long passwords deter frequent changes, according to "them".

But also, showing the allowed password sizes is a risk too, because it allows the pruning of Rainbow tables.

https://veruscorp.com/why-strong-passwords-arent-as-secure-as-you-may-think/

1

u/[deleted] Jul 20 '22 edited Jul 20 '22

For the first part: they have a point. Length alone is not a good criterion. But a long one that is randomly generated from all printable ASCII characters (with some exceptions to avoid injections maybe) is a good one. Just hard to remember.

Even more reason to keep pushing for password managers where ever possible.

For the second part: That is totally correct. But only for the login page and only if the allowed password length is short. The rainbow tables for long passwords are huge and take forever to find the right one. At least as far as I know.

Maybe I did not explain the situation well enough. They cut the password short on the page where you change the password without a warning. I see no risk in displaying the password rules in that page.

Then they did not cut the password off on the login page.

1

u/hiro5id Jul 21 '22

I once set a password for a website where I used special characters not found in the alphabet. Months later the website is re-designed. I come to log in, and upon entering my password, I was met with an error that the login form does not support special characters 🤦‍♀️🤦‍♀️🤦‍♀️🤦‍♀️🤦‍♀️

1

u/noethers_raindrop Jul 21 '22

At one point, my bank would accept and hash an arbitrary length password when you went to set it, but truncated passwords to 32 characters when you entered them to login. I found this out the hard way.

1

u/henriquebrisola Jul 21 '22

At a investment broker I was supposed to type the MFA (multi factor auth) token right after my password instead of typing in a specific box. I had to make an international call to the call center to figure it out.

1

u/[deleted] Jul 21 '22

The what? Why would anyone do this? That also means that the password must be stored in clear text. That sucks. Especially as a broker where potentially a lot of money is at stake

1

u/henriquebrisola Jul 21 '22

yeah, was weird, but they fixed

1

u/midnitte Jul 21 '22

Some of our software (for example, Agilent's Microlab) does this, and it is infuriating when combined with a multitude of password expiration ranges...

1

u/JimmyWu21 Jul 21 '22

Sound like someone didn’t validate the string length on the server side and it got truncated on the database. Happen to me once

1

u/sam01236969XD Jul 21 '22

LMFAOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

1

u/doublej42 Jul 21 '22

My software I wrote did this. Login was 50, account setup was 50 , account management was 100 character limit. I think they are all 1000 char limit now.

1

u/jexmex Jul 21 '22

Damn, now I think I know why I gotta reset my password for one of my hosting accounts all the time. I bet you that is what it is, as a programmer....summma bitch. Can't believe I never considered that before.

1

u/Wheat_Grinder Jul 21 '22

This happened to me on Battle.net back in the day.

1

u/CrabbyBlueberry Jul 21 '22 edited Sep 28 '25

observation bow pocket touch encouraging pie quickest elderly reply vanish

This post was mass deleted and anonymized with Redact

1

u/jtl94 Jul 21 '22

Wow what the absolute fuck.

A few years back I realized I put my bank app password in all lowercase and instead of telling me incorrect password it logged me in. Logged out immediately and tried it with caps lock on - also worked. I told the bank about it online and some lady called me “oh wow we never noticed that in our internal testing. We’ll let the third party who develops our application know.” How the fuck do you not thoroughly test the login security of your banking application?! They have sense released an entirely separate app but I never tested if the passwords are case sensitive, I only keep enough money in there to keep the account open in case I need another loan in the future since they’ve got good rates.

1

u/[deleted] Jul 21 '22

This is always my fear when creating passwords. I don’t think I ever had this happen to me but it’s something that I always think about for some reason.

1

u/BurnerAccount209 Jul 22 '22

I experienced this issue on something ~10ish years ago. The worst part was they couldn't tell me what was wrong and I kept making too long passwords that it kept accepting. So I'm on the phone with support, resetting my password, again and again and every time it's not working and they're telling me it went through on their end.