this post was submitted on 10 Apr 2026
476 points (90.9% liked)

Programmer Humor

31571 readers
2261 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
 
top 50 comments
sorted by: hot top controversial new old
[–] eager_eagle@lemmy.world 156 points 1 month ago (1 children)
[–] AlbertUnruh@feddit.org 72 points 1 month ago (2 children)
[–] eager_eagle@lemmy.world 29 points 1 month ago* (last edited 1 month ago)

whew

thankfully they redacted the phone nunber

load more comments (1 replies)
[–] rizzothesmall@sh.itjust.works 140 points 1 month ago* (last edited 1 month ago) (2 children)

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 15 points 1 month ago (5 children)

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

[–] meekah@discuss.tchncs.de 5 points 1 month ago

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

load more comments (4 replies)
[–] theo@lemmy.world 14 points 1 month ago (2 children)

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 21 points 1 month ago (4 children)

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 (4 replies)
load more comments (1 replies)
[–] the_riviera_kid@lemmy.world 111 points 1 month ago (1 children)
[–] kryptonianCodeMonkey@lemmy.world 57 points 1 month ago (17 children)

"Wrong username. Correct password."

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

[–] bleistift2@sopuli.xyz 23 points 1 month ago* (last edited 1 month ago) (1 children)

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!

[–] Buddahriffic@lemmy.world 6 points 1 month ago

But... how is password? Secure enough?

[–] Buddahriffic@lemmy.world 16 points 1 month ago

Error: password already in use by CobainKiller94

load more comments (15 replies)
[–] roofuskit@lemmy.world 92 points 1 month ago

Just good security, nothing to see here.

[–] waigl@lemmy.world 64 points 1 month ago (3 children)

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

[–] smeg@feddit.uk 17 points 1 month ago (2 children)

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 1 month ago* (last edited 1 month ago) (3 children)

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.

load more comments (3 replies)
[–] wheezy@lemmy.ml 11 points 1 month ago (3 children)

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.

[–] smeg@feddit.uk 4 points 1 month ago (1 children)

Maybe I meant unauthenticated. What is this, mandatory cybersecurity education!?

load more comments (1 replies)
load more comments (2 replies)
[–] gibson@sopuli.xyz 5 points 1 month ago

While true most of these websites expose valid usernames in other places

[–] Xavienth@lemmygrad.ml 4 points 1 month ago

Couldn't you just try and register the username to see if it's valid?

[–] mech@feddit.org 48 points 1 month ago* (last edited 1 month ago) (3 children)

Yeah, the error message could be more helpful:

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

[–] kubica@fedia.io 12 points 1 month ago (1 children)

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

[–] onlinepersona@programming.dev 9 points 1 month ago (2 children)

3rd hint: their passwords are...

load more comments (2 replies)
[–] Pika@sh.itjust.works 7 points 1 month ago

Not gonna lie back when websites had password hints that you could do. I used to put something like that where it wouldn't be the full password, but it would be either a part of the password or I would label it as same as computer password or something like that.

God, I was so insecure when I was young.

[–] joyjoy@lemmy.zip 6 points 1 month ago

AI slop is great, isn't it?

[–] M137@lemmy.world 33 points 1 month ago (1 children)

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 14 points 1 month ago (2 children)

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"

load more comments (2 replies)
[–] saltesc@lemmy.world 22 points 1 month ago* (last edited 1 month ago) (2 children)

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?!

[–] wheezy@lemmy.ml 8 points 1 month ago

I too only type my password correctly when I go to reset it.

load more comments (1 replies)
[–] TheFogan@programming.dev 13 points 1 month ago (5 children)

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 1 month ago (1 children)

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).

[–] TheFogan@programming.dev 5 points 1 month ago

Right but not only is it a security weakness, but it's also not helpful to the user. Point is the username probably exists in the system.

Say I went to a website to register TheFogan, but TheFogan already exists, so I created TheFogan2.

3 years later I go back to the website, try and log in with username: "TheFogan" password: "Hunter2", and it tells me "your username is right but your password is wrong". But in reality I have the right password for my account, but the site would just think I have the wrong password for the guy who beat me to my account.

So yeah agreed the primary reason for it is security, IE a fully user focused, while having bad security practices would be, a "if the username exists in the system, report "Username and password don't match", if the username doesn't exist report "There is no user by this name in the system". My point is the site only can know if they have a user by that username, not whether that is MY username.

[–] TheYojimbo@lemmy.world 5 points 1 month ago (2 children)

Not exactly. It should check for the username and password separately. First check if the user exists, then check if the salted passwords match.

load more comments (2 replies)
load more comments (3 replies)
[–] RamenJunkie@midwest.social 11 points 1 month 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.

[–] RogueBanana@piefed.zip 11 points 1 month ago

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

[–] zxqwas@lemmy.world 10 points 1 month ago

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

[–] MimicJar@lemmy.world 7 points 1 month ago

Website: Wrong user name or password.

Me: Password.

Website: Correct! Come right in.

[–] mitsosimo@programming.dev 6 points 1 month ago

The absence of details makes the website more secure.

[–] chattre@lemmy.blahaj.zone 6 points 1 month ago (2 children)

"Something went wrong."

motherfucker I will OPEN UP THE NETWORK INSPECT TAB AND FIGURE OUT WHAT WENT WRONG.

[–] LeapSecond@lemmy.zip 15 points 1 month ago (1 children)

Network tab: server returned an html page with the words "Something went wrong."

[–] Jakylla@jlai.lu 12 points 1 month ago (1 children)
[–] 123@programming.dev 4 points 1 month ago (1 children)

Had manager that wanted us to return error codes on a field of an API response along with an HTTP 200 because "errors bad". It needed a few of us to make him understand how that worked against common design patterns and you still had to handle error codes since you didn't know if the error would be coming from the app, web server, api gateway, local network (no internet), etc.

load more comments (1 replies)
load more comments (1 replies)
load more comments
view more: next ›