467
top 50 comments
sorted by: hot top controversial new old
[-] M137@lemmy.world 32 points 2 days ago

It's hilarious how all OP did with this post is show everyone how dumb they are.
Seriously, how do you NOT understand the security risk of that?

[-] lobut@lemmy.ca 12 points 2 days ago

I remember there was a joke about this back in the day were someone put a joke error message saying: "that password belongs to ninja123, please enter your password"

[-] rizzothesmall@sh.itjust.works 137 points 3 days ago* (last edited 3 days ago)

Being able to determine if a username is valid without a valid password is a security flaw

Even something as simple as taking longer to validate the password when the username is a valid one can also lead to user enumeration

[-] cactusupyourbutt@lemmy.world 13 points 2 days ago

I keep hearing that, yet the websites will gladly tell you that the username is taken when trying to register

[-] meekah@discuss.tchncs.de 3 points 2 days ago

I'd assume the spam protection for signing up is a lot tighter than the one for logging in

[-] marius@feddit.org 3 points 2 days ago

There are also a lot of websites where you first just enter a username and only when that is valid they ask for a password

[-] dbx12@programming.dev 1 points 1 day ago

And this fucks with password managers as they usually expect both fields on the same page.

load more comments (1 replies)
[-] theo@lemmy.world 13 points 3 days ago

I was having a chat about this with a UX guy. His argument for using a similar flow was that the username/email will have to be validated at the point of registration anyway so you might as well make it easier for the user when the email is wrong. I couldn't really refute this logic.

If you throttle both login and registration, then surely the risk is minimised while keeping the user happy?

[-] LeapSecond@lemmy.zip 19 points 3 days ago

You see the registration problem in so many places. If the username is an email, the proper way to validate it without revealing if an account exists is to accept any email address and if it already exists say that in the registration email you would send anyway. With the appropriate throttling if needed.

load more comments (1 replies)
load more comments (1 replies)
[-] eager_eagle@lemmy.world 153 points 3 days ago
[-] AlbertUnruh@feddit.org 69 points 3 days ago
[-] eager_eagle@lemmy.world 28 points 3 days ago* (last edited 3 days ago)

whew

thankfully they redacted the phone nunber

[-] purplemonkeymad@programming.dev 3 points 2 days ago

Stuff like this is why you need to understand the reasons why, and not just the actions to do something.

[-] the_riviera_kid@lemmy.world 111 points 3 days ago
[-] kryptonianCodeMonkey@lemmy.world 56 points 3 days ago

"Wrong username. Correct password."

"Uh.... who's password?"

[-] bleistift2@sopuli.xyz 23 points 3 days ago* (last edited 3 days ago)

I don’t know who is password, or why is password, or when is password, but I do know where is password, and it’s out there!

load more comments (1 replies)
[-] Buddahriffic@lemmy.world 16 points 3 days ago

Error: password already in use by CobainKiller94

load more comments (13 replies)
[-] roofuskit@lemmy.world 92 points 3 days ago

Just good security, nothing to see here.

[-] waigl@lemmy.world 64 points 3 days ago

Any further "helpful" information in that error message would be a security issue.

[-] smeg@feddit.uk 17 points 3 days ago

I am annoyed by (but respect) APIs that take it a level further and don't even give you a 403 to say you're unauthorised, they just give you a 404 because anything else would acknowledge that the resource you requested actually existed

[-] Pika@sh.itjust.works 12 points 3 days ago* (last edited 3 days ago)

I don't respect them because most instances a 403 is more than adequate for your security. The only time I agree with having a 404 over a 403 would be file-specific pathing, but realistically the entire file directory should be a 403 instead of a 404, And then if the user is authorized to access the resource(but it isn't there), then it gives a 404.

[-] Lifter@discuss.tchncs.de 2 points 2 days ago

But if there is no resource, how can the system know whether they are authorized? 403 it is.

[-] Pika@sh.itjust.works 2 points 2 days ago* (last edited 2 days ago)

Whether you respond as a 404 or a 403 would be dependent on whether or not the user who is logged in has the authorization to read the previous directory.

A site administrator, for example, would have the authority to read the previous directory, which means that the site administrator would know whether or not the resource existed or not(as the previous directory would list it) so in which case a 404 would be proper. However, a user who doesn't have authority to read the previous directory should not have the ability to know whether or not it exists. so a 404 would not be proper here because the proper one would be a 403 because it's inherited from the previous directory.

edit: changed traverse to read, as traversal doesn't mean you can see what else is there.

load more comments (1 replies)
[-] wheezy@lemmy.ml 11 points 3 days ago

Wouldn't unauthorized only be meant for AFTER a login is successful?

Like, the user should have to have an active session first. Maybe you're just talking about that case though.

[-] bountygiver@lemmy.ml 1 points 1 day ago

unauthorized (403) is still valid for unlogged in as you can permit anonymous access to certain resources.

unauthenticated (401) is for when you should be redirecting the user to the login page

[-] wheezy@lemmy.ml 1 points 1 day ago* (last edited 1 day ago)

Thanks. I think I might have been misreading these in my head. Dyslexia is a dickhead. The number codes really helped.

load more comments (2 replies)
load more comments (2 replies)
[-] mech@feddit.org 48 points 3 days ago* (last edited 3 days ago)

Yeah, the error message could be more helpful:

Wrong password. Try again.
Hint: the correct password is gHI6shTI2!

[-] kubica@fedia.io 12 points 3 days ago

2nd hint: Maybe your have a second account with any of this names: ...

load more comments (3 replies)
load more comments (2 replies)
[-] RogueBanana@piefed.zip 10 points 2 days ago

Cisco VDI took their security to another level. Wrong password? system down? account locked? Always "Please try again later or contact support".

[-] saltesc@lemmy.world 21 points 3 days ago* (last edited 3 days ago)

try all passowrds. Fail

Maybe I don't have an account...

create new account. email already in use. Fail.

Okay, guess I'll reset the password through email.

password can't be one already used. Fail

WHAT?!

load more comments (1 replies)
[-] RamenJunkie@midwest.social 11 points 3 days ago

My bigger beef is when I enter the wrong email and it rolls me over to a sign up screen.

Fucker, I have an account, I just don't remeber which of my 20 email addresses it is.

[-] TheFogan@programming.dev 13 points 3 days ago

yeah real question how would the website even know. Whole point is to match the 2 things together. Is hunter2 my password, well that depends who are you, we've got plenty of users that have that hunter2 password

[-] GamingChairModel@lemmy.world 12 points 3 days ago

The website could know whether the username actually exists on the system. But revealing that information is a security weakness because someone could at least learn who has an account at that site (especially if usernames are email addresses, as they often are).

load more comments (1 replies)
[-] PattyMcB@lemmy.world 1 points 2 days ago

Not unless they store the passwords in plaintext or their hashing implemention is garbage

load more comments (5 replies)
[-] MimicJar@lemmy.world 7 points 3 days ago

Website: Wrong user name or password.

Me: Password.

Website: Correct! Come right in.

[-] zxqwas@lemmy.world 10 points 3 days ago

If they told you the user name is wrong you may as well publish a list of usernames of your site.

load more comments
view more: next ›
this post was submitted on 10 Apr 2026
467 points (90.8% liked)

Programmer Humor

30919 readers
1353 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS