I hope they will be back up soon :-(. I am wondering what that really means:
Passwords at Project Euler are strongly encrypted using a one-way hash, but if you use the same password at other websites then it is strongly advised that you change it
Either encrypted or hashed. If hashed, was the password salted ? No that it matters much to me, just curious.
I'd imagine (hope) it's a salted hash... But I suppose if people don't know what that means, encrypted is a good word to get the idea across to lay users?
It would certainly be nice if compromised sites would mention the password hashing scheme they were using instead of just claiming it's strong encryption. There's an enormous gap between PBKDF2/bcrypt/scrypt and a poor implementation with a single round of a fast hash function not designed for password hashing like md5 or sha1.
They may hope that whoever compromised the site is unable to identify the encryption algorithm used, making it harder to determine the users' passwords.
If they got the database, there's a pretty solid chance they got the scripts that do the hashing. Even if not, if they have a known password in the database it won't take long to figure it out.
At the same time, telling the attacker what it is does marginally help them. They can work it out either by looking at your software or trying a known password but at the same time you don't want to narrow down the space too far straight away.
No, the attacker can figure it out fairly trivially. Telling us what they're using doesn't give the attacker anything they couldn't figure out trivially.
Sounds like a good Project Euler puzzle: Given a dataset of a significant size, determine the hashing function used to protect a column of arbitrary strings of an indeterminate length.
That's a sensible reason to be using a weak key derivation function for anyone who hasn't logged in for ages, but it's still maintained so it should begin using a strong hash as soon as an account with the old scheme logs in. Since bcrypt has been around for more than 14 years, I don't think there's any excuse beyond ignorance and laziness.
A salt is a random string added to passwords to increase security. Usually after salting, you hash the password using a 1 way function (so you can't retrieve the original password). Ex: my password is "password", Reddit adds the salt "potato" so my password becomes "potatopassword" before hashing
Passwords are stored as hashes, which is derivied from the password with an one way algorithim. Every time you log in, the system will hash your password and compare it to the hash in the database. However, if you have the hash and you know what algorithim was used to hash it, you can sometimes "break" the hash, either by brute forcing it or using rainbow tables. Brute forcing involves passing random strings to the hashing algorithim until you get the hash you're after. I don't fully understand rainbow tables, but basically they are a huge flowchart that you use to find the original password. Rainbow tables take up a lot of space, but they are a lot faster than brute force. Oftentimes, the passwords aren't immediatly hashes. A piece of data, called a salt, is added to the password. By salting the hash, it is much harder to break, and thus more secure.
Edit: as banane9 pointed out below, rainbow tables are not flow charts, they are just big tables with passwords and their hash
Actually you both are sort of right. Rainbow tables are made up of long "chains" of hashes where you repeatedly apply the hash function (plus "reduction" functions which reduce the hash back into the space of passwords) but they just store the start point and end point of each chain (so it's not just strings and their hashes.)
Then when you want to break a hash you just apply the function (sort of like a flowchart) until the output is one of the endpoints in your table. Then you go back to the corresponding start point and follow the chain until you get one "link" before the hash you have, which will be the password.
It's standard practice in these kinds of PR statements to refer to passwords being encrypted when they are actually hashed. Maybe not helpful, but pretty common.
If they just go the passwords without the source, I hope they are peppered too. But that's a small chance (both having a pepper and them not having the source).
Which is challenged to be secure by many, but it doesn't hurt in my opinion. When they steal a complete DB (from a backup or something), they will have a much greater task to get your password.
If you want some "secret", then use authenticated encryption to store the hash. That still uses algorithms the way they were designed, and has the added benefit of defense in depth.
Using a pepper relies on the assumption that it doesn't change the fundamental underlying security of the algorithm (which may or may not be true).
Honestly that post only indicates the maintainability, so they say, better not to use it than to use it, I still don't agree with that. Yes the key is worthless after a breach, but so what? You can invalidate the key after a breach.
Hash functions are considered part of cryptography, so I don't think it's incorrect to call it encryption. Granted, when people think encryption, they assume decryption is also possible (thus implying either a symmetric key or asmmetric key algorithm).
Merely salting the hashes isn't really enough these days. You should be using an algorithm that securely applies multiple rounds (like either PBKDF2+SHA2 or bcrypt), use a large enough number of rounds to meet modern computational power (probably around 50,000 rounds for PBKDF2+SHA2), and you should probably encrypt the result using AES-256 with a key that isn't stored in the database. That's the minimum standard I apply for all of the sites I build.
Maybe they can't rule out that it wasn't only the database that was compromised. Salts and hashes don't mean a thing if it's the code that verifies the passwords that's compromised.
Edit: Guys, the statement reads they had a security issue they don't know the extent of, not that someone only accessed the database. If the intruder had more access than just to the database he may have intercepted passwords of people logging in. How passwords are encrypted means nothing if that's the case. Stop focusing on salts and hashes.
What? No it doesn't. You verify a password by pretending the salt and using whatever hash you like. The salt is stored in plaintext with the hashed password. The idea is that knowledge of the salt and hash doesn't really get the attacker anywhere, and that it's twice as expensive to break 2 hashes as 1.
What makes it sound like that? Just because they didn't go into details and specifically mention that they used a salt doesn't mean they didn't use a salt.
In my (admittedly limited experience), if it's a well-done hash that's designed for password storage, they generally let you know the specifics. But when it's something like unsalted md5, they'll just fall back on "don't worry it's encrypted, trust us." and you only find out the specific hashing scheme from the leaked password lists.
A local college did a monthly math challenge for high schoolers when I was in high school. I was responsible for a rule update when I submitted a solution and, for the "show your work" field, I just pasted a C++ function that brute forced the solution.
I don't know the answer which is solvable with programming and mathematical constructs with which I am unfamiliar, so I'm going to use the programming part to answer the question.
Another counter-example would be problem 66. The answer itself is (obviously) small, but to solve this problem one must know x accurately, and x is roughly 1.6e+37.
By the way, though using floating point is enough, problem 380 probably has the largest answer I solved in ProjectEuler. (~6e25000)
Yea, thats a more efficient way to solve a problem where the answer is a number known by the server. But it is a terrible way to learn to program, there are few to none real world applications that can be solved by just seeing if the next number is the answer the server was looking for
Myth #3: MD5 is less secure for password hashing than other algorithms like SHA.
Are you kidding me? This citation is way out of date. MD5 has VERIFIED COLLISIONS. MD5 signed certificates have been FORGED. Binary signatures have been COLLIDED. You can brute MD5 at billions of hashes per second on a commercial GPU. SHA is way less susceptible to brute force attacks, and has no collisions. Salted MD5 is barely safer than raw MD5.
No, it's not. Md5 can be computed too quickly, allowing to brute force hashed passwords quickly. Bcrypt or scrypt are what you are looking for. They are designed to be hard to compute.
Extension attack is only relevant for signature. It's completely irrelevant for password hashing.
Extension attack don't allow you to craft a message to get a desired output. It allows you to know the output of "hash(the data already there + some padding + the data you want to have appended)" if you know the output of "hash(the data already there)".
Assuming you know that pure md5 is about the silliest thing you could use to store a password, it's very easy to construct a scheme using md5 that won't be susceptible to length extension attacks.
When passwords get dumped, there is almost always an email associated with it. Since people are morons, the password is usually the same as the email and a bunch of other accounts. Since the hacker now has their email and a password they frequently use, they have a good chance to get into a ton of accounts just by trying the email and password.
It's still a problem even if it's salted. Password can still be brute forced individually. What salting prevents is brute forcing all the password at the same time and finding duplicate password. If your password is weak even strong and proper hashing won't prevent someone from brute-forcing your password and finding it. Your safe only if you had a strong password.
A programming site would definitely know their target users would feel better if they explicitely said the passwords were salted using a better hash than md5.
Since they neglected to mention both the hash algo and whether they salt or not, it's probably a safe assumption to assume unsalted md5 passwords that are crackable.
That would be pretty sad, if so. Or maybe they were salted, but they didn't specifically mention they were salted to scare us; this makes sure the programmers that use the sight change their passwords out of fear.
I didn't use the site, so whatevs. Hope everyone else takes this seriously.
I imagine a simple dictionary attack against the entire database would net quite a lot of matches, against which no practical* salting/repeated hashing in the world will help.
I like how the only way to not be a moron is to be able to remember 100+ arbitrary strings of random characters indefinitely without writing them down anywhere.
This is why you use a password manager - one master password, but each individual site has a unique, stupid long password. If a website gets hacked, there's no chance of any others being compromised.
Until someone jacks your master password. Then you're really fucked. Because it's only really a matter of time until someone gets your password, somehow.
Title-text: Saying 'what kind of an idiot doesn't know about the Yellowstone supervolcano' is so much more boring than telling someone about the Yellowstone supervolcano for the first time.
Not necessarily. Consider using the website name (maybe even backwards or the first N chars) in your password. It's still an arbitrary string, but there's some form to it now to help you remember. For example: xxNrIeRdVdAiNtAxx or rednirvana, redditnirvana, etc
You can use a simple system to alter the middle of your password with something from each domain, so no one can easily have access to all their accounts with one password.
Could you ELI5 how websites/ companies determine if their database was compromised? How would they even know if someone peaked in there after hacking it? Genuine question.
Strange errors in the logs, usage during odd hours, passwords randomly getting changed. A good setup usually has sudo logging on all production machines (to track all root commands anyone ever runs), and a separate logging server that collects all system/application logs. If the attacker is looking to silently steal data though, you won't find anything unless you were already watching for it.
I'd like to know that myself. I have asked the IT folks, at my company, and they never give me a straight answer. I'm starting to suspect that they don't know the answer either. :(
Get email addresses and run the hashed passwords against a dictionary to at least find the weak ones. And people with weak passwords are more likely to have re-used the same password, for example for their email accounts.
From their historical emails you can work out what other sites they've signed up to, and even if they did use a different password, you can now request a password reset, since you control their email account. If they have their payment details saved anywhere (amazon, paypal) you can now buy things in their name
I have always wondered about these things. How does someone know people have been sniffing in the database? How do they know what has been compromised, what hasn't and when it happened? Is this by implementing a general log system or something?
To be fair to Project Euler, their site does (did) contain a forum where users could post their solutions when they finished. It worked well, even if all it ever did was make me feel insignificant.
Man, I'm slaving over a lisp solution for like 3 hours, until it finally works. Then some guy in the forum does it with like 3 lines of lisp. It blows my mind. I guess I'm still very bad at lisp.
J and K were the two languages that you'd see like that in PE answers. Both were strongly influenced by APL, which is why they were so short. APL used one character symbols instead of keywords and built-in function names, and tons of them. This let them be extremely brief, since one character would contain a lot of functionality. Those APL characters weren't ASCII (there were keyboards (and keyboard overlays) to let you type them), but J and K just re-use all the punctuation and symbols available on regular keyboards for all that completely disparate functionality, which is why those solutions always look like line noise.
It may seem minor but I really appreciate the order they chose to say "all or parts." It shows that they take it seriously however large the breach was.
noo!! i just started doing these again recently and was enjoying it so much.
this sucks, whenever people ask me how i taught myself to program i refer them to projecteuler after they've come to grips with the basic syntax. this is one of my favourite websites, i really hope they figure it out and get back up and running soon.
Weren't those forums a totally separate service? I remember users being required to make a separate account for PE forums. In that case, probably not, although I imagine a fair number of users probably used the same passwords for the website and the forums.
Salting does not guarantee that the password cannot be bruteforced. It just means that the hash for that password will be unique for that user, so no lookup tables or finding people who have the same password.
They probably got access to the salt, but even having the salt, they cannot use rainbow tables that already exist.
The salt is hopefully unique for each user (they can use pepper too, which is usually hardcoded and the same for every user; but the pepper usually exists as a complement and does not substitute the salt).
Of course they can compute a rainbow table for each user using the salt (and the pepper if that's the case).
Accordingly to Wikipedia they have around 360,000 users. They will have to compute a rainbow table for each user, since each user has a different salt.
So if they want to compute the salted hashes for the most common 100,000 passwords for the 360,000 users, they will have to compute 36,000,000,000 hashes. If they compute 1,000,000 hashes per second, they'll take 10 hours (in the worst case) to compute the whole rainbow table.
If the user's password is week, they might have to compute just a couple of hashes though!
They can probably get a good number of passwords this way.
So yeah, after writing this I realized that the computation they'll need to do is probably not as heavy as I previously though...
You have to assume the worst case scenario, no matter how many precautions you took.
The minute any data is compromised, the whole thing is compromised and needs to be changed and re-encrypted using a different method before it will approach anything close to being secure again.
See above, but basically it's a website that gives you math problems that you need to write a bit of code to solve (some of them are solvable analytically too, but most involve a lot of computation). Once you've solved it you can see a forum for the problem where people share their solutions, it's a great way to both get practice in a language you may be learning and get some insight into how the same thing is accomplished in other languages (or be baffled by some inscrutable code...).
Although there were a small handful of problems that involved guessing small encryption keys based on the knowledge that some plaintext contains ASCII characters, there weren't really any challenges that involved web security.
Because we all know that security using certificates can never be breached...
And, passwords aren't useless as long as you use a decent password. I, for one, would love to see you explain how to set up and manage certificates correctly to a layman, as opposed to creating a somewhat complex password.
Because we all know that security using certificates can never be breached...
It's not that. Rather, using certificates means breaking into a server and grabbing its authentication database won't help you get at the users' other accounts. People often use the same password for many different things, but with a certificate, that's a non-issue.
Using certificates also means you don't need to reset your password if the server does get hacked. Hell, the server could make its authentication database publicly available and it still wouldn't matter. Only if the user's own machine is compromised is there a need to revoke and replace the certificate.
And, passwords aren't useless as long as you use a decent password.
Which most people don't, because they're harder than shit to remember, and a massive pain in the ass to stash somewhere.
I use completely random passwords, which is obviously more secure, but even worse for convenience.
I, for one, would love to see you explain how to set up and manage certificates correctly to a layman, as opposed to creating a somewhat complex password.
Could the server not mimic a CA and instruct the browser to generate a key pair, without the user having to actually set anything up? Then the only issue is backing up the certificate.
but if you use the same password at other websites then it is strongly advised that you change it.
Done properly, security shouldn't have this problem. It sounds like they didn't salt the hash, which is an incredibly poor security practice that creates this type of vulnerability. I guess they just assumed this would never happen to them.
As a user, always assume the site's security is awful. As a site owner, always assume your users are malicious. Never say, "Well it won't happen to me." If people are willing to attack Project Euler, they'll attack you too.
Bullshit. Salting the passwords before hashing is good at preventing someone getting passwords on a large number of users at once using a rainbow table, but they do nothing against targeted attacks. The accounts are associated with an email, so someone can always look for an email of a target and then try to crack that specific account's password. Salting does almost nothing to slow that down (well, maybe the attacker needs to guess the 1-2 ways of adding a salt to the password if he/she doesn't have access to the source the website uses).
It's still a good idea to change passwords if you used the same one, just in case.
At least they know. Seriously though, anyone's game that accepts passwords, and people do this for fun.
It's also pretty disheartening to find a legitimate site like that has terrible security, so I'm glad that people know that they aren't safe no matter what their site does. It just shows that everyone needs to be paying attention if they accept passwords, or any personal data for that matter.
83
u/mistigi Jun 15 '14
I hope they will be back up soon :-(. I am wondering what that really means:
Either encrypted or hashed. If hashed, was the password salted ? No that it matters much to me, just curious.
664
u/PoopChuteMcGoo Jun 15 '14
Sounds like someone misunderstood the challenge...
16
u/jeffwong Jun 16 '14
How compromised? Do we lose our scores? Was the answer database tampered with?
11
u/SikhGamer Jun 15 '14
Good.
60
u/WirdNah Jun 15 '14
The way back machine is another way to pull it up.
24
u/dwarmia Jun 16 '14 edited Jun 16 '14
Why would anyone do that ?
They have enough knowledge to compromise the PE database, and they are ignorant enough to actually do that.
This is like burning a library for .... stuff ?
Sadistic.
39
u/[deleted] Jun 15 '14
What exactly is Project Euler?
7
u/ragmondo Jun 16 '14
I actually forgot my password for the site so I'm hoping they'll publish the list shortly so i can carry on where I left off....
6
u/Muchoz Jun 16 '14
I have always wondered about these things. How does someone know people have been sniffing in the database? How do they know what has been compromised, what hasn't and when it happened? Is this by implementing a general log system or something?
11
u/CrazyCrab Jun 16 '14
Did projecteuler require email or not? I don't remember. If it did then I'll have to change some passwords.
15
u/wildnux Jun 16 '14
Looks like someone solved the final problem :D
2
u/ConstableBrew Jun 16 '14
Try www.codewars.com, it is similar but you can see other solutions once you finish.
12
u/10gicpro Jun 16 '14
It may seem minor but I really appreciate the order they chose to say "all or parts." It shows that they take it seriously however large the breach was.
3
u/[deleted] Jun 16 '14
noo!! i just started doing these again recently and was enjoying it so much.
this sucks, whenever people ask me how i taught myself to program i refer them to projecteuler after they've come to grips with the basic syntax. this is one of my favourite websites, i really hope they figure it out and get back up and running soon.
3
u/rddtf3 Jun 16 '14
I started using Project Euler on Saturday. It was taken down on Sunday. >:(
2
u/smeagol13 Jun 16 '14
Does this exploit also include forum.projecteuler.net?
3
u/during Jun 16 '14
Oh no... My progress...
1
u/jelloeater85 Jun 16 '14
And I was just going to make a account ... -_-
1
u/bildramer Jun 16 '14
Any idea on what the "serious security issue" was?
1
u/Klekticist Jun 16 '14
Mrgh, and I was just getting into it...
1
u/[deleted] Jun 18 '14
The Project Euler problems will be available soon at hackerrank.com
1
u/JiminP Jun 16 '14
Fortunately I use different passwords on different sites and I save my JS codes which used to solve problems, but this is very bad news :(
I wanted to read and solve PE problems after the final exam...
1
u/[deleted] Jun 16 '14
What worries me is that they say "if you use the same password at other websites then it is strongly advised that you change it"
Does this mean the hash the passwords with no salt?
I have nothing to worry about since I use a unique pwd to project euler, but still...
-5
u/karmakazi_ Jun 16 '14
Pray tell what is project Euler?
-2
u/zeroone Jun 16 '14
I can't help but think that the hackers may have trained by doing Project Euler problems.
-4
u/argv_minus_one Jun 16 '14
Why the fuck aren't we all using certificate-based authentication yet? Passwords are fucking useless.
-1
u/erosPhoenix Jun 16 '14
Done properly, security shouldn't have this problem. It sounds like they didn't salt the hash, which is an incredibly poor security practice that creates this type of vulnerability. I guess they just assumed this would never happen to them.
As a user, always assume the site's security is awful. As a site owner, always assume your users are malicious. Never say, "Well it won't happen to me." If people are willing to attack Project Euler, they'll attack you too.
-3
u/dethb0y Jun 16 '14
That's pretty meta.
0
u/[deleted] Jun 15 '14
[deleted] — view deleted comment
0
u/[deleted] Jun 16 '14
[deleted] — view deleted comment
0
u/[deleted] Jun 16 '14
[deleted] — view deleted comment