News for hackers. Stuff that matters.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by wnevets on Wednesday April 24, 2019 @04:54PM (#19742504)
> 3) Storing said passwords and others in plaintext. [2]

in logs.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by munk-a on Wednesday April 24, 2019 @04:57PM (#19742526)
If you're a small business - I get it, it's good to whitelist whatever information you're logging explicitly, but for smaller teams a hard to diagnose issue might lead the team to "log everything so we can sort it out later". Facebook is Facebook, whether this decision was the product of the corporation as a whole, a small dev team, or a highly paid consultant/third party, Facebook is a big enough company that they don't have the "I didn't realize..." excuse anymore.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by beat on Wednesday April 24, 2019 @05:16PM (#19742666)
I've worked for multiple Fortune 25 companies, and that excuse does not fly. Not in banking or healthcare, where breaches of privacy/confidentiality are actually illegal, rather than merely distasteful. Small teams and careless devs doing that sort of bad logging will be caught and corrected by strict security oversight.

This is the sort of thing that leads the HN crowd to sneer at the old, slow ways of the enterprise world.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by Aunche on Wednesday April 24, 2019 @05:53PM (#19742954)
The passwords in plaintext wasn't a breach or a leak. If you punish Facebook for it, they would be less inclined to share such information in the future.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by munk-a on Wednesday April 24, 2019 @06:48PM (#19743304)
If we can't trust a company to audit themselves fairly (in fact, we can't generally) then they should bear the burden of paying for an external audit of their processes, many "boring" industries have these sorts of requirements.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by tkxxx7 on Wednesday April 24, 2019 @05:56PM (#19742981)
That's how you handle children, though. No one is going to ignore wrongdoings in hopes the perp will continue to play nicely.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by jyrkesh on Wednesday April 24, 2019 @07:09PM (#19743427)
There might not have been a large-scale public data dump of passwords, but if 20,000[1] employees had access to logs with plaintext passwords, there is no guarantee I could ever accept that zero of them read or used customer passwords for personal purposes.

What's to stop a malicious ex-lover from grabbing a FB password and reading that person's private messages? If FB didn't even know there were passwords in plaintext, they very likely weren't auditing log access as much as was needed.

[1] https://www.theverge.com/2019/3/21/18275837/facebook-plain-t...

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by UncleMeat on Wednesday April 24, 2019 @07:46PM (#19743645)
Malicious insiders don't need your password to access your data. If you are concerned about malicious insiders then plaintext password logs don't matter.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by beat on Thursday April 25, 2019 @08:59AM (#19747586)
I'm more concerned with plaintext passwords because most people use the same passwords over and over, so if you can break one system, you can break others.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by _jal on Thursday April 25, 2019 @01:06AM (#19745157)
With FB's dataset and employee count, it would be insane not to be concerned with malicious insiders. Even if you completely discount morality and honesty where Facebook is concerned (and I do), there's substantial liability risk, PR risk, regulatory risk and commercial paranoia, which I suspect was likely their biggest concern, at least until recently.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by tempestn on Wednesday April 24, 2019 @06:37PM (#19743243)
There's a dead sibling to my comment mentioning that your congruence.io website has an expired SSL certificate, fyi.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by stubish on Thursday April 25, 2019 @02:11AM (#19745488)
There is no oversight in a Devops world. New systems come up in protoduction, celebrations are had, and the data protection officers and security compliance officers remain in blissful ignorance.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by wavefunction on Wednesday April 24, 2019 @06:35PM (#19743236)
I'm on a small team (5 engineers) that is GDPR compliant so no PII is logged. It's not hard if you care.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by UncleMeat on Wednesday April 24, 2019 @07:17PM (#19743466)
Its a lot easier on a small team. Security isn't a stable state.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by wavefunction on Wednesday April 24, 2019 @11:46PM (#19744795)
I'm replying to the parent who made the opposite assertion

I can't f'in believe I have to explicate such simple things to supposedly intelligent and thoughtful people

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by fuzz4lyfe on Wednesday April 24, 2019 @05:13PM (#19742637)
Seems like a pretty trivial automated test for so many PHD's to miss:

  create_user('Bob', 'BobPassword123')
  assert "BobPassword123" not in logfile
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by munk-a on Wednesday April 24, 2019 @05:15PM (#19742656)
Hrm, so you checked the apache access logs, or maybe an error log, what about the system logs? Does the login request spin up a bash script and pass the password to it?

I don't think it's trivial to guarantee non-existence.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by jlarocco on Wednesday April 24, 2019 @05:32PM (#19742792)
> I don't think it's trivial to guarantee non-existence.

I disagree in this case. Log messages don't spontaneously appear in arbitrary places. If the developers understand what their software is doing and how their systems are configured then they should know where to check for the logging messages.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by noselasd on Wednesday April 24, 2019 @05:50PM (#19742935)
Until someone turned on logging of the full request body on the load balancer/proxy or otherwise unknown-to-you middlebox that was the TLS termination point in production that you did not know about
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by jlarocco on Thursday April 25, 2019 @02:49PM (#19751315)
And? That doesn't change anything I said. The new logging config isn't magic, either, and the new set of log files can be scanned, too.

With billions of dollars and some the best software developers in the world (supposedly), Facebook should be able to figure this out.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by fuzz4lyfe on Wednesday April 24, 2019 @06:00PM (#19743016)
So their incompetence lies in lacking configuration management in production as opposed to a lack of testing? Why are they manually configuring production servers anyway at that scale?
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by munk-a on Wednesday April 24, 2019 @06:31PM (#19743209)
They are managing a lot of things, they have full responsibility to be aware of these things as a company but I'd guess that with the scale of ops Facebook has regular developers never interact with the team that's managing their attempt at high availability by scattering servers across different hosts, data centers, legal jurisdictions etc. in fact I'd imagine at a op the size of Facebook that sort of problem has a dedicated department.

That said, someone should have been watching for this stuff and failed to do so (or to exist), so I'm not excusing them - but this is not a trivial thing to protect against.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by stickfigure on Wednesday April 24, 2019 @06:49PM (#19743313)
You speak with the hubris of a man that's never been in the arena.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by fuzz4lyfe on Wednesday April 24, 2019 @07:08PM (#19743412)
Facebook hires some of the top software developers and engineers on the planet, if not leaking plaintext passwords is too high of an expectation for them then nothing that isn't public knowledge should ever be put into any computer system. As a profession we should demand our peers do better than this.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by munk-a on Wednesday April 24, 2019 @07:13PM (#19743446)
We're all people of varying skills, I would never assume an innate high bar for any activity a human does - only by requiring the bar be maintained at a level and regularly checking and enforcing that requirement can we be reasonably sure it is - and this isn't just `echo $password` the way these passwords got into the log file is (from what I've been able to discern) pretty obscure and round about - Facebook is absolutely responsible and needs to be held to account, but the mistake is understandable.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by icedchai on Wednesday April 24, 2019 @07:52PM (#19743681)
It's not really that simple. Sometimes you need to enable request logging in production... maybe for performance analysis, maybe for debugging.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by chopin on Thursday April 25, 2019 @08:41AM (#19747421)
And you make sure that you can purge the logs afterwards.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by heavenlyblue on Wednesday April 24, 2019 @05:36PM (#19742828)
Run the deployment in docker, check every file changed in the container for it’s contents.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by wavefunction on Wednesday April 24, 2019 @11:47PM (#19744798)
yeah well we're not running apache >wut is this post?
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by nkozyra on Wednesday April 24, 2019 @05:23PM (#19742727)
Ah yes, the single, non-distributed, file-backed log Facebook uses.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by fuzz4lyfe on Wednesday April 24, 2019 @05:59PM (#19743002)
You have no problem with the create_user function? Obviously it's pseudocode my point is there are a finite number of log locations and checking for an instance of a known string among them isn't difficult.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by UncleMeat on Wednesday April 24, 2019 @07:47PM (#19743656)
There are a finite number of log locations now. How do you intend to operate an integration test across the entirety of Facebook's stack to detect new log locations?
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by fuzz4lyfe on Wednesday April 24, 2019 @08:08PM (#19743770)
Change requests and a change review board staffed by professionals.

Subject: Change Request

Body: I would like to log the body of authentication requests in production.

Subject Re: Change Request

Body: How will you ensure personal data is not stored that shouldn't be?

Subject: Re: Re: Change Request

Body: I will add configuration Y to logging system X.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by UncleMeat on Tuesday April 30, 2019 @06:55PM (#19792829)
Change1: Enable logging of middleware traffic on 0.01% of requests for better profiling.

Reviewer: Does this have privacy implications?

Change1: No, Service X marks all PII before this point. Code X drops everything marked in this way.

Two years later.

Change N: Modify request structure for more optimal blah blah blah.

Now suddenly the changed request structure causes a regression in the PII detection which causes some logging of PII.

This shit is way more complex than "just stop people when they ask to log passwords".

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by hw on Thursday April 25, 2019 @01:22AM (#19745258)
Bureaucracy like this is what kills teams and products. There's no guarantee it works, and every change or commit should already have privacy and data protection in mind anyway. You also don't know what you don't know - you could for all your knowledge think that nothing is being logged, when in fact there's a subsystem outside your scope that's actually doing the logging.

You assert that it's trivial, yet you're adding more layers to protect against something like that from happening. It's the naivety that all problems are trivial is what gets people and companies into trouble in the first place

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by fuzz4lyfe on Friday April 26, 2019 @02:57PM (#19760745)
I promise you the productivity loss of sending a few emails is much less than 5 billion dollars.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by nkozyra on Thursday April 25, 2019 @08:45AM (#19747449)
The point is aptly demonstrated within this thread; sometimes things that look trivial at a glance aren't so trivial in reality.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by icedchai on Wednesday April 24, 2019 @07:54PM (#19743694)
You assume that all logging happens within an application. It doesn't.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by gnulinux on Wednesday April 24, 2019 @05:30PM (#19742773)
What if it logs "BobPassw[...]"? Is that more acceptable?

What if there is a bug and some other function logs "[...]word123"?

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by kortilla on Wednesday April 24, 2019 @05:20PM (#19742690)
Seems like a useless test considering how many actual production systems don’t log to local disk.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by skybrian on Wednesday April 24, 2019 @05:47PM (#19742913)
If it turns out to be that simple to write a test, it probably didn't happen by accident. Many systems are more difficult to write tests for.

Of course we (and they) should do it anyway, but it does often take an investment in making things testable.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by taurath on Wednesday April 24, 2019 @05:10PM (#19742617)
Which is the NUMBER ONE MOST BASIC rule of handling users confidential data. It reflects incredibly poorly on the engineering practices of Facebook that this managed to get through. It should be a criminal liability.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by wnevets on Wednesday April 24, 2019 @05:38PM (#19742840)
I'm not arguing this wasn't a bad thing but comment made it sound like they were storing plaintext passwords in the database circa 2002.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by taurath on Wednesday April 24, 2019 @05:41PM (#19742864)
Storing them in logs is the same thing IMO. Logs are usually more easily accessible than a user database.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by wnevets on Wednesday April 24, 2019 @05:44PM (#19742896)
Gonna have to disagree.

I think it would be way worse if we found out they were storing passwords were plaintext in the database in 2019. Even if the security implications are the same/worse, the policy/decision making of such a revelation would be beyond terrible.

edit: To put it another way, remote code execution flaws are terrible but they can happen. However it would be way worse if someone put in a static username/password backdoor. The security outcome may be the same but one is beyond terrible policy/decision making.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by taurath on Wednesday April 24, 2019 @06:08PM (#19743063)
As is the policy/decision making that results in logs having the passwords - you can still have very locked down database access. Logs tend to get spread around all sorts of systems, and access control for logs is almost ALWAYS lower than DB keys. They're also cached for search-ability on any number of elasticsearch or business intelligence platforms, so getting rid of them after the fact is even harder. At the very least its an equivalent problem.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by greenleafjacob on Wednesday April 24, 2019 @07:18PM (#19743474)
Logs tend to be ephemeral with limited retention.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by TallGuyShort on Wednesday April 24, 2019 @05:23PM (#19742724)
That's still a pretty elementary error for a company that gets off on using CS-y riddles in interviews like Google used to. Move fast and break things, and then get a $5B fine.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by organsnyder on Wednesday April 24, 2019 @05:03PM (#19742571)
Great—so potentially subject to even less security/privacy controls compared to other places they could've stored it.
Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by golergka on Thursday April 25, 2019 @03:59AM (#19745984)
The first thing I did after setting up Jenkins for our small dev shop was to find and install and test a plugin that removes all kinds of credentials from the logs. And I'm just a developer, and I never claimed nor think that I have any devops or administration qualifications - just common sense.

If Facebook devops engineers, who are probably among the best trained and highest paid on the planet, lack the same common sense for their users passwords... I can't even come up with an ending to this sentence that would properly express my emotions right now.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by chopin on Thursday April 25, 2019 @03:16AM (#19745752)
So, it's not in plaintext if it is in logs? Storing passwords in logs is even worse than on a database since access more likely is less restrictive. Every programmer worth its salt knows about this problem (I surely wrote code to prevent this).

Sorry, but it is like saying "there is no SQL injection, only bad input validation".

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by OrgNet on Wednesday April 24, 2019 @05:50PM (#19742941)
> in logs.

... for seven years.

Re:Facebook Expects to Be Fined Up to $5B by FTC Over Privac... by whateveracct on Wednesday April 24, 2019 @05:23PM (#19742722)
even worse