yeah, I code JS a lot and I draw animation a lot. This is my pet-project that I have been writing and drawing for the last 5 years https://floor796.com/
Oh my God! Both myself and my autistic child are mildly obsessed with floor 796. I have it as one of the regular opens on my shortcut list so I can see if you've made anything new. I absolutely love your art.
Thanks :) Btw I have also another account on Reddit - u/floor796 . I only use this account (MrEfil) for programming jokes, but from the Floor796 account I post things related to the project.
lol your “pet project” is one of the coolest things ever. this is dope. is there a write up on how you made it? how did you start? how it ended up where it is now?
I'm posting it to a meme template group in Hebrew, but I'm writing "original template by u/MrEfil" on it even though you didn't, because I can't have it go uncredited
They changed that due to user complaints not too long ago.
When I had first created my account, I used a password generator, to create a nicely complex password. Holy shit did I regret that, having to click the onscreen keyboard. I subsequently changed my password to an insecure and short password, that was easy to click. Nice security system they had...
Home Depot really grinds my gears because they insist on text 2fa to login all the fucking time. I don't want to get up and find my phone, I just want to favorite this bracket, ok? Just let me use my password.
My computer seems to handle those quite well, at least on the sites I visit. If I put the email in on the first page, it autofills the password on the second.
The ones that drive me bonkers are the websites where the login button is inactive until you have typed something in the password field. The auto-filled password doesn't register as me having typed in the field, so I have to add an extra letter to the end of my password then backspace to delete it before I can click to login.
For people like my mom, who doesn't remember a single password. She defaults to "I forgot my password" and just resets it, when she wants to login somewhere.
That way, when systems require rotation, you can just increment the last 2 digits. And it’s a very strong password because it meets all of those conditions.
(Please note that I’m joking. This is not a strong password.)
My password manager has a lot of sites with the correct password saved only on the "incorrect password please try again" page. But the wrong one saved on the main site. It sucks.
So pretty much everyone? or at least I would hope. Assuming someone was following best security practices for passwords, I can't imagine trying to remember all of the passwords for each of the various sites one might use. Not only that, but the convenience of not having to type them and not having to come up with complex/unique passwords, etc.
edit: to clarify, your browser (e.g. (chrome, edge, etc.) has a password manager, perhaps with less features than something like LastPass. I certainly don't doubt that most users use weak passwords. I was more commenting on the fact that people probably save whatever password they set, albeit weak, to either their browser's password manager or some other manager. And per OP's comic, this would certainly affect them as well.
Hahahahaha, oh my sweet summer child. You've only hung out with tech people for the past 20 years, huh? The absolute vast majority of internet users (90+%) are using one password for all their services, as short as they can manage.
How naive can you be lmao; I hope you are aware that like 99% of people use the same password for every website, which is something along the line of '[word long enough][last digits of birth year]!'
I have a personally created simple algorithm for generating passwords based on the name of what I'm trying to log into. It includes an allowance for occasional pw resets. Every password is different, and if you had them all sitting in front of you then you could probably figure it out, but they're not written down and neither is the algorithm so good luck.
Fun times, we used a password manager at work for hundreds and hundreds of accounts. The pw manager was exposed, suddenly all these accounts were exposed, and the busiest people in the office have to spend all this time shifting the whole thing to a new system.
Meanwhile, my little horseshit algorithm keeps chugging on.
Not even close. Even the majority of tech people I know don't use a password manager. They're gonna "get around to it when they have time".
Most non-tech people I know don't even know what a password manager is, and those who just think it sounds inconvenient because they think nobody would want to hack them anyway.
I also remember a variant from a forum signup where I forgot a password, they emailed me a temporary password, and the temporary pw was valid indefinitely so I could always reference back to that email if I forgot.
I remember finding a website once that did the same thing, but it didn’t check the email used, so you could put in whatever email you wanted + anyone’s username and it would send you their password
You also have the reset password encrypted and mail them the key to their address so that password resetted is also verified. Can't take chances nowadays.
Should just lock them out and email them a link to reset the password.
But honestly, resetting the password every time sounds like a hassle, so what if we just emailed them a temporary code to ensure they have access to their email while keeping the password as is.
Having the two factors would really help with the authentication.
Now what should we call this system... maybe "Double Trouble Verification"
In 1986, I was in my 3rd year of CS master degree (not US) and finally they bought a bunch of terminals, set up a big room and gave students a chance to put their hands on a keyboard (I already had my trusted Commodore, thanks goddess).
We were a few hundreds, they set up a lot of accounts for little groups, initially with no password. I took control of a few unused accounts and used them to show a login mask, save the password, give a message error and exit to the real login mask.
I collected some passwords. I didn't use them for anything really malicious. I just installed a script that after a while displayed random delirious fake system error messages and watched other students (friends) panic a little, sometimes contacting the system administrator who was a short fused unpleasant guy just a little older than us.
eh, if the brute forcer knows the website always rejects a password the first time, they now have to check every password twice. this doubles the brute force time. On the other hand, adding just one more digit to your password increases the brute force time by a factor of over 40.
Even still, that's gonna prevent lots of script kitty type attacks and make anyone without any knowledge of the site will find it much harder to get in.
I don't know if you're serious, but I'm not seeing this anywhere, so I'm writing it here in case you or other people didn't know: password brute-forcing is not an online process, it's an offline one. People who brute-force passwords use leaked databases of hashed passwords and very large computing resources to try trillions of passwords per second. It's much more efficient and completely bypasses any security mechanisms that you can put online, such as limiting the number of trials (which you should do instead).
Bit of both. When you put a service with a login prompt online, bots will try a bunch of common user/password tuples and give up after a while. Does this fit the academic definition of a brute force attack? Probably not, but a lot of people will call it that for nearly everyone to understand what they mean.
Orson Scott Card had a similar idea in Ender's Game (or one of the sequels)--where the kids crack a password and get it right on the first try, but the target would purposefully enter the password incorrectly the first time each login, so entering the right password on the first try exposed the crack.
Something like that--it's been 20 years, but it was such a clever idea I never forot about it.
Generally a brute-force attack will try a new password every time, while a normal user will re-write the same password, thinking he made a typo. So a brute-force attack will, by chance, type the right password, but get the "wrong password" error, then will try other passwords, and thus never get the right answer.
Brute force attacks are all about trying different passwords until you get the correct one. It's like getting a 4 digit padlock and then trying all the numbers until it unlocks.
Sites protect themselves against this by only allowing you to get a password wrong so many times before they lock your account or as this meme shows, telling you that the password is wrong the first time you try it. This meme is basically just saying that you will be told that you're wrong the first time you enter the password as this will cause a brute force program to move on.
Okay, sure, it would be annoying as fuck. But at the same time, it’s so effective. May be worth it in some rare domains that didn’t activate 2FA or something
Eh, it would be pretty easy for users to recognize the behavior, and then the people setting up the brute force program would know that they could just try each PW twice.
I'd fail this PR because either that variable is misleadingly named or it's accurate and won't work as intended. It should be isFirstSuccessfulLogin or something like that as it has nothing to do with attempts.
I stared at this picture for several minutes and it still took scrolling down in the comments for me to understand this is what they were trying to say.
jesus fking christ I re-read the post 5 times trying to understand how it would add any protection because with the dumb variable name it actually adds none. It makes sense now.
This post demonstrates bad variable names better than what OP was intending it for.
Hackers with an account will know it and implement a way to double check the same password before moving to the next one. It's not more safe, just more inconvenient for users
A lot of people talking about this as if it’s a hypothetical, but I’ve literally seen this type of protection first hand on Workday at a previous job. Used to wonder why my manager seemed to keep getting his password wrong on the first try until he told me.
My bank either has a similar system in place or their system is shit (I don’t know). You type in the password, then it just jumps back to the log in page, without error message, and then you type it in a second time and then you get logged in. So that might help with some standard bots that would directly try the next password as the tried password “failed”. But then could easily be fixed by forcing the bot to try each password twice.
That would be really awesome protection for personal system. Sadly, if that would be protecting something where everyone can make and account - the news of how it works would spread much fast - and so, it would be ez to modify brute script.
No less, if it's on system only You use, and none know about this protection - woah genius!
That's how a lot of email anti spam work at the SMTP server (or used to work). First reception of an email is assumed spam and is ignored. Second retransmission gets through (most spam sending infrastructure don't waste time retransmitting but genuine do)
Is this why my password never seems to fucking work on some sites?
There is always like 1 site where the password never works, so I change the password to what I thought I had it set as and it doesnt work the next time I need to use the site
the attempt is correct, but every first correct attempt will cause an error. Technically this will protect site from brute force attack, but it also affects regular users as every first login attempt results in an error.
If the attacker knows about this protection on the site, he will simply send each password twice. The protection is based on the fact that the attacker does not know about it and tries each password once. As a result, even if he guesses the correct password, he will not know that it is correct.
this is bad practice. Attacker can lock your account and can lock many accounts on site using this way. Thus, this protection method is not used on very popular platforms such as Reddit, Facebook, Google, etc.
The third line should have been “isFirstSuccessfulLoginAttempt”, because the brute-force attack would have attempted countless many times before getting the right one
I’m new to coding - do understand this correctly that it’s telling the user that login or password is incorrect on first attempt, even though it was correct?
This guy must be the a Paycor programmer. I swear to god my password is correct on the first shot because I fucking write it down. And every god damn time it says it’s wrong until I try it again on the like the 3rd or 4th attempt
I don’t understand programming, so I want to be sure: this is saying that if it is the first attempt, it tells the user they have the wrong user ID/Password, even if they have it right?
Yes, so that if it is a brute force attack, they will move on to the next guess for the password, which will always be wrong.
If it is the actual user trying to get in, they will think they accidentally mistyped their password, then just type it in correctly the second time around, and get in to their account.
This reminds me of the Orson Scott Card story "Dogwalker", where he did the story in cyberpunk style. One guy gets another guy to figure out what someone's password is, and he guesses correctly. Problem is, the person whose password they guessed always enters in his password wrong the very first time, then the second time he enters it correctly. The fact that the password was entered correctly the very first time alerts him that someone else is using his account.
What does this do? If you get the password right on the first try, it fails to login and asks you to do it again? Thus signalling to the Brute Force script that the password was invalid - despite its validity?
Or is it that this is like putting up a Do Not Disturb sign on an unlocked door and considering that as an adequate substitute for locking the deadbolt? ie: This is fuckin stupid beyond measure, you’re a genius! A la Troll-Physics?
In the job I have, there's a certain website that I need to use to validate some information from time to time. Istg that the captcha never works the first time.
One of the fraud protection systems I worked on, I ended up manually adjusting it to reduce the risk assessment score on subsequent attempts after realizing that actual fraudulent charges never occurred after an initial rejection.
Only real customers ever retried the same card number twice.
I swear to god Riot games does this if you have a vpn on.. Every single day i apparently mistype my password on their launcher but manage to get it correct on everything else..
I can't stand this. Back in the day I used to think, "Oh, silly me, I entered it wrong." Then I started using password managers. Yea, this is a real thing and it is infuriating.
Wait, I think that happened to me just recently! Because I got a password manager and remember a website telling me "wrong password" on the first attempt.. which actually threw me off pretty hard, that's why I remember this incident 🤔
I hate cybersecurity so much. I can’t be expected to remember jack shit. Just let me put in my password one time and have unlimited access to the accounts I’m logged into on everything I logged in with
Personally I accept any password in my website so as to not slow down the user, I find the approach of requiring an exact password with the case and so to be old fashioned. At least tell the user if they are nearly right or completely wrong.
That reminds me a "secret" api endpoint i wrote quite a fe, years ago, if you tried anything else then POST method, if you didnt included the right public key or forgot a specific parameter in body, you would get a 404 file not found error
So if you don't exactly know the right way to hit this endpoint, you would think it just doesn't exists
Wait... It doesn't even protect... Unless your password is the first one tried, when the program finally tries the right one, it isn't the first attempt anymore, so it logs in perfectly...
Only triggers when the correct PW is entered for the first time and not on incorrect pWs. Ah nvm, the function is named isFirstLoginAttemp.. in that case you are right..
Strange. I remember seeing this meme some months ago, was it on facebook?...anyway, I instantly understood the code then. Fast forward to today, seeing it yet again and I just didn't get it. I knew I had seen this somewhere and I understood it before, but not now. Somehow, this time, i kept getting confused by "...isFirstLoginAttempt". Then reading the comment to see what it was supposed to be : isFirstSuccessfulLoginAttempt.
Either the meme I saw before was modified correctly by someone, or my brain accurately "placed" the "Successful" in the line of code. I love this meme!
Brute force attacks work by trying random passwords until finding the correct password. By returning an error on the first successful password, the brute force attacker would continue trying other passwords whereas a real user would just enter the correct password a second time.
This is just fucking up people with password manager and privacy browsing... And no one should reuse password, which means everyone should use a password manager
Do brute force attacks jump to different IPs for each attempt or something? If not I figure by the time they got the password right it wouldn’t be the first attempt
2.3k
u/MrEfil Feb 18 '24
This image can be used for other jokes, so here is template in high res https://i.imgur.com/1hdK5Y2.png
12
u/Aveheuzed Feb 18 '24
Aktually...
If you get the password right on the first try, then it's not brute force 🤓
7.4k
u/LinuxMatthews Feb 18 '24
This would really mess up people with password managers.
5.1k
u/Acceptable-Tomato392 Feb 18 '24
And if the second attempt is wrong, you lock them out and give them a link to reset the password.
Can't be too safe.
1.0k
u/kopetenti Feb 18 '24
Wait wait, actually good OC content on r/ProgrammerHumor? You sick bastard!
196
u/Motor-Ad-6860 Feb 18 '24
That's not cumputer engineering at this point, it's social ingeneering.
2.5k
u/[deleted] Feb 18 '24
that’s fucking genius ngl
406
u/[deleted] Feb 18 '24
They reused this code to check the orientation of USB plugs.
80
u/rover_G Feb 18 '24
Security Assurance teams probably
180
u/tomer-cohen Feb 18 '24
I don't get how it is protecting against brute force. Can someone explain to the stupid me?
56
u/asadityas67 Feb 18 '24
I can get behind this
227
u/ReindeerDismal8960 Feb 18 '24
Bro you probably get 69-420 job proposals each and every day.
Genius, no sarcasm
57
u/SupraMichou Feb 18 '24
Okay, sure, it would be annoying as fuck. But at the same time, it’s so effective. May be worth it in some rare domains that didn’t activate 2FA or something
21
u/[deleted] Feb 18 '24
Really sick bastard in all meanings
99
u/_jackhoffman_ Feb 18 '24 edited Feb 18 '24
I'd fail this PR because either that variable is misleadingly named or it's accurate and won't work as intended. It should be
isFirstSuccessfulLoginor something like that as it has nothing to do with attempts.16
u/NickU252 Feb 18 '24
Dude turned grey in one frame.
14
u/ignore_this_comment Feb 18 '24
I swear to god my bank uses this algorithm.
Either that or they hate Firefox.
8
u/SchlaWiener4711 Feb 18 '24
Reminds me of greylisting for email spam protection. Then most annoying antispam solution by far.
One day our company didn't get half of the mail.
Turned out our provider enabled greylisting without telling us.
We complained and requested them to turn it off. They couldn't because that was enabled for all their customers.
Took us a just day to migrate to our own mail server.
6
u/IronHulk27 Feb 18 '24
Hackers with an account will know it and implement a way to double check the same password before moving to the next one. It's not more safe, just more inconvenient for users
5
u/Sceptix Feb 18 '24
A lot of people talking about this as if it’s a hypothetical, but I’ve literally seen this type of protection first hand on Workday at a previous job. Used to wonder why my manager seemed to keep getting his password wrong on the first try until he told me.
5
u/kable1202 Feb 18 '24
My bank either has a similar system in place or their system is shit (I don’t know). You type in the password, then it just jumps back to the log in page, without error message, and then you type it in a second time and then you get logged in. So that might help with some standard bots that would directly try the next password as the tried password “failed”. But then could easily be fixed by forcing the bot to try each password twice.
5
u/yoriaiko Feb 18 '24
That would be really awesome protection for personal system. Sadly, if that would be protecting something where everyone can make and account - the news of how it works would spread much fast - and so, it would be ez to modify brute script.
No less, if it's on system only You use, and none know about this protection - woah genius!
4
u/the_mold_on_my_back Feb 18 '24
First smart junior dev
4
u/zabadap Feb 18 '24
That's how a lot of email anti spam work at the SMTP server (or used to work). First reception of an email is assumed spam and is ignored. Second retransmission gets through (most spam sending infrastructure don't waste time retransmitting but genuine do)
4
u/IdealIdeas Feb 19 '24
Is this why my password never seems to fucking work on some sites?
There is always like 1 site where the password never works, so I change the password to what I thought I had it set as and it doesnt work the next time I need to use the site
1
u/AoeDreaMEr Feb 18 '24
Didn’t understand. Isn’t that how all the websites work? If attempt wrong, they give an error?
1
u/Many_Protection_9371 Feb 18 '24
Big brain, although won’t most platforms prevent you from accessing the account by locking the account after several failed login attempts?
1
u/somenewname4me Feb 20 '24
Does anyone know the source?
3
u/ardikus Feb 18 '24
Shouldn't it be isFirstSuccessfulLoginAttempt?
3
u/LookingForStash Feb 19 '24
The third line should have been “isFirstSuccessfulLoginAttempt”, because the brute-force attack would have attempted countless many times before getting the right one
3
u/Re-challenger Feb 19 '24
Spotify be like
2
u/KhellianTrelnora Feb 18 '24
Dogwalker, from Orson Scott Card, sees this in practice.
2
u/redditcruzer Feb 18 '24
So now Brute forcing gonna take twice as long.
Anyway, I swear this is already in effect in some some sites I login to
2
u/sirchandwich Feb 18 '24
This is the original MFA.
2
u/ilconti Feb 18 '24
Genius. I have experienced apps where it really like that was the design.
2
u/[deleted] Feb 18 '24
I’m new to coding - do understand this correctly that it’s telling the user that login or password is incorrect on first attempt, even though it was correct?
2
u/IcanCwhatUsay Feb 18 '24
This guy must be the a Paycor programmer. I swear to god my password is correct on the first shot because I fucking write it down. And every god damn time it says it’s wrong until I try it again on the like the 3rd or 4th attempt
2
u/SonkunDev Feb 18 '24
To solve force-brute attacks, just do "sleep 1s".
2
u/JeffTrav Feb 18 '24
I SWEAR my bank has this line of code already running. Every damn time I log in it says “nope” then it lets me in the second time.
2
u/bowtiesrcool86 Feb 18 '24
I don’t understand programming, so I want to be sure: this is saying that if it is the first attempt, it tells the user they have the wrong user ID/Password, even if they have it right?
2
u/surfjockey Feb 18 '24
Ohhh, so that’s who makes all the sites my mom goes to.
2
u/[deleted] Feb 18 '24
This could seriously disrupt individuals using password managers
2
u/My_Balls_Itch_123 Feb 18 '24
This reminds me of the Orson Scott Card story "Dogwalker", where he did the story in cyberpunk style. One guy gets another guy to figure out what someone's password is, and he guesses correctly. Problem is, the person whose password they guessed always enters in his password wrong the very first time, then the second time he enters it correctly. The fact that the password was entered correctly the very first time alerts him that someone else is using his account.
2
u/TheRiverOfDyx Feb 18 '24
“ Grandma’s HDMI Cable Guy” here!
What does this do? If you get the password right on the first try, it fails to login and asks you to do it again? Thus signalling to the Brute Force script that the password was invalid - despite its validity?
Or is it that this is like putting up a Do Not Disturb sign on an unlocked door and considering that as an adequate substitute for locking the deadbolt? ie: This is fuckin stupid beyond measure, you’re a genius! A la Troll-Physics?
2
u/blackhunter1797 Feb 18 '24
In the job I have, there's a certain website that I need to use to validate some information from time to time. Istg that the captcha never works the first time.
2
u/mrjackspade Feb 18 '24
One of the fraud protection systems I worked on, I ended up manually adjusting it to reduce the risk assessment score on subsequent attempts after realizing that actual fraudulent charges never occurred after an initial rejection.
Only real customers ever retried the same card number twice.
2
u/Rassettaja Feb 18 '24
I swear to god Riot games does this if you have a vpn on.. Every single day i apparently mistype my password on their launcher but manage to get it correct on everything else..
2
u/OverlyOptimisticNerd Feb 19 '24
I can't stand this. Back in the day I used to think, "Oh, silly me, I entered it wrong." Then I started using password managers. Yea, this is a real thing and it is infuriating.
2
u/TPRammus Feb 19 '24
Wait, I think that happened to me just recently! Because I got a password manager and remember a website telling me "wrong password" on the first attempt.. which actually threw me off pretty hard, that's why I remember this incident 🤔
2
u/Feisty-Discussion-22 Feb 19 '24
Isn't the code should be !isFirstLoginAttempt??
2
u/Rezindet Feb 19 '24
I hate cybersecurity so much. I can’t be expected to remember jack shit. Just let me put in my password one time and have unlimited access to the accounts I’m logged into on everything I logged in with
2
u/Player420154 Feb 19 '24
Personally I accept any password in my website so as to not slow down the user, I find the approach of requiring an exact password with the case and so to be old fashioned. At least tell the user if they are nearly right or completely wrong.
2
u/junkbahaadur Feb 19 '24
wait this is crazy genius typa shit
2
u/notislant Feb 19 '24
Holy shit this is actually great.
2
u/Timotron Feb 19 '24
Fucking genius....
2
u/lapetee Feb 19 '24
Ngl sometimes I fucking swear this is already a thing lol.
2
u/Neltarim Feb 19 '24
That reminds me a "secret" api endpoint i wrote quite a fe, years ago, if you tried anything else then POST method, if you didnt included the right public key or forgot a specific parameter in body, you would get a 404 file not found error
So if you don't exactly know the right way to hit this endpoint, you would think it just doesn't exists
3
u/LOSNA17LL Feb 18 '24
Wait... It doesn't even protect... Unless your password is the first one tried, when the program finally tries the right one, it isn't the first attempt anymore, so it logs in perfectly...
3
u/mplaczek99 Feb 18 '24
So I guess if you input the wrong password as a mistake you’re then fucked?
1
u/MisakiAnimated Jul 29 '24
This is actually a good idea not gonna lie, I doubt a hacker will bother double checking thousands of passwords, he'll just move on
1
u/skysoft501 Jul 29 '24
Strange. I remember seeing this meme some months ago, was it on facebook?...anyway, I instantly understood the code then. Fast forward to today, seeing it yet again and I just didn't get it. I knew I had seen this somewhere and I understood it before, but not now. Somehow, this time, i kept getting confused by "...isFirstLoginAttempt". Then reading the comment to see what it was supposed to be : isFirstSuccessfulLoginAttempt.
Either the meme I saw before was modified correctly by someone, or my brain accurately "placed" the "Successful" in the line of code. I love this meme!
1
u/Mrazish Feb 18 '24
ELI5
1
u/BabyKitsune14 Feb 18 '24
It's just that I'm used to forget what password do I use for each websites... I might not type the same password twice...
1
u/Poison_Prince Feb 18 '24
plot twist: isFirstLoginAttempt is actually sent in the request body
1
u/[deleted] Feb 18 '24
Besides the meme that's really clean code! Wish most code was written this way
1
u/erebuxy Feb 18 '24
This is just fucking up people with password manager and privacy browsing... And no one should reuse password, which means everyone should use a password manager
1
u/0P3R4T10N Feb 18 '24
Technically would work.
1
u/ilconti Feb 18 '24
Genius. I have experienced apps where it really like that was the design.
1
u/Eldraka Feb 18 '24
Do brute force attacks jump to different IPs for each attempt or something? If not I figure by the time they got the password right it wouldn’t be the first attempt