Not a programmer but I think what this does is it'll return an error message the first time you try to log in with the correct password. In theory this will prevent brute-force attacks that will only try a password once before moving on.
Well, could also mean you got exactly one character wrong. Upper or lower case gets flipped, didn't shift the number into a special character. But it is possible that this is an actual security bit by some websites.
It exists and is called grey listing in email spam protection. Though I haven't encountered it with passwords, I've also seen it with captchas where the first solution is never accepted by the website.
Then you type in the same password 3 more times, and then click "Forgot Password". And THEN when you type in your original password as your new password, it tells you "Can't reuse an old password".......
Most brute force attacks are done offline, when atacker has usernames and hashes of their password. When you try to brute force online, most websites will limit your attempts after many tries. (to crack even 8 symbol password without special characters, you have to try 5,444,517,870 times!)
Yooo thanks for explaining this from now on I'll always try my passwords twice bit happens to me a lot that I'll try and log into an account and it says my password is wrong 😅
Except that is not quite what it does. Your first login attempt and your first successful login attempt are two different things. As written this offers no protection vs brute force attacks.
A brute force will go through every password once, this code means the first time you get it right it will return a wrong password so you have to enter it twice. Hence a brute force will only try once and then skip the correct password. I probably worded this horribly
I mean, you can slow it down to a period of time that is an appreciable fraction of the heat death of the universe. That’s pretty good security for most use cases.
About 95% of them would already be blocked because we have annoying requirements (10+ chars and 3 out of 4: lower case, upper case, num, symbol).
Usually we just log something like that, but someone insisted on notifying for a while to monitor it. We got dozens per day, probably 25% of people trying to change their password were repeatedly trying to pick one of the terrible passwords.
Everybody was making fun of me because my first day I forgot my password immediately.
The problem was by the time i made a password that fit their insane criteria I had forgotten the little details. Which of the 4 characters were caps. Which were lowercase. What 3 symbols I added.
I think you're talking about time between changing passwords.
That's not what's being said here. It's how long a computer program would have to run to try every combination possible of uppercase, lowercase letters, numbers and symbols until it can "guess" the correct password.
For a reasonably long and complicated password, it could take a supercomputer hundreds or thousands of years to figure out through brute force.
Install a 2 second delay between the password submitting and it confirming if it was correct or wrong, with any password over 10 characters a brute force hack could take years to beat it
Would not work, an attacker can just send 1 million requests in a second, wait 2 seconds and get the response for all 1 million attempts. He does not have to wait for attempt 1 to finish before he sends attempt 2.
The server can just refuse the request while there's one pending. It's a glorified DDos attempt, but it makes no sense to process multiple authentication requests at the same time.
There is a real DoS attack here though. A user can no longer log in because somebody repeatedly sends log in attempts every 2 seconds and denies them access.
To be honest, all of this doesn't really have any effect on how security actually works. Any sane website will lock you out of guessing passwords after several failed attempts, which prevents any kind of brute force attack from going through their servers (without spending billions of years longer than the website will exist for).
Brute force attacks are typically done when the website has already had a data breach, and the attackers already have access to the database. If the website is managed properly, the database should only have either a secure hash of the password or an encrypted one (plus some other stuff, but it's not too relevant to the point), so the hackers don't actually have your password just because they have the database, but since they already have the database they can just test each password against their own local copy of the database, and they wouldn't be going through the servers (and as such, something like "making the first guess fail" would do nothing, because even if you do that the database the attackers are using won't be doing that).
i remember computers back in the early 2000's used to have a thing where if you tried to login and failed X amount of times it would make you come back in 30 minutes :P
isn't it something like 12 characters or more with a mixture of symbols and numbers will take longer than our life time to crack? there's that and too many failed attempts requiring a reset.
I mean you can add a maximum number of failed attempts before the account is locked. That protects against brute force, but opens up a whole new set of issues.
Because of this brute force attacks are rarely done directly at the target server, any more. Rather, they try to steal the password hashes of the server by different means and then employ the brute force method against the hash database until thery break it.
I mean you can add a maximum number of failed attempts before the account is locked. That protects against brute force
Not necessarily - if brute-force tries random passwords (instead of enumerating them systematically), there is a very small chance the correct password is guessed before the account is locked.
Technically, you are correct (the best kind of correct), but practically, it's not happening.
Let's take something really awful and insecure as an example; 10 guesses on an 8-letter, non repeating password with no capitals or other special characters.
If i am doing my math right (big if there, to be fair), then there are ~63 billion possible passwords, with 10 guesses. Adding capital letters alone doubles that and thusly halves your odds of guessing the right one before the account locks. The full roster of available options for unique characters, including capital letters (on my phone, at least), puts that total possible password count at 120 quadrillion. With 10 guesses.
If you pull the first one off, then I'd start entering every lottery you can find because you'll find far better odds there. The second is just straight up not happening.
For just lowercase, we're looking at 248 possibilities, which is 110,075,314,176 (~110 billion) according to my phone calculator, divided by 10 is about 1 in 11 billion to guess right when inputting random letters.
Adding just capitals would make this number 488 , which is 28,179,280,429,056 (~28 trillion), which gives a 1 in 2.8 trillion chance for a correct random guess.
Mathematically it's not impossible, as the chances are way below the Ten Billion Human Second Century (1 in 3.15x1019 ), but it's also not exactly gonna happen.
If somebody guesses a correct password that should theoretically take centuries to discover through brute force in the first couple of tries, that's not brute force, that's divine intervention.
Doesn't that depend on what the attempts are keyed to? If it is keyed to your account/the email address, then proxies would not help. But if you set it up like that, the potential for super easy griefing is enormous. Locking people out of their accounts, if you know their email, hence the new issues.
It would take on average three times as long. On average, you'd only need to try 50% of the possible passwords before finding the correct one. If you have to loop through twice, you'd have to try 150% of the possible passwords.
Edit: This would be the median. The mean time multiplier can't be calculated since the intergral of (x+1)/x doesn't converge between 0 and 1.
Good luck brute forcing a two factor, without the second factor.
Also, why do you think you can only input your credit card pin three times before it locks up and you need to call the bank to get it opened again? Brute Force Protection. Pretty absolute if you ask me. Go ahead call the bank tell them you're them and you locked yourself. Your not doing that three times in a row
Yeah, no one is seriously hitting your login page with a brute force these days, you get locked out for a time after few incorrect attempts there.
The only practical way to brute force anything is to get a copy of their encrypted database by other means, and then keep hitting it locally with a huge database of commonly used passwords and see if something matches. You could try just iterating though every possible character combination possible, you may get lucky, but statistically it will take billions of years unless it's just a 4 digit number or something like that.
With MFA, when an attacker gets the first credential right but not the second credential, the user is notified. The user can then change the first credential (and optionally the second one). The attacker can restart the brute-force attack until they succeed again, but this whole cycle can repeat indefinitely.
The only way that the attacker wins is if they succeed in brute-forcing the first credential and then also succeed in brute-forcing the second credential before the user changes the first one. And even that possibility can be rendered infinitesimally small in various ways, like the server automatically invalidating the first credential if the second credential fails more than a few times and requiring the user to create a new one. Etc.
I think you just have to try the first password twice with this one. It doesn’t quite specify how the flag is set but the name suggests it’s only when you try the first time. It would need to be reset to false otherwise.
I think it’d take more than twice as long. This seems like a power law situation where it’d take the square of the time for guessing the password once.
Wouldn't it just be much better to have a longer password then. Then you get several orders of magnitude more possible passwords to be tested, and it's preferable to having to type in the password twice for the average user
Well, brute force attacks can be easily mitigated with a lockout if the wrong password is used too many times in a short amount of time. But that depends on the device/website having such a protection.
This is a pretty misleading thing to say. There are plenty of well known defenses against brute force. iPhones have a pretty devastating one: too many incorrect password inputs will brick the device.
i dont think anyone will realize this completely, but there is a way to beat brute force, which is kind of exactly like how the meme says, and kind of exactly opposite to the meme.
brute force is based on trying every single possible password made up of alphabets, numbers, symbols, literally anything that can be type.
the machines that use brute force are typically made up of a large number or processors running simultaneously and using each password, kind of like how a group of people in a contest of guessing divide the work among themselves to achieve the best result.
so, putting the machines into a loop and making them think that they've never broken the password when in fact they have broken it long ago is kind of a method to stop brute force, though in it the file they break into contains a code or algorithm of sorts that puts all those processors into a loop, which effectively makes it so that they have broken the password and yet have not broken it yet.
its kind of like a manipulation tactic for processors, running around in a loop after which they get overheated and self destruct.
This wouldn't slow it down. You use brute force if you don't have a clue about the password. You are probably not going to try the correct password at the first attempt. Hence this will not do anything.
Right, but the joke is that it will also tell regular users that their (correct) password is incorrect on their first login attempt, hence the reactions.
god damn that actually just happened to me a couple days ago. I'm pretty sure the shift key on my kb got stuck so what i was trying to type wasn't what was actually getting typed.
As written, this would stop legitimate logins too. Any correct attempt, including innocent ones, will be blocked on the first try. The guy in the back is reacting with "sick bastard" because he knows this will on the whole block more legit users than bad guys and cause a ton of avoidable annoyance/frustration.
Does this really work like that though? It seems to me this would only fail the correct password if the correct password is the very first password attempted.
But if the brute force algorithm tries a wrong password first, and then the correct password second, the code won't work, because "isPasswordCorrect" will return TRUE, but "isFirstLoginAttempt" will return FALSE, so it will not throw an error.
Unless you only count correct passwords as login attempts, which seems like huge security flaw.
No it doesn't. This comic is based on faulty assumptions of how brute force attacks work. If it was a live server you'd be banned/blocked after 3 wrong tries.
In reality you need to have the target offline available and then just locally try all combinations until it returns valid data.
Oversimplified example:
You have a password protected zip file on your pc: here you can brute force it.
The part where you're blocked after 3 wrong tries - that's the brute force prevention on the server side. If there was no brute force prevention on the server side (or if the code as shown was the only brute force protection) then you actually COULD attempt to brute-force the live server.
Working offline only happens when you have a hash dump from a compromised server. It's the main way that brute-force attacks happen these days, but that's only BECAUSE anyone who knows what they're doing has implemented the kind of brute-force protection referred to in the OP on their login screen.
Correct . But the joke is that this 'protection' will also cause legitimate users to get a 'password incorrect' error even if they type in their password correctly on their first attempt.
Nah it seems like that but it's actually not. If the Brite force attempts a login then "isfirstloginattempt" is set to false after the first failed password. So this would never trigger again. I mean unless they isolated the login loop in some kinda automated test rig to initialize the whole system every time but that's kinda inefficient, and you'd probably need the kind of access that would make brute forcing unnecessary.
Unless they mean, isfirstsuccessfullogin. But you wouldn't need the and for that, or the first condition.
I thought it's a jab on websites that are broken in this weird way where they tell you the password is incorrect even if it actually is correct.
In some services it simply happens that it's not taking my password and when I try to change it, it tells me my new password can't be the same as my current one.
I think that's the intention but it doesn't sound like it actually works like that as written.
The code says "if the password is correct AND it's the first login attempt". Not successful login - login attempt. Meaning if you type your password correctly on the first try, it'll reject it and you have to try again. But if you're brute-forcing, you're probably not getting it right on the first attempt, and after that this code won't apply.
Aside from being a joke, this is more of a user aggravator than brute force prevention. In case of a brute force attack this method is nonsense. It would only work on the very first attempt of an attack, unless the program counts every attempt with a new password as a first attempt, which would be ridiculous, and go against the most popular anti-brute force measure - login attempt limit.
No, it‘s not a smart solution, because it is much more effective to limit the amount of password attempts. And if the brute force attempt circumvents that check (by working directly with a dump of the data for instance) your code is not executed anyway.
No modern brute force attack runs from a single identefiable source tho. They just use botnets or vpns. So really depends on just how you implement the attempt lockout.
They do a password spray instead where you attempt to login to different accounts across a company using known common passwords. Eventually you find an account using a crappy password and get in, while the login traffic looks like a bunch of users that happened to miss their password once or twice. This is a real technique that is used against major companies successfully.
This is why there's timeouts e.x.: after 3 incorrect attempts, account is locked for a day. Can't make millions of attempts in a reasonable amount of time if you can only try 3 a day.
I actually think this is a good solution, not for brute force, but for when passwords are leaked from a database. If the hacker tries to enter the passwords, it would think that they have changed it.
It's called security by obscurity. It's bad. First year students are taken outside, tied to a stack with leetcode, and whipped with mouse cables whenever they try this.
Not at all smart in terms of brute force. There is a good reason nobody uses this and also there is a reason on having MFA, in this case protection is there even if password is known.
brute force attacks get stopped by the basic "Lock account after X attempts" that almost every site implements
This is why most brute forcing is done after a site has been compromised and its database of login credentials has been downloaded. These are generally encrypted, and hopefully salted.
But as this database is now on the computer of the hacker, he can make his millions of attempts without having to deal with any of these tricks. With proper encryption this is still really difficult, so you normally use a dictionary of frequently used passwords to just get the easy ones. These are a bit more sophisticated these days, so the dictionary will contain passwords like "saxophone" but also make the common substitutions like "s4x0ph0ne!"
No, this is more like having a lock and then hiding a key nearby so people who know where the key is can get in. But if the attacker knows where the key is, they can get in too.
Similarly here if the attacker knows that the 1st attempt is not accepted, they will just try everything twice.
Yes. Welcome to cyber security. The whole purpose of Cryptographic encryption is to make a lock that is still secure even if you hand the bad guy the key. Because a good enough hacker is going to find the key anyway, might as well make it public and say "go ahead and try. You're not getting in"
I don't really know much about programming but if I understood it correctly, what the code does is if you enter the correct login and password you'll get an error saying it's wrong even though it's not
This is what it feels like when I login every time. "Incorrect password". But, but, I am sure I entered it correctly? Second attempt: yep, I'm in and have no clue what I did differently from the first attempt.
A brute force attack is when a hacker tries to guess your password. They move down a list and if one password doesn't work, they move on to the next guess.
This code (it has some errors) is supposed to make it so that even the correct password won't work the first time. A human user will just retype the same password again, thinking that they made a typo or there's a one-time-glitch in the website, but the automated brute force hacking program will just move on to the next guess on the list.
please hear me out everyone in the comment section is really overthinking and thinking about brute force things this is just normal simple meme about the feeling that when you enter a password for the first time and you are like sure you typed it correctly the first time but somehow you didn't login so you just start typing slowly to avoid putting it wrong again
the joke, is that the reason you first password was wrong was because the developer made it that way, evil person behind the code was the reason and not because you typed it wrong
that's the joke not something about bruteforce, though I liked their thought process
A computer brute forcing a password won't try passwords twice. A human being will always try their password a second time because they assume they typed it wrong.
The goal of this code is to prevent hacking through brute forcing a password. While this likely would prevent some brute forcing, the method of doing so would also cause every end user to require typing in their password twice, and the first time it will always be treated as incorrect. Even if this code is functional, this is not best practice for your code as it is not just non-user friendly, but I would argue user hostile.
This would drive people insane. Don't code like this.
Correct me if I'm wrong but wouldn't this only work if the brute force attempt was using the correct password as the very first attempt? Or does it only count a correct password as a login attempt?
A brute force attack works by trying all (or likely) passwords once and moving on; this feature "defends" against the attack by giving a "wrong login or password" error the first time they're entered correctly, so the attacks moves onto the next attempt.
The people are horrified, because for them it means they've been tearing their hair out trying to remember their passwords, when they probably had it right all along. The system just was also giving them the fake 'wrong login or password' error.
Brute force is a type of attack that will very simply just try every possible password very, very quickly. And eventually get the right one. Usually, it's set to go on to the next one every time the password is wrong. The code there makes it so even if you input the correct password, the first time you do it will still give you "wrong password" error. Hence, it would be impossible for brute force to work because it just skips every password that's labeled as wrong.
It's brute force password protection but in practice it means every time people log in and enter the correct password they're gonna get an error that it's incorrect, leading to them losing their minds
There's a sci Fi short story where there's a hacker savant who gets caught because he guesses (using context clues and social engineering) some guy's password on the first try and realizes too late that the guy always types in the wrong password first. So doing the right password first sets off an alarm.
I remember that story! Pretty sure it was Asimov's SF Magazine in the 80s. I think about it a lot. The main character was a little kid that was brain dead so they filled his head with computers ("goo") and he never grew after that. He would learn everything about the mark, so he would know what password he picked.
The main concept is silly now, since my passwords are usually based on a thought I just had or something happening right then, which he couldn't have known. And I have never heard of security that works that way in real life
How about two passwords in series kinda like how a combination lock would work? And I mean two passwords in series where password one says incorrect but then you enter the second and unlock. Can be scaled up too
Isn’t the problem with this that it banks on the brute force attack using the right password on the first try? Meaning, if it tries 50 times and then uses the right password it would just go through.
So as far as I can tell this is super weak.
Code should rather check first successful login attempt and reject that - not check for first login try.
Brute force attack means trying every posible password once untill you guess corectly. This code would make it so the attack would take twice as long by the attack having to enter each password twice, Asuming the attacker even knows about this security mechanism. If this detail of the code is not known to the attacker, it would likely never be hacked.
However it would also make many users go insane...
It's a joke about how when you're absolutely sure you input your password correct but the login screen still says you didn't.
isPasswordCorrect is likely a function that returns a "true" value when you input the correct password.
Similarly, isFirstLoginAttempt is likely a function that returns a "true" value if it is your first attempt to login to your account.
When both isPasswordCorrect and isFirstLoginAttempt return "true" values, then the program will tell the user that they input the wrong password and they have to try again, instead of logging them into their account as it should.
Programmer here, this code gives an error the first time the password is right. It sadly won't work on an actual brute force method since it would give a 'unique error' so the brute force process will try it again.
I never understood how brute force doesn't just lock accounts, are they somehow emulating the login and trying until it is right then going to the actual login?
Basically, the Situation when you enter your password the first time and returns error and inputting the same password a second time and goes through... The joke Is that Simeone programmed it that way
This would be the reason why when you go to change your password because you “forgot” it says “ new password can not be that same as previous password” SOMEBODY LOCK THIS GUY AWAY
The first time you enter the password it will show as incorrect. It’s a joke about people putting their password in wrong when they type at their normal speed and having to do it a second time while going slow. This man is pure evil.
862
u/SpecialistAd5903 Jan 28 '25
Not a programmer but I think what this does is it'll return an error message the first time you try to log in with the correct password. In theory this will prevent brute-force attacks that will only try a password once before moving on.
3.7k
u/EntrepreneurQuirky77 Jan 28 '25
A brute force will go through every password once, this code means the first time you get it right it will return a wrong password so you have to enter it twice. Hence a brute force will only try once and then skip the correct password. I probably worded this horribly
170
u/vaiplantarbatata Jan 28 '25
That is an actually smart solution, but pretty annoying for anyone that actually knows the password and just wants to log in
49
u/Riot_AAA Jan 28 '25
I don't really know much about programming but if I understood it correctly, what the code does is if you enter the correct login and password you'll get an error saying it's wrong even though it's not
13
u/Plekuz Jan 28 '25
This is what it feels like when I login every time. "Incorrect password". But, but, I am sure I entered it correctly? Second attempt: yep, I'm in and have no clue what I did differently from the first attempt.
7
u/jmlinden7 Jan 28 '25
A brute force attack is when a hacker tries to guess your password. They move down a list and if one password doesn't work, they move on to the next guess.
This code (it has some errors) is supposed to make it so that even the correct password won't work the first time. A human user will just retype the same password again, thinking that they made a typo or there's a one-time-glitch in the website, but the automated brute force hacking program will just move on to the next guess on the list.
5
u/RonConComa Jan 28 '25
Could also set a 2seconds delay before the notification. The brute force attack will last forever..
5
u/eldelao Jan 28 '25
Also, every USB port: ..."IsOrientationCorrect"...
4
u/Express-Song9195 Jan 28 '25
please hear me out
everyone in the comment section is really overthinking and thinking about brute force things
this is just normal simple meme about the feeling that when you enter a password for the first time and you are like sure you typed it correctly the first time but somehow you didn't login so you just start typing slowly to avoid putting it wrong again
the joke, is that the reason you first password was wrong was because the developer made it that way, evil person behind the code was the reason and not because you typed it wrong
that's the joke not something about bruteforce, though I liked their thought process
4
u/[deleted] Jan 28 '25
Essentially the same as when you try to put a USB in and have to flip it twice before it goes in revealing it was right the first time
3
u/SaltManagement42 Jan 28 '25
The first time you try a password it always fails, even though it's the correct password.
3
u/HustlinInTheHall Jan 28 '25
A computer brute forcing a password won't try passwords twice. A human being will always try their password a second time because they assume they typed it wrong.
3
u/Broken_Character_Rig Jan 28 '25
The goal of this code is to prevent hacking through brute forcing a password. While this likely would prevent some brute forcing, the method of doing so would also cause every end user to require typing in their password twice, and the first time it will always be treated as incorrect. Even if this code is functional, this is not best practice for your code as it is not just non-user friendly, but I would argue user hostile.
This would drive people insane. Don't code like this.
3
u/zZbobmanZz Jan 29 '25
Correct me if I'm wrong but wouldn't this only work if the brute force attempt was using the correct password as the very first attempt? Or does it only count a correct password as a login attempt?
3
u/Chaotic_Fart Jan 29 '25
Lol that's funny
2
u/whooo_me Jan 28 '25
A brute force attack works by trying all (or likely) passwords once and moving on; this feature "defends" against the attack by giving a "wrong login or password" error the first time they're entered correctly, so the attacks moves onto the next attempt.
The people are horrified, because for them it means they've been tearing their hair out trying to remember their passwords, when they probably had it right all along. The system just was also giving them the fake 'wrong login or password' error.
2
u/akidomowri Jan 28 '25
isFirstSuccessfulLoginAttempt
if it was just their first attempt, it wouldn't protect against brute force attacks
2
u/almostFly Jan 28 '25
This would be super annoying for a user but it's kinda ingenious.
2
u/iwannabesmort Jan 28 '25
Riot Games client in a nutshell
2
u/GLi-tcH-online Jan 28 '25
I don’t understand code but I know what this is and it is monstrous.
2
u/[deleted] Jan 28 '25
Brute force is a type of attack that will very simply just try every possible password very, very quickly. And eventually get the right one. Usually, it's set to go on to the next one every time the password is wrong. The code there makes it so even if you input the correct password, the first time you do it will still give you "wrong password" error. Hence, it would be impossible for brute force to work because it just skips every password that's labeled as wrong.
2
u/[deleted] Jan 28 '25
It's brute force password protection but in practice it means every time people log in and enter the correct password they're gonna get an error that it's incorrect, leading to them losing their minds
2
u/no_witty_username Jan 28 '25
This is what God did when he coded in the USB cable in to existence....
2
u/Canutis Jan 28 '25
There's a sci Fi short story where there's a hacker savant who gets caught because he guesses (using context clues and social engineering) some guy's password on the first try and realizes too late that the guy always types in the wrong password first. So doing the right password first sets off an alarm.
2
u/EnvironmentalAide335 Jan 28 '25
How about two passwords in series kinda like how a combination lock would work? And I mean two passwords in series where password one says incorrect but then you enter the second and unlock. Can be scaled up too
2
u/towaway1212 Jan 28 '25
This will only work for the first attempt. Every subsequent attempt in the brute force method will go through as usual without any protection.
1
u/Narkerns Jan 28 '25
Isn’t the problem with this that it banks on the brute force attack using the right password on the first try? Meaning, if it tries 50 times and then uses the right password it would just go through.
So as far as I can tell this is super weak.
Code should rather check first successful login attempt and reject that - not check for first login try.
1
u/[deleted] Jan 28 '25
I don't really know much about programming, but I know this is subreddit is a great way to recycle content for karma farming
1
u/asdfzxcpguy Jan 28 '25
New anti brute force tactic:
If passwordcorrect: Return “password incorrect”
1
u/T555s Jan 28 '25
Brute force attack means trying every posible password once untill you guess corectly. This code would make it so the attack would take twice as long by the attack having to enter each password twice, Asuming the attacker even knows about this security mechanism. If this detail of the code is not known to the attacker, it would likely never be hacked.
However it would also make many users go insane...
1
u/MentalDecoherence Jan 28 '25
On posts like this I just feel the need to ask;
It’s a coding joke (obviously), you don’t code (obviously), so what the hell does it matter what the joke is?
1
u/RubeusGandalf Jan 28 '25
Pure evil
1
u/RajuTM Jan 28 '25
So this is what outlook has implemented
1
u/FlatSatisfaction1442 Jan 28 '25
Are there more comics like this out there?
1
u/thekyledavid Jan 28 '25
The first time you attempt to log in with the correct information, it will tell you that you have the wrong login or password
To actually log in, you will have to enter the correct log in and password twice
1
u/Forward-Pen-9122 Jan 28 '25
This is a joke about how it always seems like the first time you enter your password it's incorrect.
1
u/allpraisebirdjesus Jan 28 '25
You joke but I’ve worked at places where this was part of our security.
1
u/Acrobatic_Sundae8813 Jan 28 '25
Genius
1
u/[deleted] Jan 28 '25
1
u/SatanTheTurtlegod Jan 28 '25
It's a joke about how when you're absolutely sure you input your password correct but the login screen still says you didn't.
isPasswordCorrect is likely a function that returns a "true" value when you input the correct password.
Similarly, isFirstLoginAttempt is likely a function that returns a "true" value if it is your first attempt to login to your account.
When both isPasswordCorrect and isFirstLoginAttempt return "true" values, then the program will tell the user that they input the wrong password and they have to try again, instead of logging them into their account as it should.
1
u/Vasikus3000 Jan 28 '25
&& to put it simply means "and"
The code is saying "if the password is correct and it's the first time trying, type: wrong login or password"
1
u/sander80ta Jan 28 '25
I think the real evil thing here is the fact the first login attempt does not get flipped to false at the end of this function.
1
u/99_Percent_Juice Jan 28 '25
Programmer here, this code gives an error the first time the password is right. It sadly won't work on an actual brute force method since it would give a 'unique error' so the brute force process will try it again.
1
u/WoflShard Jan 28 '25
Wouldn't it be easier to increase the time to brute force by having two different passwords in a row be correct?
1
u/beatinbossier18 Jan 28 '25
I never understood how brute force doesn't just lock accounts, are they somehow emulating the login and trying until it is right then going to the actual login?
1
u/LadyUsana Jan 28 '25
Just look at his expression, you can tell he is one disturbed cookie.
1
u/Bagdaja Jan 28 '25
isPasswordCorrect is redundant
1
u/Beneficial_Ad_5665 Jan 28 '25
Basically, the Situation when you enter your password the first time and returns error and inputting the same password a second time and goes through... The joke Is that Simeone programmed it that way
1
u/Dr-RoxMiel Jan 28 '25
This would be the reason why when you go to change your password because you “forgot” it says “ new password can not be that same as previous password” SOMEBODY LOCK THIS GUY AWAY
1
u/abhig535 Jan 28 '25
This is why 2fa exists so methods like these (even effective as it is) don't get implemented for the sake of user convenience
1
u/BadLanding05 Jan 29 '25
I did this on a website once. I thought I was terribly clever.
1
u/Curious-Concert-9276 Jan 29 '25
Scum.
1
u/Internetvent Jan 29 '25
Can't you have 2 seperate passwords that have to be entered in sequence ans show this after the initial correct password?
1
u/knephthegod Jan 31 '25
I swear this is the Warframe login
1
u/[deleted] Jan 31 '25
The first time you enter the password it will show as incorrect. It’s a joke about people putting their password in wrong when they type at their normal speed and having to do it a second time while going slow. This man is pure evil.
0
u/mrdougan Jan 28 '25
This just doubled the time for s brute force attack
0
u/StillHereBrosky Jan 30 '25
It's not funny. It's just really bad logic that nobody would make.