News for hackers. Stuff that matters.
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.