90 points · by chatmasta · 10y ago · 39 comments
I found some PHP example code that tries to use "usesomesillystringforsalt" as a salt, is this just the aftermath of people writing real websites based on online examples? It seems a bit more pervasive in password dumps across the internet than I would expect unless it's in a really high profile example somewhere.
edit: It appears to be used in the official PHP documentation for crypt[0].
I ran a code plagiarism tool on the top 500 github repos and on some list of the top most common code questions from stackoverflow and found 1000's of hits on only a small part of their code base with even comments copied directly from stack being not to uncommon.
In one particular instance it was a perfect storm of stupidity they had some code that was supposed to take user provided files and store them on S3 the example they copied from actually had a valid AWS access token of another company if that code was live the files which would be mainly their customers invoices and tax info could've ended up on some one else's server.
After that afternoon I never had a single pushback from neither their head of development nor their compliance guys ever again.
/* These salts are examples only, and should not be used verbatim in your code.
You should generate a distinct, correctly-formatted salt for each password.
*/33k is a lot though, and nothing to scoff at. But given the breath of scope in the addresses here, this looks less like a breach of a government agency and more like some social network, etc.
Even if you bought a laptop from someone in another state on Craigslist with cash and connected to public Wi-Fi (without a cellphone on your person, of course)... I still would not feel confident that NSA couldn't track you down if you gave them a good reason to.
For the lulz
What can be done with those logins by someone NOT employed by the government to harm ME?
This is the kind of thing that needs to be brought up in arguments when politicians pine for safety and surveillance. The history shows us over and over that the information cannot be controlled.
Treason against the United States, shall consist only
in levying War against them, or in adhering to their
Enemies, giving them Aid and Comfort. No Person shall
be convicted of Treason unless on the Testimony of two
Witnesses to the same overt Act, or on Confession in
open Court.
It wouldn't surprise me to see the government try to claim "cyber warfare" meets the bill for "levying War against them", but I can't imagine the supreme court letting that stick.edit: If you provided hacked information to a foreign power I could see that being considered giving aid to an enemy. My original question was more focused on the actual hacking itself than what you do with the information.
5823 gmail.com
2339 yahoo.com
1510 hotmail.com
1078 gsa.gov
800 navy.mil
594 mail.mil
571 usace.army.mil
474 us.af.mil
474 aol.com
280 comcast.net
227 sbcglobal.net
208 msn.com
202 va.gov
158 us.army.mil
153 verizon.net
142 gilbaneco.com
140 live.com
138 cox.net
124 usmc.mil
120 nasa.gov
113 earthlink.net
111 outlook.com
107 att.net
103 nps.gov
94 usc.edu
87 mail.missouri.edu
81 faa.gov
77 me.com
74 mac.com
69 hdrinc.com
69 fs.fed.us
69 dla.milalum.mit.edu stu.aii.edu student.monroecc.edu mail.mst.edu missouri.edu usnwc.edu jfsc.ndu.edu utsa.edu hsl.harvard.edu itt-tech.edu scad.edu gmu.edu ohsu.edu my.sinclair.edu
I haven't downloaded the file to confirm. But if you've got an account at one of the above domains, you should consider that password compromised and rotate it, there and anywhere else that uses the same value. (And consider not re-using passwords, if the latter case applies to you.)