News for hackers. Stuff that matters.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by CaptainZapp on Thursday March 21, 2019 @11:38AM (#19453578)
On a scale of Facebook with literally billions of users this is pretty much unexcusable.

This community usually scoffs at entities, which store passwords in plain text. Why do you give Facebook a pass?

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EnFinlay on Thursday March 21, 2019 @11:43AM (#19453658)
Because there's two types of storing passwords in plain text. There's the "your password is stored in plaintext in the database" way which everyone agrees is 10 different kinds of stupid, and then there's the "we accidentally logged the body of all requests that went through this system, and it turns out login requests came through here" kind. One is a bad security decision (because you must decide how to store passwords in the DB), and the other is a very easy mistake to make which can go unnoticed for a long time (because you can be attempting to log things completely unrelated to logins).

Same same but different.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @12:10PM (#19453975)
I've worked in healthcare / biotech for more than a decade and I can promise you that the FDA would see no difference between the two types of gaffes. As custodians of sensitive information it was our responsibility to ensure that said information didn't leak, period.

I don't know anything about FB's infrastructure, but when I was lead I would have viewed leaks in logs as far worse than something in the DB because our DB's were harder to gain access to.

I get what you're saying, but it's irrelevant. Easy to screw up, hard to screw up, doesn't matter; just don't screw up because the result is the same. This stuff is security 101. If you're logging requests then you need to ensure they don't contain sensitive info.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by wlesieutre on Thursday March 21, 2019 @12:32PM (#19454239)
I don't think anyone's arguing that it's ok, just that it's less "easy to screw up" vs "hard to screw up" and more "did something really stupid on purpose" and "did something really stupid by accident."

But yes, either way the end result is the same and you shouldn't do it.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by dumbfounder on Thursday March 21, 2019 @12:42PM (#19454377)
Yes but how many people looked at these logs, saw the passwords, and said nothing? If it was logged presumably the logs were viewed from time to time. The mistake is easy to make, but it's also easy to correct if there is a culture to report such mistakes.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by code_duck on Thursday March 21, 2019 @01:00PM (#19454589)
The article indicates it was searchable and used for something by employees, so most of these comments to the effect of ‘they must have been doing this accidentally because Facebook is just so big therefore they are excused’ are invalid. Some group of people did this on purpose and knew it was happening.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by chatmasta on Thursday March 21, 2019 @01:40PM (#19455101)
You're probably being downvoted for speculation, but that sounds completely reasonable to me. At least one person had to have noticed a password in a log file they were viewing at some time. Most people viewing log files know that passwords should not be there. It would trigger alarm bells, and depending on the person, also excitement -- you have somebody's facebook password.

It's conceivable that someone then told their friend at work, and a few of these 2,000 developers knew of this secret internal stash of passwords they could access whenever they wanted to "prank" someone on facebook...

Re:Facebook Stored Hundreds of Millions of User Passwords in... by YokoZar on Thursday March 21, 2019 @06:52PM (#19458151)
Why would humans be reading these log files?
Re:Facebook Stored Hundreds of Millions of User Passwords in... by chatmasta on Thursday March 21, 2019 @08:50PM (#19458780)
For plenty of reasons, I'm sure. From the article:

> My Facebook insider said access logs showed some 2,000 engineers or developers made approximately nine million internal queries for data elements that contained plain text user passwords.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by YokoZar on Thursday March 21, 2019 @11:55PM (#19459496)
That doesn't sound like a human reading the log. It sounds like automation.

A script counting the number of successful logins, for instance, could read the same data element that unintentionally contained passwords.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by code_duck on Friday March 22, 2019 @05:03PM (#19466940)
We don’t have enough information to make that judgment.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by code_duck on Friday March 22, 2019 @05:02PM (#19466933)
When you’re developing a feature like this, don’t you look at the data that you’re logging in to make sure things are working properly? I would imagine that Facebook has many layers of abstraction, but in somewhere, incompetence or inattention must be involved, sometimes known as negligence, if not outright knowledge of this. The definition of that is a complex thing, but if someone could have reasoned that this was logging plaintext passwords, and either saw it and didn’t bother to change things, or didn’t think about it carefully enough to realize that it was doing this, it would be considered negligent. I know that I would feel that my trust in this organization has been betrayed, as a user.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by tptacek on Thursday March 21, 2019 @05:40PM (#19457635)
The logs being in a searchable index makes it more likely that the password storage was inadvertent, not less. It implies that the primary usage model for the logs was targeted queries, not people starting at the top of the logs and reading down in such a way that nothing could have been missed.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by code_duck on Friday March 22, 2019 @05:11PM (#19467015)
My interpretation was that they were using the plaintext password as one of the searchable fields, presumably for development related to authentication.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by wlesieutre on Thursday March 21, 2019 @12:50PM (#19454464)
That's true. Kerbs article says:

> My Facebook insider said access logs showed some 2,000 engineers or developers made approximately nine million internal queries for data elements that contained plain text user passwords.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by meitme on Thursday March 21, 2019 @01:17PM (#19454817)
Those numbers are pretty meaningless without some concept of what queries they were making. When I was working with large logs I'd regularly pull huge amounts of logs to only look at maybe a handful of lines. Even then often only scanning for the things I'm specifically working on. Not saying this is what happened just saying those 2,000 employees almost definitely were not doing careful analysis on the complete result of their 9 million queries(And shouldn't have!).
Re:Facebook Stored Hundreds of Millions of User Passwords in... by anigbrowl on Thursday March 21, 2019 @02:55PM (#19456025)
'Only scanning for the things one is working on' to the point of missing huge security holes or safety risks is exactly that's wrong with the industrial division-of-labor approach. Workers start to assume that even if they do notice a problem, someone else is either going to fix it or has examined and OKed the current procedure. Workers who speak up and assert that something they noticed actually looks more important than whatever task they were originally assigned to are typically punished rather than rewarded, and fired if they make too much of a fuss because otherwise managerial authority might be diminished. Most firms run internally like a dictatorship, and given Facebook's absurd ownership structure (where there are voting and non-voting shares Zuckerberg retains a majority of the voting shares) it's a recipe for dysfunction.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by tptacek on Thursday March 21, 2019 @05:42PM (#19457659)
This is true but not very interesting. Like literally every large tech company in the entire industry, Facebook has a specialized team of people that work on security --- it has one of the better versions of that team, for what it's worth. Just like ordinary Apple engineers, ordinary Google engineers, ordinary LinkedIn engineers, and ordinary Airbnb engineers, ordinary Facebook engineers don't have an end-to-end picture of how all of security at Facebook works.

There's no evidence that there was whistleblowing suppression about this issue anywhere at Facebook, is there?

Re:Facebook Stored Hundreds of Millions of User Passwords in... by mk89 on Thursday March 21, 2019 @01:54PM (#19455266)
Out of 2000 users, there was not one that had a look at username/password? Impressive. Also developers during dev. Seriously, this is not justifiable, it's pure laziness if we want to be positive.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by vijay_n on Thursday March 21, 2019 @04:14PM (#19456759)
What if one among the 2000 was curious ?
Re:Facebook Stored Hundreds of Millions of User Passwords in... by rmason on Thursday March 21, 2019 @11:42PM (#19459461)
Zuck doesn't believe in hiring employees over 30 because they're not 'smart' about tech. Great example why that's a mistake.

If he did, someone would have seen that with 10-15 years of corporate experience and would have found that simply unacceptable. They also would have had the gravitas to know how to escalate things to the top and gotten it fixed.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @12:53PM (#19454496)
I understand that, but I believe they do not have the correct mentality here. I'm not certain how many of the people saying that have worked on systems as sensitive as FB. They think it's easier to screw this up because, for them, it is, but they don't operate at this level.

This sort of thing should not be any easier to screw up when you operate at the scale of FB. If it happens then you have the wrong procedures in place. In my personal example our logs and logging practices/code were audited in the same way our DB layer was. There was no difference; if a system touches sensitive data, it is a massive vulnerability.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by Alex3917 on Thursday March 21, 2019 @01:36PM (#19455055)
This. If you have two or three engineers at a startup it's a very easy mistake to make. With thousands of engineers it's an impossible mistake to make, so it could have only been done purposely.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by discreteevent on Thursday March 21, 2019 @03:41PM (#19456433)
"could only have been done purposely". In this case there's also a chance it was negligence. Who gives a shit. Move fast. A negligent culture can probably do more damage than the odd individual doing something deliberately.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by JohnFen on Thursday March 21, 2019 @02:36PM (#19455815)
And even with a startup of two or three engineers, it's pretty much unforgivable.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by Alex3917 on Thursday March 21, 2019 @02:47PM (#19455936)
It depends on how many users you have and what sort of data you're protecting. If you have a billion users then sending password reset tokens to your analytics provider is a very serious vulnerability. If you have 100 users and you're running a generic message board then it's not really a vulnerability because the difficulty of that method of attacking the assets under protection almost certainly exceeds their value.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by marshray on Thursday March 21, 2019 @03:22PM (#19456281)
> that method of attacking the assets under protection almost certainly exceeds their value

This was most likely the reasoning Sony had used (prior to 2012) when deciding how to safeguard the account info of users who had registered for marketing promotions.

It turned out that user credentials are unlike, say, office furniture, in that the cost of a data breach can vastly exceed the "value" of the protected "asset".

Re:Facebook Stored Hundreds of Millions of User Passwords in... by Alex3917 on Thursday March 21, 2019 @04:59PM (#19457256)
That's the best practice in the security world though. There's no such thing as an unhackable system, only systems where A) the cost of attacking them is more than the value of the assets under protection B) where the time it takes to attack the system is long enough for the attack to be detected.

C.f. Bruce Schneier's book: https://www.schneier.com/books/beyond_fear/

Re:Facebook Stored Hundreds of Millions of User Passwords in... by marshray on Thursday March 21, 2019 @05:44PM (#19457670)
That book was from 2003.

This is Schneier in 2016: https://www.schneier.com/essays/archives/2016/03/data_is_a_t...

Data Is a Toxic Asset, So Why Not Throw It Out?

"All this makes data a toxic asset, and it continues to be toxic as long as it sits in a company's computers and networks. The data is vulnerable, and the company is vulnerable. It's vulnerable to hackers and governments. It's vulnerable to employee error. And when there's a toxic data spill, millions of people can be affected. The 2015 Anthem Health data breach affected 80 million people. The 2013 Target Corp. breach affected 110 million.

If data is toxic, why do organizations save it?

..."

Re:Facebook Stored Hundreds of Millions of User Passwords in... by JohnFen on Friday March 22, 2019 @02:16PM (#19465310)
I really could not disagree with this more.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by viraptor on Thursday March 21, 2019 @03:40PM (#19456420)
The problem is, you can't ensure that. You can do best effort filtering/scanning only. Let's say you have an API and someone writes a client with a memory corruption bug which results in password and some other field being sent swapped 1 in 10k times. Now you have password logged. You maybe can't even tell exactly where and it's close to impossible to detect automatically. "just don't screw up" is not possible in this case and the chance you'll learn about this soon is really small.

Or if you think a client bug is a stretch: If you're running a large enough website which logs usernames on failed logins, I bet you have at least one password or a concatenated usernamepassword in your logs. Just because someone wasn't paying attention to the text box focus.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by btown on Thursday March 21, 2019 @05:15PM (#19457395)
Large orgs could have a central knowledge base of all places someone could type a password (as required by code reviews, and perhaps by automated detection of password-type inputs), and a bot which attempts to fill correct and incorrect passwords for a number of canary users, and scans across all logs for plaintext canary passwords. It's shocking that someone like Facebook, which has so many partner-facing and user-facing interfaces, wouldn't have developed something like this.

Free startup idea: build a SaaS for the bot phase of this, and make the log-scanner simple and open source so enterprise security teams can deploy it freely. Offer a certification process and consulting. Hire lobbyists (and folks with inroads into insurance companies) to paint plaintext passwords as the devil and make yourself a de facto legal requirement. And make sure your log-scanner doesn't do any logging of its own :)

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @04:48PM (#19457163)
You can never ensure anything completely in engineering. Perfection is never the goal, but you can do a much better job than FB has here.

You're talking in hypotheticals. Nowhere did I say "nothing ever goes wrong if you know what you're doing". What about the issue at hand? What's your opinion on passwords being logged on every request for years?

Re:Facebook Stored Hundreds of Millions of User Passwords in... by viraptor on Thursday March 21, 2019 @05:06PM (#19457318)
> This stuff is security 101. If you're logging requests then you need to ensure they don't contain sensitive info.

If what you meant by that is "best effort" then sure. The issue at hand is only obvious now that we're reading about it. It could easily be missed depending on how their infrastructure works.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @05:44PM (#19457673)
>The issue at hand is only obvious now that we're reading about it

No, it's not. It's completely obvious to anyone who has ever worked on a system which deals with sensitive information. It can only "easily be missed" if you're not auditing your code and logs. This stuff is basic to anyone who works in industries where the data is a liability.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by pnutjam on Thursday March 21, 2019 @12:46PM (#19454421)
This is exactly how Zuck was able to steal login information in his stories about founding facebook.

I find it hard to believe this is accidental.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by human on Thursday March 21, 2019 @03:25PM (#19456300)
This is borderline illegal, if not simply illegal. What if he entered into Paypal accounts or bank accounts? I don't want a world where if I enter the wrong password, I have companies pouring over my other accounts trying to breach them. Let alone if I reuse a password by accident.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by kerng on Thursday March 21, 2019 @12:54PM (#19454512)
Do you have a reference? I was wondering the same but have no reference.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by freeflight on Thursday March 21, 2019 @01:35PM (#19455045)
Re:Facebook Stored Hundreds of Millions of User Passwords in... by arrty88 on Thursday March 21, 2019 @01:48PM (#19455200)
Yep i remember this story. So clever and yet so dirty.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by ArtDev on Thursday March 21, 2019 @04:50PM (#19457185)
Wow! That does not look accidental at all!
Re:Facebook Stored Hundreds of Millions of User Passwords in... by oldmanbythesea3 on Thursday March 21, 2019 @12:51PM (#19454479)
> I don't know anything about FB's infrastructure

This explains a lot of the comments here. Facebook’s scale is not like anything most engineers have worked on. Facebook probably has logs in the 100s of terabytes. Ensuring that sensitive data isn’t logged takes more than some occasional greps.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by freeflight on Thursday March 21, 2019 @01:45PM (#19455164)
This feels like a slightly differently framed version of the "Too big to fail" argument and does pretty much nothing for me.

Collecting data on such massive scales is literally FB's whole business.

But with that also comes a responsibility that shouldn't simply be waved away with "But they are so big, it's so difficult!"

Because when it's about monetizing their massive amounts of, often illegally collected, data then FB seem to have no issues having everything in order and getting stuff to work, regardless of how "difficult" it might be.

Probably has to do with the fact that there's no money in protecting users data properly and FB seems to be pretty much immune from negative PR having any bad consequences.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by dboreham on Thursday March 21, 2019 @05:41PM (#19457646)
>takes more than some occasional greps

Of course at FB scale you'd automate this by creating a set of canary accounts with unique passwords that you perform a search for in the ETL pipeline, or some other handy place. This will at least catch inadvertent plaintext password logging.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by PixyMisa on Friday March 22, 2019 @12:44AM (#19459688)
Facebook ops team: "We're waist-deep in dead canaries."
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @12:57PM (#19454546)
My point is that it's irrelevant. Have more data? Need more auditing. Any system which touches sensitive data is subject to security review. Yes, FB systems are massive. They should have massive oversight as well. You may as well be defending a nuclear meltdown because desiging nuclear power plants is hard.

>Ensuring that sensitive data isn’t logged takes more than some occasional greps.

Right; it requires investment into process, requirements, testing, and oversight. Most importantly, it requires a company wide, top down mentality that your customer's privacy and protection is more important than your margins.

If you can't (won't) dedicate the resources required to ensure your customers data is protected then you have no business operating at such a scale.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by ryandrake on Thursday March 21, 2019 @01:15PM (#19454782)
Exactly. Can every piece of data logged be tied back to a legitimate business purpose? What’s needed here is a mentality change: These logs should be thought of as liabilities rather than assets. You should log only what you need, while you need it, and then turn off the log when you’re done. If your mentality is “log everything, always, because maybe we’ll need it later” then these privacy and security trash fires should be expected.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by viraptor on Thursday March 21, 2019 @03:24PM (#19456295)
Log everything: you don't care about privacy.

Treat logs as liabilities: why can't you solve the issue I experienced yesterday?

You can't win. Either you log more than you think you need right now or you can't do engineering investigations on past data. You're going to end up somewhere in the middle realistically.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by matz1 on Thursday March 21, 2019 @01:27PM (#19454945)
Everything is a tradeoff, how much cost that fb incure due to this incident, I would guess not so much, at least not big enough to warrant massive resources needed.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @01:47PM (#19455177)
Well, that's the problem really; they obviously don't care.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by NoodleIncident on Thursday March 21, 2019 @02:07PM (#19455432)
According to the timeline of events in The Fine Article, this story only exists because someone cared. At many companies the story would end at "one diff reviewer noticed passwords getting logged in one diff". All of the numbers in this story come from an internal investigation to see where else they're making the same mistake, _so they stop doing that_. That's not what you do if you don't care.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @02:25PM (#19455648)
If FB truly cared it would likely never have happened, let alone gone on for years. I'm not saying no employee at FB cares; I'm saying FB as an organization doesn't, and we have plenty of "I'm sorry, we'll do better" statements to back that up.
[dead]
Re:Facebook Stored Hundreds of Millions of User Passwords in... by dang on Friday March 22, 2019 @01:56AM (#19459947)
Crossing into personal attack isn't allowed here, regardless of how right you are or feel you are. Most of your comments to HN have unfortunately been like this. Would you mind reviewing https://news.ycombinator.com/newsguidelines.html and taking the spirit of this site to heart? It's particularly important when your points are right, so as not to discredit them.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @10:26PM (#19459159)
It's hard to take you seriously when your argument boils down to name calling and how obviously awesome FB is.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by zeckalpha on Thursday March 21, 2019 @10:54PM (#19459271)
Only 100s of terabytes?
Re:Facebook Stored Hundreds of Millions of User Passwords in... by tptacek on Thursday March 21, 2019 @05:37PM (#19457611)
I work fairly extensively in health care technology and have since ~2005 and am not aware of the particular regulation that would cause the "FDA" to react to a password storage security gap. Could you be more specific about the regulations you're referring to?

Unsafe logging of PHI would be explicitly problematic, but passwords aren't PHI.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @07:42PM (#19458433)
I never said the FDA was specifically interested in passwords. The FDA was brought up in reference to my work with PHI. The FDA does care about how you secure access to sensitive data however. If you leak passwords which allow unauthorized access to PHI, you're going to have a problem.

The analogy was intended to focus on practices which should be employed by companies which handle sensitive data, not the specifics of what the FDA is looking for.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by tptacek on Thursday March 21, 2019 @07:48PM (#19458457)
These aren't "leaked" passwords; they're logged in plaintext internally, which is not great, but is not the same thing as having leaked them.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @08:01PM (#19458534)
"leaked" in the sense that they're somewhere they shouldn't be. I could have chosen a better word. if I were to store database passwords on a file share the entire company had access to we would consider that a "leak" even though they weren't exposed externally.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by tptacek on Thursday March 21, 2019 @09:03PM (#19458836)
HIPAA/HITECH would not necessarily; the analysis would have to include compensating controls and who had access. The fact pattern in this Facebook case would probably not support a violation. Again: crappy stored passwords aren't PHI.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @09:42PM (#19458991)
I think perhaps I wasn't clear enough on the boundaries of my analogy and where it falls apart.

You work in the industry so you know that the FDA is not highly prescriptive. They give you a general outline of, essentially, process. HIPAA goes into more detail, but still, an organization has quite a bit of leeway as to how the meet regulatory requirements.

As far as passwords go, you're correct. Passwords in logs aren't a direct violation as far as I'm aware. If e.g. an employee gained access to data they shouldn't have access to per internal policy and used that data in an illegal manner, _then_ you have a problem.

Still though, I never meant to imply that what happened at FB would violate FDA regs. What I said was:

>I've worked in healthcare / biotech for more than a decade and I can promise you that the FDA would see no difference between the two types of gaffes.

The "two types" in question here were defined by the GP ("easy to make" mistakes like logging and something something about database design.) I wasn't referring to passwords specifically, and I don't believe that this is as bad as e.g. PHI just sitting around for anyone to see.

The analogy was meant to convey this; in a health care environment we are required to secure (encrypt) PHI and PII at rest. If we were found in violation of that, it wouldn't matter if it got there via logs or poor database design.

Again, I realize this is not an FDA/HIPAA situation. My experience with sensitive data is in that sort of environment, and I believe the same sort of mentality should be taken by FB in regards to the security and privacy of their users.

Wow, didn't expect that to get so long. My thumbs aren't made for this.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by toomuchtodo on Thursday March 21, 2019 @12:20PM (#19454104)
This is how professional software engineering and infrastructure implementation is done, and I appreciate you pointing it out so forcefully.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by arkitaip on Thursday March 21, 2019 @12:28PM (#19454201)
Corollary: Most web development simply lack the rigor of engineering.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by mfoy_ on Thursday March 21, 2019 @03:49PM (#19456503)
A lot of HNers probably have the job title "software engineer" without any of the qualifications of an "engineer"... that's probably why you're being down-voted.

But you're not wrong.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by toomuchtodo on Thursday March 21, 2019 @12:34PM (#19454264)
Most software engineers aren’t. Engineering requires licensing and exams through a governing body. Can’t have the prestige of the title without the responsibility. Software developers want to have their cake and eat it too (power and respect with no oversight and governance).

Pile on the regulation (GDPR for starts, more PII protection to follow up, extremely painful fines for failures).

Re:Facebook Stored Hundreds of Millions of User Passwords in... by jjeaff on Thursday March 21, 2019 @01:02PM (#19454621)
In the US, you only need certifications and testing for a "professional engineer". Most electrical, chemical, mechanical, or civil engineers are not certified PEs. Yet I don't think anyone is claiming they aren't engineers.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by tsbertalan on Thursday March 21, 2019 @03:34PM (#19456382)
I have a PhD in chemical engineering, but not a PE, since I didn't go the industry route. I wouldn't feel comfortable calling myself an Engineer without it, and that was the attitude expressed by my professors and cohort coming out of undergrad.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by mfoy_ on Thursday March 21, 2019 @04:00PM (#19456615)
It's my opinion that the title "Engineer" should be on par with things like "Doctor" or "Lawyer". It should require certification and there should be consequences for claiming to be one if you aren't.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by mcbits on Thursday March 21, 2019 @08:49PM (#19458772)
I don't think anyone would get in trouble for job titles like "computer doctor" or "network protocol lawyer". Practicing medicine or practicing law (or in some cases, practicing as an engineer) without the required qualifications, regardless of job title ... different story.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by balls187 on Thursday March 21, 2019 @02:15PM (#19455531)
> Software developers want to have their cake and eat it too (power and respect with no oversight and governance).

This doesn't come from software developers.

This comes from the SV culture of "move fast and break things."

Re:Facebook Stored Hundreds of Millions of User Passwords in... by toomuchtodo on Thursday March 21, 2019 @02:25PM (#19455658)
I painted too broad strokes. I agree, and admit my mistake.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by mfoy_ on Thursday March 21, 2019 @03:53PM (#19456541)
Just replace "software developer" with "self-proclaimed software engineer" in your comment and you'd be spot-on.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by balls187 on Thursday March 21, 2019 @04:15PM (#19456785)
Nothing about engineering really covers security best principles and practices.

I went through classical engineering school, and I'd summarize with three categories:

* Newtonian Physics & The Mathematics Behind It (i.e. Differential Equations)

* Ethics

* Technical Communications

Re:Facebook Stored Hundreds of Millions of User Passwords in... by mfoy_ on Thursday March 21, 2019 @04:48PM (#19457156)
That's because there is no software engineering program, and other engineering programs don't deal with "security" per se.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by balls187 on Thursday March 21, 2019 @08:26PM (#19458660)
My alma mater offers a degree in Software Engineering.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by jammygit on Thursday March 21, 2019 @09:08PM (#19458858)
I think that was actually invented at Facebook in the early days, unless I'm mistaken. Its a good mantra unless its security related
Re:Facebook Stored Hundreds of Millions of User Passwords in... by vonmoltke on Thursday March 21, 2019 @01:51PM (#19455237)
> Engineering requires licensing and exams through a governing body.

Offering engineering services to the public requires licensure. Working at places like Boeing, General Motors, Texas Instruments, and Caterpillar does not (for the vast majority of positions); It just requires an accredited engineering degree.

Note that this is independent of the software industry needing more engineering rigor, which it desperately does.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EnFinlay on Thursday March 21, 2019 @12:45PM (#19454402)
I couldn't agree more.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by gridlockd on Thursday March 21, 2019 @01:03PM (#19454643)
> Most software engineers aren’t.

"Software Engineer" is just a job title.

> Engineering requires licensing and exams through a governing body.

"Software Engineering" doesn't, it's just a job title.

> Can’t have the prestige of the title without the responsibility.

There is no real-world prestige associated with having "Software Engineer" as a job title (as opposed to "Software Developer").

> Software developers want to have their cake and eat it too (power and respect with no oversight and governance).

"Power and respect" is not actually something that is commonly associated with a guy sitting at a desk for a salary.

> Pile on the regulation (GDPR for starts, more PII protection to follow up, extremely painful fine for failures).

You just learned that Facebook stored passwords in plaintext for years and nothing bad happened. In fact, it's hard to conceive that anything particularly disastrous could have happened. Yet, you call for more regulation that will drive up costs for everything. Whole industries could become unprofitable and those high-paid "Software Engineers" would become redundant.

I have the opposite opinion: The fact that computer security is generally poor teaches people how to properly use computers. They need to assume that there are no secrets, because that is the plain reality. No amount of regulation will make computers secure. No certification or best-practice encryption scheme will prevent users from writing their password on post-it notes, or from opening "sexy.jpg.exe", or from answering that call from the "Microsoft Service Center".

Re:Facebook Stored Hundreds of Millions of User Passwords in... by mfoy_ on Thursday March 21, 2019 @03:44PM (#19456459)
In Ontario the Professional Engineers (http://www.peo.on.ca/) crack down on unlicensed use of the "Engineer" word in job titles pretty aggressively.

The point is that the public should have confidence in engineers. Software developers who tout themselves as "software engineers" actively piggy-back upon, and undermine this confidence. It's malicious, and you should feel bad for defending the practice.

If you still don't see why, "Lawyer" and "Doctor" are "just job titles" but obviously that's a problem. I trust you can see that.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by gao8a on Friday March 22, 2019 @10:38AM (#19462902)
I believe there are exceptions like the "Combat Engineer" in the Canadian Forces.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by gridlockd on Thursday March 21, 2019 @06:50PM (#19458139)
> In Ontario the Professional Engineers (http://www.peo.on.ca/) crack down on unlicensed use of the "Engineer" word in job titles pretty aggressively.

Yeah well, good for them I guess. I don't think anybody else cares.

> The point is that the public should have confidence in engineers.

Why? "Engineer" is a very broad term used in a variety of occupations for very different things. If you're looking at someone's credentials and you're so uninformed that you can't tell the difference between a licensed engineer in a particular profession and a guy that has "Engineer" written on their business card, you're not qualified to make a decision either way.

> If you still don't see why, "Lawyer" and "Doctor" are "just job titles" but obviously that's a problem. I trust you can see that.

I can see the argument for why a medical doctor or a lawyer should be afforded some amount of protection, because they are directly dealing with laymen. I don't buy the same argument for the word "Engineer", much less "Software Engineer". It just doesn't really mean anything. We already have degrees and certifications for when specifics matter.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by jammygit on Thursday March 21, 2019 @09:17PM (#19458890)
In Canada, the term engineer is protected, but in the states it is specialization dependent. I went to school for software engineering and I have my ring (I'm not a full engineer for a few more years though).

We focus a lot on testing and I just finished a mandatory ethics workshop. Its a different approach to software than I read about elsewhere. Almost no time spent on algorithms either - bad for interviews, but great for being able to write software that works though.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by darkpuma on Thursday March 21, 2019 @02:25PM (#19455660)
> "Software Engineer" is just a job title.

And like the job title "sandwich engineer", it should probably be derided.

Apologies to anybody working in the honorable trade of sandwich crafting. I love sandwiches and appreciate your work. They bring me much more enjoyment than software.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by randomdata on Thursday March 21, 2019 @03:35PM (#19456389)
I agree. The job title is literally _engine_er. Unless you oversee the operation of engines (as in locomotives), you are not an engineer.

But seriously, the definition of engineer in regular lexicon is someone who designs, builds, or maintains complex systems. I struggle to think how software does not tick all of those boxes. Sandwiches are a different story.

Perhaps you are confusing engineer with professional engineer? I can see how it might be easy to mix them up if you are not paying attention, but professional engineer carries a different meaning. Most software engineers are not professional engineers but are unquestionably engineers.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by kevin_thibedeau on Thursday March 21, 2019 @04:00PM (#19456624)
The word engine signifies a product of ingenuity. A siege engine is a clever device to attack fortifications. Engineers don't just have to be engaged with engines in the modern sense to do engineering. The PE bureaucracy is just gate-keeping by the guild masters.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by darkpuma on Thursday March 21, 2019 @05:06PM (#19457321)
A 'software engineer' need not even have a college degree, the only qualification for calling yourself a software engineer is finding an employer willing to give you that title. Even non-PE mechanical engineers at least have the bare minimum decency to get an undergraduate engineering degree before calling themselves engineers.

Of course, some people get software engineering degrees, or computer science degrees (that term is another can of worms entirely), but that is not the rule.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by mfoy_ on Thursday March 21, 2019 @03:47PM (#19456491)
It becomes a meaningless word if anyone can just call themselves one. There has to be some standard, some governing body, some degree of rigour applied here.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by randomdata on Thursday March 21, 2019 @08:59PM (#19458814)
> It becomes a meaningless word if anyone can just call themselves one.

Only to the extent that all words are meaningless. However, we keep a reference known as a dictionary that helps maintain some consistency around meanings of words.

The Oxford Dictionary defines engineer as:

1. A person who designs, builds, or maintains engines, machines, or structures.

2. A person who controls an engine, especially on an aircraft or ship.

3. A skilful contriver or originator of something.

Is software an engine, machine, or structure? That is debatable, although I would suggest that it does meet the definition of machine. Under that suggestion, software engineer is a perfectly appropriate term. Designing, building, and maintaining is exactly what software engineers do.

If you disagree that software falls under the definition of engine, there is still that third definition. Is software created by a skilful contriver or originator of something? I think that is a definite yes.

> There has to be some standard, some governing body, some degree of rigour applied here.

Professional engineers are expected to display those things. That is unrelated to engineers. Different terms with different meanings. Software engineers may not be professional engineers, although they can be.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by darkpuma on Thursday March 21, 2019 @10:26PM (#19459157)
> 1. A person who [...] maintains engines, machines, or structures.

So we should call car mechanics "mechanical engineers"? And maintaining structures? With all due respect to the janitors out there, their job is vital to society but it's not engineering.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by randomdata on Friday March 22, 2019 @02:49AM (#19460145)
> So we should call car mechanics "mechanical engineers"?

By definition, I don't see why not. I suspect the spirit of maintain may be a little more nuanced, but words are fluid and if someone wants to interpret it that way, then it is so.

> With all due respect to the janitors out there, their job is vital to society but it's not engineering.

If by janitor you are thinking of someone who sweeps the floors, I think that is well beyond the spirit of maintain. That, to me, is cleaning.

Maintenance of a structure is more like addressing a beam that is cracking. I doubt that is a role that an average janitor deals with, and in many cases will legally require a professional engineer to spec the resolution.

But words are fluid, so if you interpret a janitor as someone who maintains a structure, then I guess engineer fits. It really makes no difference either way.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EnFinlay on Thursday March 21, 2019 @04:09PM (#19456709)
Professional engineers do engineering.

Title only engineers work on complex systems.

This distinction has largely been lost and most "Software Engineers" think they are doing PE Engineering when they are not.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by michaelmrose on Thursday March 21, 2019 @06:30PM (#19457998)
Do you think that if someone calls themselves a sandwich engineer people will begin to believe that designing cars is like makings subs? Do you really think the public can't tell the difference?
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EnFinlay on Friday March 22, 2019 @12:15PM (#19463991)
I think "Software Engineers" can't tell the difference.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by hombre_fatal on Thursday March 21, 2019 @03:27PM (#19456317)
Same with electrical, chemical, mechanical, and civil engineers since almost none of them are PEs?

Seems a bit silly.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by smrtinsert on Thursday March 21, 2019 @09:48PM (#19459014)
Worked in two data sensitive industries as well. There is no excuse, completely agree. This is amateur and completely indicative of a broken dev process
Re:Facebook Stored Hundreds of Millions of User Passwords in... by kitsune_ on Thursday March 21, 2019 @11:51AM (#19453783)
Data anonymization and de-identification is nothing new. Especially when it comes to logging. I don't get why a lot of you are downplaying it in this thread. This is just as bad as plain text passwords.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by hak8or on Thursday March 21, 2019 @12:02PM (#19453896)
The diffirence is intent and/or gross negligence. Storing passwords in plain text in a database requires a gross lack of security mentality in both design stages and implementation changes. It is also drilled into people's brains constantly about how bad of an idea it is. To put it simply, it cannot happen accidentally.

Logging like this can easily be attributed to an accident. The person who implemented this logging should get hit with some repercussions because he surely tested the logging and must have seen the passwords when glancing by eye. But other than that, this was clearly a minor oversight.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by wrs on Thursday March 21, 2019 @12:22PM (#19454118)
Yes. Consider this not-unlikely scenario: The people who implemented the logging did it as a feature of a generic API proxy (there’s no way Facebook implements logging separately for each of their bazillion services!), and no doubt put in a provison for masking sensitive data. They tested it and it worked fine.

Then some devs miles and years away didn’t use that feature properly and accidentally failed to not log passwords in an incoming request. They may not even have been looking at those request logs because that’s not the request they were testing.

Then that feature went into production and this oversight was magnified millions of times.

At large scale you don’t just tail the production log firehose and look for stuff. You have to search for specifics to find anything st all. So if nobody was debugging this thing in production it’s quite plausible nobody saw the passwords in the log.

One way to catch this sort of thing is sentinel data — in this case, have a unique value for a test account’s password and test every service with it, then search everywhere you can think of for that value.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by grahn on Thursday March 21, 2019 @12:44PM (#19454390)
So here is the thing: It was presumably relatively easy for you to come up with that scenario, which you called "not-unlikely". Then what you do is you put that scenario into your risk analysis when you're designing the authentication architecture, and figure out mitigations to make sure that particular mistake becomes (very) unlikely.

The notion that "it could easily happen" that is being brought up throughout this thread should really only suggests that people aren't doing even rudimentary security assessments (or, hopefully, they're not working with security sensitive software).

If you can't solve it technically, you solve it through processes and training. Same goes for any other industry -- if a construction worker said that it's just one bad morning away from dropping a two tonne girder on a playground, we would never accept that. Or a pilot crashing an airliner into the waiting hall when they're supposed to land. Somehow it seems that large parts of the software industry simply hasn't reached the level of maturity we expect from pretty much all other industries.

Facebook is an enormous company. They should be able to have entire departments working on these topics. It's not a one-person hobby project we're talking about.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by wrs on Thursday March 21, 2019 @03:03PM (#19456109)
I'm sure they did figure out mitigations. They failed. Things fail. Two airliners just failed rather spectacularly, and that's the very industry you're benchmarking against.

>Somehow it seems that large parts of the software industry simply hasn't reached the level of maturity we expect from pretty much all other industries.

True, but that's a rather broad brush — in terms of actual risk of damages there is nowhere near an equivalence between "airliner crashing into waiting hall" and "logging some plaintext passwords".

Of course the culture, priorities, and domain are also very different between social network engineering and airliner engineering, which is by the way one reason Facebook could grow from nothing to mind-bogglingly gigantic in a decade, while it takes a decade to get just one new airliner into production.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by grahn on Thursday March 21, 2019 @03:38PM (#19456410)
The point I was making by comparing to a pilot, which I realise I could have expressed a lot more clearly, is that it is perfectly possible to mitigate risks through proper training and procedures even if it's not possible technically. (I.e. all it takes for a plane to crash is to turn the flight controls a few centimetres in the wrong way at the wrong time, yet it almost never happens.)

Of course things fail and people screw up. What I don't agree with are arguments along the lines of this just being a slight oversight, and that those can easily happen. It should require serious failure on multiple levels for anything like this to happen at that scale, if they are implementing things properly, not minor oversight.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by wrs on Thursday March 21, 2019 @06:16PM (#19457901)
Exactly — my scenario was an example of how failures at multiple levels could have caused this to happen. My "not-unlikely" is meant retroactively — now that it's happened, what's a not-unlikely explanation for how it was allowed to happen in a company the size of Facebook?

I didn't intend to imply it was a "slight oversight" — it's clearly a significant oversight — but there are people saying it's obviously gross negligence because how could this ever happen in a company that wasn't completely incompetent, etc. No, terrible accidents can and do happen even in companies that are trying hard to do a good job. Just like when a 737 crashes, you shouldn't assume Boeing is totally incompetent, but rather that several things must have gone wrong at once.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by lacey on Thursday March 21, 2019 @02:31PM (#19455743)
> The notion that "it could easily happen" that is being brought up throughout this thread should really only suggests that people aren't doing even rudimentary security assessments

Precisely.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by zrobotics on Thursday March 21, 2019 @12:14PM (#19454026)
How is this in any way better or more excusable? Calling it a 'minor oversight' could also apply to the DB being in plaintext.

Storing passwords in a plaintext DB heppes in the same manner-a dev is lazy or ignorant of the security reprocussions. Which is what happened here; barring evidence this was done maliciously we can assume that this was accidental. But that doesn't make it any more excusable, since it should be clear that logs can also contain sensitive data that needs to be protected/anonymized.

Considering how selective FB is for hiring, I would hope we could expect a higher standard.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by glenneroo on Thursday March 21, 2019 @12:35PM (#19454285)
Not to mention 200-600 million users had their passwords exposed for many years. That must be a massive trove of log files.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by Aeolun on Thursday March 21, 2019 @12:19PM (#19454085)
I see this differently. If someone stores passwords in plaintext in the database, they’re idiots that don’t know any better.

If someone logs your password in plaintext but has it encrypted in the database that’s grossly negligent.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by lacey on Thursday March 21, 2019 @12:16PM (#19454052)
You assume that storing passwords in plaintext is intent as opposed to gross negligence. In many past instances it’s been intentional and gross negligence because the people making all the design and implementation choices were not knowledgeable about best practices.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by cflewis on Thursday March 21, 2019 @11:59AM (#19453865)
Because we all know we are one bad morning away from doing it ourselves. People are distinguishing between extreme incompetence (storing plaintext passwords in databases) vs people trying to do their jobs.

It's the same reason when there are large outages, where the comments are split between the enraged customers, and then the ones that are "Man, sucks to be them" as know they could easily have been the one that got the config push wrong.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by kitsune_ on Thursday March 21, 2019 @12:08PM (#19453958)
The fact that sensitive data like this is just one config push away from being exposed means it's a brittle design (not just the code, but the entire design /review / deployment process - this is a platform with 1 billion users, not your 1-dev WordPress webpage). That said, this is further aggravated by the simple fact that for whatever reason, 20k of their employees had access to these logs.

All in all it just paints a picture of an irresponsible company where their house is not in order.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by lostapathy on Thursday March 21, 2019 @01:00PM (#19454595)
Exactly. It's one thing not to have enough controls in place to catch something like this on the forum for your warcraft guild. It's another thing entirely when you operate at the scale of Facebook.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by untog on Thursday March 21, 2019 @12:11PM (#19453993)
"people are distinguishing between extreme vs people trying to do their jobs"

Those things are in no way exclusive. Storing passwords in plaintext is awful practise. Including the contents of form submissions in logging is a similarly awful practise. I really don't see what the difference is.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by munk-a on Thursday March 21, 2019 @12:19PM (#19454090)
I like logging and at our company we blanket log all GET parameters on every request, similarly I think it's a Good Idea™ to never log POST parameters, but there are some pages where we've started logging some whitelisted ones because they can help diagnose some errors we run across, but, in an environment where all data is coming into the server in JSON blobs attached in request bodies then it can be a bit harder to make any sort of blanket whitelist.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by ApolloFortyNine on Thursday March 21, 2019 @12:30PM (#19454223)
Earlier in the thread:

>Because there's two types of storing passwords in plain text. There's the "your password is stored in plaintext in the database" way which everyone agrees is 10 different kinds of stupid, and then there's the "we accidentally logged the body of all requests that went through this system, and it turns out login requests came through here" kind.

Basically the conscious decision to store passwords in plain text is worse than unintentionally doing so in logs. One is purposeful, one is not. Yes it's bad, but it's not as bad as if it was done on purpose. And generally, this how most laws are enforced or implemented.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by untog on Thursday March 21, 2019 @12:44PM (#19454392)
Can't both be attributed to ignorance? You could store passwords in plaintext in a database because you didn't know better. You can store plaintext passwords in logs because you don't know better. If I store passwords in plaintext am I being purposeful or am I being ignorant of best practises?

I think people are drawing a distinction where one doesn't really exist.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by ApolloFortyNine on Thursday March 21, 2019 @12:55PM (#19454525)
>You can store plaintext passwords in logs because you don't know better.

This whole conversation is about how it likely was not done on purpose, and that it was the result of logging HTTP requests and responses.

If they wrote logger.info(password), yea I'd say that's as outrageous.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by 908087 on Thursday March 21, 2019 @12:04PM (#19453924)
If a single developer is able to push something like this to production without scrutiny in "one bad morning" on a platform with billions of users, the company itself is the problem.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by pmontra on Thursday March 21, 2019 @12:27PM (#19454190)
I'm working with Rails and Phoenix on two different projects right now and all of them filter out passwords in the log files [1] [2].

I'm also working on a Django project but we're not logging HTTP calls arguments there. I think we could use a filter like [3] but I'd rather have the framework to automatically take care of that.

And if I'd be writing a web app from scratch, no matter if I've been doing web for 25 years, I'm sure I'll do a lot of silly mistakes. That's why I prefer to build on top of frameworks.

[1] https://guides.rubyonrails.org/configuring.html#rails-genera...

[2] https://hexdocs.pm/phoenix/Phoenix.Logger.html

[3] https://djangosnippets.org/snippets/2966/

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EnFinlay on Thursday March 21, 2019 @12:00PM (#19453873)
You're right, the impact is just as bad. I think people in this thread (including myself) are downplaying it because it's a very easy mistake to make, rather than a terrible design decision.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by staticassertion on Thursday March 21, 2019 @12:20PM (#19454099)
The major difference is that we don't have standard patterns for protecting against one attack, vs the other.

With password storage everyone knows the patterns, or we expect them to.

With everything between the request and password storage, we don't.

This type of attack could easily be prevented. When secrets come in, immediately store them (ideally at the web framework level) in a type that overrides print/debug formatting. Then add a "get_raw" to it, and you can now grep for that being used anywhere outside of storage to a DB (and your DB libs should take the Secret type too). Or don't use a `get_raw` and instead use a `hash` method that returns a safely hashed version of it.

Further, your secret type could at the very least add a round of SHA256, maybe even with a pepper?, just to be sure.

This isn't hard, I've done it before. The problem is that it isn't something that people feel embarrassed not to do, vs storing plaintext creds.

Impact is the same - creds are plaintext in a DB. Attackers always expect sensitive data in logs, so it isn't as if you'd get lucky and they'd miss this.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by aeorgnoieang on Thursday March 21, 2019 @02:37PM (#19455818)
> When secrets come in, immediately store them (ideally at the web framework level) ...

But, in practice, a lot of this stuff is being logged by things like proxies that could be several layers in front of the "web framework level".

Re:Facebook Stored Hundreds of Millions of User Passwords in... by staticassertion on Thursday March 21, 2019 @03:14PM (#19456203)
Do proxies usually log POST data? Are these proxies terminating TLS?

Either way, yeah, you're right - it is not a perfect solution. But it means that for any system your engineers build, so long as they build them using your web framework that imposes this password type, you can grep your codebase for bugs.

You could implement client side hashing as a best-effort "in transit" mechanism but that has obvious downsides. Not sure how I'd feel about that approach in practice, but I can't see a big downside.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by newaccoutnas on Thursday March 21, 2019 @12:11PM (#19453991)
A mistake that should have been found very quickly, given the eyes. Not for years without ever apparently being known (I find that hard to believe)
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @01:03PM (#19454637)
When you're FB, Google, ADP, a bank, whatever, you have failed if this sort of thing is "an easy mistake to make." Responsibility should never fall on a single dev or team to begin with. This was going on for _years_.

It's either ametuer hour over there or the organization simply doesn't care enough to invest heavily in the protection of their users.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by dunham on Thursday March 21, 2019 @12:00PM (#19453879)
This happened to Apple on the desktop, CVE-2014-1317 - In that case, they were logging the body of failed API requests (hex encoded) to a file in /var/log. It turned out that the login request occasionally hit an error, logging your AppleID password.

It was easy to overlook, since as you said, it was intended to log something else (failed API requests), it only happened in the case of an error, and it was hex encoded. I only happened to stumble across it out of curiosity.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by captainredbeard on Thursday March 21, 2019 @12:43PM (#19454386)
The Apple ID team at Apple is one of the worst.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by pmart123 on Thursday March 21, 2019 @01:22PM (#19454877)
Interesting. Care to elaborate?
Re:Facebook Stored Hundreds of Millions of User Passwords in... by eppsilon on Thursday March 21, 2019 @06:07PM (#19457841)
Anecdotally, Apple ID auth on iOS/macOS has been a mess for me. Changing my password would result in multiple login prompts per device. Sometimes inputting the new password works, sometimes another prompt comes up after a few minutes.

Also, though the flexibility of being able to use a different ID for iCloud, home sharing, iTunes, App Store, Messages, etc. is neat, it's pretty annoying to need to set it in each of those places. (And TBH it seems like being able to share purchases/access/etc between IDs is more useful than being able to have separate ones, yet the iCloud family stuff took a while to arrive.)

The issues I've seen aren't as bad now as they used to be, but they haven't left a good impression.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by scriptkiddy on Thursday March 21, 2019 @11:55AM (#19453825)
> and the other is a very easy mistake to make which can go unnoticed for a long time (because you can be attempting to log things completely unrelated to logins).

This is not an excuse. If you're logging all request data, you need to strip or encrypt sensitive information in that request data. Handling Persistence of sensitive data is web development 101. Just because it's not in a database doesn't give you a pass to leave it unprotected.

This level of incompetency is unacceptable.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by pwg on Thursday March 21, 2019 @11:54AM (#19453813)
Different causes, identical security implications for the user's passwords that were improperly stored.

Both are security fails, regardless of the cause of the fail.

And a company the size of, and with the resources of, facebook, most certainly should not get a pass for the "oops, we logged more than we should have" cause. A corp. of their size, and with their resources, should be doing password handling correctly, every single time, no exceptions, no excuses.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by dcow on Thursday March 21, 2019 @11:49AM (#19453744)
The point perhaps is that they’re both terrible security designs and the impact to the user is the same regardless of how the “accident” happened. Nobody in FB’s position gets a pass for being irresponsible and negligent.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EnFinlay on Thursday March 21, 2019 @11:56AM (#19453840)
I disagree that they are both terrible security designs. We expect every company to not use plaintext for auth. We do not expect every company to have infra/ops setup to prevent logging on login requests.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by aequitas on Thursday March 21, 2019 @12:12PM (#19454001)
By extending this logic, a car manufacturer should be blamed for not designing proper brakes for their car. But if a worker then accidentally installs the breaks wrong they are not responsible?

Imho, a company (especially as big as facebook) should have the right process and procedures to prevent these kind of problems and ensure developers have proper training to make them aware of the consequences of their actions.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EnFinlay on Thursday March 21, 2019 @12:28PM (#19454202)
Interesting analogy and I see your point. If a car manufacturer's process made it easy to install the brakes wrong they would be held responsible (probably with a recall or damages for lives lost due to faulty brakes).

I guess part of this is that passwords aren't considered that important to many people :(

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @01:05PM (#19454670)
Who is "we" in this scenario? Governing bodies do. Engineers I've worked with in health care do, as do our PM's, security officers, etc.

I designed a clinical testing platform a couple of years ago. Our initial requirements stated very clearly that PHI and PII were not to appear in logs. This is basic stuff for anyone who actually works at this scale / level of sensitivity.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by nck4222 on Thursday March 21, 2019 @02:42PM (#19455874)
>We do not expect every company to have infra/ops setup to prevent logging on login requests.

What? I absolutely expect every company to not log my password in plain text. In my 15 years as a developer across several companies and industries, I have never seen anybody log passwords, or advocate for logging passwords.

I'm struggling to think why any employee of any company should be able to view a plain text password in any form. Why would there not be an expectation here?

Re:Facebook Stored Hundreds of Millions of User Passwords in... by viraptor on Thursday March 21, 2019 @03:31PM (#19456362)
You're taking about expectation not to log the password. That's fine.

The parent was taking about expectation about infrastructure that validates this. This is both very uncommon and impossible to do 100% correctly. You can scan logs for a prefix (password=), you can do entropy counting, you can try to decode hex values in text. But if you find a base64 encoded hex string representing "foobar" - how do you even know it's a password?

Short of trying all possible decodings of all possible substrings against your full password database, this is an impossible task. (You can do best-effort things though)

Re:Facebook Stored Hundreds of Millions of User Passwords in... by nck4222 on Thursday March 21, 2019 @04:32PM (#19456989)
Ah ok thanks, I misunderstood.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by dcow on Thursday March 21, 2019 @11:59AM (#19453867)
That’s certifiably depressing.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EnFinlay on Thursday March 21, 2019 @12:13PM (#19454016)
It might be depressing, but I think it's true. What do you think?
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EpicEng on Thursday March 21, 2019 @01:07PM (#19454687)
It is not true in my experience. It may seem true to the typical CRUD app web dev, but do they really know what it's like to be a custodian of so much sensitive information?
Re:Facebook Stored Hundreds of Millions of User Passwords in... by code_duck on Thursday March 21, 2019 @01:09PM (#19454709)
I would expect FB to have that, though.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by SonicSoul on Thursday March 21, 2019 @01:34PM (#19455041)
there's two types of storing passwords in plain text

nope.

there are n types of storing passwords in plain text (including storing them in memory).

you just named 2.

all n types fall under infosec responsibility to prevent, and none are acceptable. there is no pass because logs were less intentional than storing in a table

Re:Facebook Stored Hundreds of Millions of User Passwords in... by munk-a on Thursday March 21, 2019 @12:16PM (#19454046)
I think they are indeed the same outcome but I'd count plain-text DB passwords as grossly negligent while as this was merely negligent. Clearly both are terrible and deserve a shaming, but not hashing passwords going into a DB is a decision that someone pretty much necessarily had to have the full scope of and made a bad decision on. This logging issue could potentially be attributed to a mistake in team communication (i.e. the people we hired to auto-log requests didn't realize that `/login` should be blacklisted for logging and for some reason we never explicitly told them to do so).

So I agree that these actions are indeed same but different.

They ultimately speak to a failure at Facebook, but it doesn't speak to utter incompetence at Facebook.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by cflewis on Thursday March 21, 2019 @12:25PM (#19454165)
Yeah, there's so many ways this could happen. The one that came to mind for me was an engineer who thought passwords were being filtered by the time it got to their part of the stack, but somehow didn't notice they weren't because the payload was minified or because they tested in a test environment where they knew there wasn't the filtering but didn't look at prod (where there was also not the filtering).

So many ways this could have gone down, so easy to do.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by samstave on Thursday March 21, 2019 @12:33PM (#19454244)
>the other is a very easy mistake to make which can go unnoticed for a long time

Sure, then the question for anyone at facebook would be from the Bobs: "What exactly is it, you'd say, you do around here??

FB claims to have "top minds" in essentially every discipline...

Heck, they are IMO a revolving door to the .gov/nsa/infosec community...

So... I call BS on your statement as "whoops! Easy mistake!"

WTF is it that you'd say you do around here, Mr. FB-Security-Guy??

Re:Facebook Stored Hundreds of Millions of User Passwords in... by rhacker on Thursday March 21, 2019 @11:53AM (#19453799)
Maybe the HN crowd needs to re-think login security. About 25 years ago challenge-response was a HUGE thing in login security. As https gained momentum and traction that went away. But the nice thing about challenge-response (at least for Javascript enabled clients) is that the password is one-way hashed before sending to the server.

I wonder if it's time to up our game again and go back to that model.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by pferde on Thursday March 21, 2019 @12:55PM (#19454518)
I was just thinking the same thing. There is no reason the password itself even has to be sent over the wire.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by ashelmire on Thursday March 21, 2019 @04:46PM (#19457142)
The second is way worse. You don’t need access to the database for it. Most systems make it difficult to log a plaintext password; it should be filtered in your logs. This is day 1 shit.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by jammygit on Thursday March 21, 2019 @09:01PM (#19458825)
What I'm hearing is that, because they collected it and stored the passwords as part of their reckless attempt to log every action that every human makes online in order to manipulate them, its more excusable than if it was in a specific and protected user credential database?

Its only an easy mistake when you're vacuuming up everything people do.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by dboreham on Thursday March 21, 2019 @05:37PM (#19457614)
>Same same but different.

They're both issues with which any moderately competent engineer would be very familiar. Heck I've seen commercial contracts that specified that audits be done to ensure no password and PII leaks into log files. Everywhere I've worked in the past 20 years that logged stuff conducted audits on a regular basis to check that sensitive data wasn't being logged or in inadvertently stored in a database.

The grey area might be for example when some data gets logged as a blob of HEX that it turns out has a password in it if you run the right decoder function on it. I've seen cases like that though show up in audits -- you see a blob of HEX or MIME and go find out what might be in it.

Anyway, it really isn't accurate to say that this is a kind of <slaps forehead> <doh, why didn't we think of that> thing. It gets thought about all the time.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by BryantD on Thursday March 21, 2019 @12:04PM (#19453920)
The logging issue is something we've become aware of more recently, but it's just as bad. There is no intrinsic difference between the statement "don't store passwords in plain text" and "don't log PII or passwords in plain text."
Re:Facebook Stored Hundreds of Millions of User Passwords in... by voidlogic on Thursday March 21, 2019 @11:56AM (#19453837)
All the more reason to make the client side send HMAC(HMAC(username + password) + Unix Epoch rounded to last 5 min block)) over the wire in its POST to the auth endpoint.

All the transport encryption and DB encryption/hashing/salting won't protect you from this kind of logging mistake, but the above would.

P.S. There are ways to make the above even better by adding a nonce that has to be requested from the server before POST etc.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by captainredbeard on Thursday March 21, 2019 @12:42PM (#19454380)
If they were following best practices, the server would never have access to plaintext passwords. The client / frontend would hash the password contents and send that across the wire.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by throwawaymath on Thursday March 21, 2019 @02:22PM (#19455604)
That's actually not a best practice; on the contrary it's extremely uncommon. Not because it's bad, but because it just doesn't actually add a meaningful security improvement. On the other hand, it does add non-negligible complexity to your authentication system. In particular, it would have done absolutely nothing to prevent this specific vulnerability.

If you hash your users' passwords using a key-derivation algorithm on the client-side, each user's password simply becomes the original password's digest. From the server's perspective nothing has changed. Moreover the server will need to re-hash the password digest sent over the wire, because if the server is compromised the password digests can be directly replayed to the server to compromise corresponding accounts.

Additionally, since the shared secret between the client and server is the user's password digest, the password needs to be hashed using the same salt every time the user authenticates. So each user's password digest is still a de facto unique password which will be sent over the wire anyway. This scheme basically retrofits the server's job onto the client with added complexity. It's like the (slightly) faster horses version of password authentication, when we could really be experimenting with developing cars (like two/multi-factor authentication, more robust server-side controls and provable correctness).

That's not to say the scheme has no benefits whatsoever. It does mean that user passwords will be more complex, because the actual token stored by the server (the de facto password) is a digest. But there are two drawbacks - with enough users you'll still see many duplicated digests in your password database, even if you randomly generate salts on the client side. More importantly, you're offloading hashing to the client side in JavaScript. JavaScript can be very fast in 2019, but companies like Facebook and Google still maintain very low latency, substantially stripped-down versions of their websites[1] because client-side hashing isn't going to be nearly as fast as server-side hashing for a huge number of people. There's also a sizable population of people who don't even have JavaScript enabled, or who might have incompatible browsers.

tl;dr - Client-side hashing is not a best practice (and not widely deployed) because it comes with a nontrivial complexity increase, lower client compatibility and negligible security benefits. It also would not have prevented this vulnerability.

_______________________

1. For example, mbasic.facebook.com.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by voidlogic on Thursday March 21, 2019 @02:49PM (#19455962)
Your criticism (outside of complexity) of the suggestion may be unfounded, consider:

  Client: asks server for nonce
  Server: sends nonce
  ---- OR ----
  Nonce arrives with login page

  Client: sends HMAC(nonce + HMAC(username + password + appname) + Unix Epoch rounded to last 5 min block))

  Server: 
  1. gets response
  2. using username as key pulls HMAC(username + password + appname) from DB
  3. Computes HMAC(last nonce sent to username + DB HMAC + Unix Epoch rounded to last 5 min block)) and compares to user token
  4. last nonce is cleared
This algorithm would have prevented the attack (only the client computed HMAC would be in the logs) and is not subject to replay.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by throwawaymath on Thursday March 21, 2019 @03:22PM (#19456282)
To be fair what you're describing is a PAKE, which is substantially different from "merely" moving the key-derivation functionality of password hashing from the server to the client. They're categorically different things. But you're right - if you're going down the rabbit hole of client-side hashing, you might as well implement a PAKE instead.

This kind of gets to the heart of what I was referring to when I said client-side hashes are like faster horses rather than cars. If you're spending this much effort, a superior protocol is better than an unorthodox, modified one. SRP is a PAKE which basically takes your proposal and moves it into a different layer of abstraction (TLS), and OPAQUE makes improvements upon it which allow you to use elliptic curves[1]. There are other reasons not to use PAKEs, but they're a much more coherent and defensible suggestion than just bolting the key derivation system onto the client rather than the server.

______________________

1. https://blog.cryptographyengineering.com/2018/10/19/lets-tal...

Re:Facebook Stored Hundreds of Millions of User Passwords in... by viraptor on Thursday March 21, 2019 @03:11PM (#19456182)
This is the same as:

    Server sends nonce
    Client sends HMAC(nonce + password + time)
Your inner HMAC becomes the new password which now is stored in plaintext in the DB. You just call it something else.

There are better ways to implement this idea, like SRP/PAKE https://en.m.wikipedia.org/wiki/Secure_Remote_Password_proto...

Re:Facebook Stored Hundreds of Millions of User Passwords in... by javagram on Thursday March 21, 2019 @01:02PM (#19454629)
That’s hardly a best practice and if followed consistently just means that the hash is your actual password, which means if someone steals the hash from a log file they can still impersonate you.

Unless you actually mean some sort of challenge response scheme which is rather uncommon to see, e.g. http “digest” authentication or SRP.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by qpiox on Thursday March 21, 2019 @01:26PM (#19454927)
The big problem of a service having your true password (instead of the hash of the password) is that many users use the same password for a multitude of services (read Gmail, Hotmail, Yahoo, Amazon, ...)

So it's bad practice to keep or transfer the users cleartext password. It should never leave her browser/client. Period.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by aeorgnoieang on Thursday March 21, 2019 @02:42PM (#19455881)
If the service has only the hash of the password, then that's the password, which would then be subject to the same problems as a "cleartext password".
Re:Facebook Stored Hundreds of Millions of User Passwords in... by javagram on Thursday March 21, 2019 @01:50PM (#19455228)
Password managers and service specific 2FA solve that problem quite nicely for now (edit: although yes most users aren’t willing to do that).
Re:Facebook Stored Hundreds of Millions of User Passwords in... by rubicon33 on Thursday March 21, 2019 @01:29PM (#19454985)
The irony of this post is that most people would probably beef up the security of their DB, far beyond whatever layer of security they prop up for their logs.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by bitL on Thursday March 21, 2019 @06:16PM (#19457906)
A company that has lower acceptance rate than Harvard is "accidentally logging passwords"? Yeah, sure :D
Re:Facebook Stored Hundreds of Millions of User Passwords in... by ineedasername on Thursday March 21, 2019 @02:01PM (#19455353)
Just because it's an easier oversight to make doesn't mean FB should be cut any more slack over it.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by zeckalpha on Thursday March 21, 2019 @10:51PM (#19459259)
What are logs but a database with a particular schema?
Re:Facebook Stored Hundreds of Millions of User Passwords in... by Ajedi32 on Thursday March 21, 2019 @11:55AM (#19453828)
This isn't a case of a company intentionally storing passwords in plaintext in their database. That's a big security no-no, because password hashing is such a basic and fundamental part password-based authentication that it's nearly impossible to miss if anyone involved in maintaining that system is remotely security-conscious.

This situation, on the other hand, seems to be more of an unintentional capture of passwords by their logging system. That's much harder to notice and more akin to a bug or security vulnerability, which is something pretty much every system suffers from sooner or later.

In such cases I'm more concerned with the company's response to the vulnerability than the fact that it exists at all. Here it seems like Facebook noticed the problem and proactively fixed it before it was exploited, which to me is a good sign.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by pfortuny on Thursday March 21, 2019 @12:35PM (#19454281)
Impossible is just a couple of mistakes away. Paper holds whole worlds.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by blr246 on Thursday March 21, 2019 @12:36PM (#19454291)
Agree this is pretty much inexcusable.

Logging request or response payloads without an explicit whitelist should raise flags for any developer. There are very few cases where you can assert that not only in the present but also for all future use cases of a system, the entirety of a payload will not contain sensitive user data.

Only a whitelist will suffice to maintain good security. It's common for developers to attach sensitive data for debugging and other use cases under arbitrary paths.

Systems can improve further by adding patterns and other heuristics to drop values from the whitelist that look like sensitive data.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by cbhl on Thursday March 21, 2019 @01:06PM (#19454672)
I would argue that an organization the scale of Facebook is the most likely place for this mistake to happen.

Log in and sign up pages -- especially on mobile web -- are being constantly iterated on by "growth" and "emerging markets" teams whose first priority is getting graphs to go up and to the right, not making sure the pages are secure. Their entire mission is to make things work with yesterday's technology (feature phones, old Android tablets, and so forth).

On the other hand, the dedicated security folks are focusing on ensuring there are multiple factors protecting high-profile targets, so they're working on SMS as a second factor, Login Codes, Security Keys, and primarily focused on Desktop Web, iOS, and Android. Or they're doing fuzzing, or building robots to chase down engineers for buffer overflows and the like.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by WrtCdEvrydy on Thursday March 21, 2019 @11:41AM (#19453626)
Dude, you'd be surprised how much data your average company leaks in logging.

Ask any HIPPA compliant company how they scrub their logs from errors that include medical data and you'll truly see how bad things are.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by kitsune_ on Thursday March 21, 2019 @11:46AM (#19453696)
This is, supposedly, one of the top 4 global tech companies. Not some regional med-tech enterprise shop with a fleet of ageing WindowsNT servers. It is literally inexcusable.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by lojack on Thursday March 21, 2019 @12:45PM (#19454406)
It happens at fortune 5 medical companies. When you sign up to Facebook you know you’re signing up to Facebook. When you go to the doctors office you are probably completely unaware that your PHI is being shared with a couple dozen other companies often intentionally and sometimes unintentionally. If you are a human in the United States there is a high probability your PHI is sitting in a log file on a server owned by some company you’ve never even heard of.

Fwiw none of this is necessarily a breach of hipaa laws.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by WrtCdEvrydy on Thursday March 21, 2019 @01:15PM (#19454788)
Wait till you get into companies that allow doctors to have other doctors review your charts... your data gets silently shipped to a third party company who shares it with doctors... and in most cases you don't even get told it happens.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by tzs on Thursday March 21, 2019 @02:24PM (#19455633)
OT: how much of a pain is it under HIPPA to deal with medical data provided by the patients themselves through channels that aren't supposed to be used for such data?

I've never dealt with medical data, but do deal with credit card data so have to deal with PCI. With credit card data we run into customers who send emails, or use online chat, or leave voice mails telling us they have a new card and giving the number. We never ask for them to do this, and indeed everything we tell them says never to send us a credit card by such means, but they do it anyway.

That brings all those systems into scope for PCI, which is a pain in the ass.

We use helpdesk and support chat software licensed from a third party. We had to write scripts that understand its DB schema and data formats and can find and remove credit card information, and keep them up to date as the helpdesk and chat software is updated.

A few years ago, the vendor tried to discontinue the stand-alone version and move its users to their cloud service version, but had to drop that plan when they found out that a lot of their customers were doing the same thing we were, and absolutely could not move to a cloud service unless that cloud service handled PCI issues. Apparently they didn't want to deal with making their cloud service handle that, and there had been no talk since then of dropping the stand alone version.

Do people dealing with HIPPA run into similar issues?

Re:Facebook Stored Hundreds of Millions of User Passwords in... by WrtCdEvrydy on Thursday March 21, 2019 @03:52PM (#19456530)
Yes, this is why people build in HIPPA compliant clouds like AWS... but I left that business years ago. You should always audit your third part services to see what data is sent in debug logs.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by adavis321 on Thursday March 21, 2019 @12:52PM (#19454491)
Just as alarming for me is that Facebook engineers don't seem to understand risk management:

"In this situation what we’ve found is these passwords were inadvertently logged but that there was no actual risk that’s come from this. We want to make sure we’re reserving those steps and only force a password change in cases where there’s definitely been signs of abuse."

Inadvertently logging passwords is a risk. If those logs were accessed then that's a bigger risk. Signs of abuse is an issue. There is no such thing as an "actual risk", there are just probabilities (and possible consequences). Once a consequence happens, it is no longer a risk -- then it's actual.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by ivanhoe on Thursday March 21, 2019 @01:04PM (#19454659)
Because storing plain-text passwords in DB is a sign of pure incompetence, while accidentally logging a password is a huge screw up, but unintentional one - and frankly a type of mistake that is not unimaginable to happen to any of us. You need to log a full requests to urgently debug some issue, and in all this mess you forget to remove the logger afterwards... and boom, you've got yourself a log full of passwords, credit cards, and all other kinds of secrets. In real world it's just like that, humans make errors, that's why your logs should always be heavily protected and regularly audited.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by edoceo on Thursday March 21, 2019 @12:24PM (#19454145)
I had this kind of issue, a sloppy logging tool, when I had <100 customers. It was fixed before we got to 200.

Early FB (c2005) could get the excuse, new team, just getting started. But, no excuse after the first round of funding

Re:Facebook Stored Hundreds of Millions of User Passwords in... by savanaly on Thursday March 21, 2019 @11:45AM (#19453681)
We scoff at companies that intentionally store the passwords in plain text, then compare that stored value with the credentials provided to authenticate a session. This is a common mistake for novice engineers. We are dismayed by but I wouldn't quite say scoff at accidental logging of secure data, which is a much more common accident and perpetrated by otherwise educated and advanced engineers every day.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by dimgl on Thursday March 21, 2019 @01:01PM (#19454603)
Yeah I agree this is pretty much inexcusable. I'm not sure why the pass.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by ikeyany on Thursday March 21, 2019 @09:23PM (#19458918)
Facebook didn't mean to log failed sign-in information. It just kind of happened.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by oldmanbythesea3 on Thursday March 21, 2019 @11:47AM (#19453712)
People scoff at companies that store passwords in plain text on purpose. Inadvertently logging them is not the same thing. And Facebook’s scale is why it’s understandable how it could happen.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by code_duck on Thursday March 21, 2019 @01:02PM (#19454622)
Someone had to write the code and then use the logs. Individuals, like any company. Then the article says it was actually searchable and used for something by employees. Why does the entire company’s scale make this excusable?
Re:Facebook Stored Hundreds of Millions of User Passwords in... by lacey on Thursday March 21, 2019 @12:13PM (#19454008)
I don’t think “pretty much”, it’s just inexcusable.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by jonnycomputer on Thursday March 21, 2019 @12:33PM (#19454259)
the_duke is not "the community"

so when you say, "the community usually scoffs at entities which store passwords in plaint text. Why do you give Facebook a pass" is a fallacy of composition.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by EGreg on Thursday March 21, 2019 @02:08PM (#19455448)
I don’t get it!!!

Facebook is supposed to be hiring the best developers. It has tons of money. This is the most basic security consideration - hashing passwords on the client at least. At LEAST.

I am constantly surprised by how basic practices were ignored by these corporations that got so big, while the small guys implement them. I guess people really were "dumb fucks" to trust Zuckerberg with their passwords.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by polote on Thursday March 21, 2019 @11:44AM (#19453677)
so yeah, dev have access to the password of your account, but really they dont need it, they probably have access to the hash in the database and login anyway. So really NO harm have been done
Re:Facebook Stored Hundreds of Millions of User Passwords in... by EnFinlay on Thursday March 21, 2019 @11:50AM (#19453766)
Having (read) access to the hash shouldn't give any access to the account.

Edit: You've made this comment twice in these threads. It's wrong.

Re:Facebook Stored Hundreds of Millions of User Passwords in... by polote on Thursday March 21, 2019 @02:22PM (#19455610)
Yeah I was wrong, it is only true if the dev has access to the prod database
Re:Facebook Stored Hundreds of Millions of User Passwords in... by p_rude on Thursday March 21, 2019 @11:48AM (#19453729)
It is neither a standard practice nor a best practice to give your devs access to your production auth databases.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by icedchai on Thursday March 21, 2019 @11:59AM (#19453869)
Perhaps not in more mature organizations, but it's standard practice at every startup I've ever worked for. One place had the dev office VPN'd into production at all times.
Re:Facebook Stored Hundreds of Millions of User Passwords in... by glenneroo on Thursday March 21, 2019 @12:38PM (#19454322)
Did any of those startups have 200-600 million users?
Re:Facebook Stored Hundreds of Millions of User Passwords in... by icedchai on Thursday March 21, 2019 @01:41PM (#19455114)
No, these were small organizations. I'm just saying it's not uncommon. Sadly, some places don't even have a dev environment...