News for hackers. Stuff that matters.
Re:A look inside Facebook's source code by anw on Tuesday December 16, 2014 @10:39PM (#8760966)
Interesting.

It's also interesting that Facebook developers are using Pastebin for things such as this. I would assume that they'd have an internal wiki, or gist-like app.

It's also noteworthy to see how they set up their accounts: first initial, full lastname—same standard as many other companies. But seeing it laid out can help in the guessing of other names (or common name occurances, as you don't even need a full first name).

While some leaks may not even be effective outside Facebook's internal network (things such as database credentials, network shares… hopefully), having actual code that may be in production does pose a risk. The possiblity to see where, for instance, data isn't fully sanitized, or where information being fetched might not require proper authentication[1] is more worrying. Facebook is known for promoting "move fast and break things". Hopefully they have good QA and SDET teams to catch these things.

[2] One code snippet features the following: > // TODO: add privacy checks!

Re:A look inside Facebook's source code by underwater on Wednesday December 17, 2014 @02:18AM (#8761417)
We have an internal pastebin, it's built into Phabricator.

There is no preset format for unixnames. Most people use their names but I've seen many pseudonyms. One intern famously broke some internal tools by requesting her initials, which were "www".

Re:A look inside Facebook's source code by dsl on Wednesday December 17, 2014 @04:59AM (#8761749)
I broke more than my fair share of systems by using "Roger Oot" as my goto pseudonym.
Re:A look inside Facebook's source code by desdiv on Wednesday December 17, 2014 @09:28AM (#8762360)
Sorry, I don't get it. Could you please explain it?
Re:A look inside Facebook's source code by kacperp on Wednesday December 17, 2014 @09:34AM (#8762376)
It's "root" when you use the first letter of the first name + last name.
Re:A look inside Facebook's source code by pm90 on Wednesday December 17, 2014 @12:06PM (#8763059)
that's very clever! I'm curios how that works though: does the system suddenly give you superuser privileges?
Re:A look inside Facebook's source code by desdiv on Wednesday December 17, 2014 @12:06PM (#8763055)
D'oh. How did I miss that. Thank you.
Re:A look inside Facebook's source code by jsprogrammer on Thursday December 18, 2014 @04:43AM (#8766643)
Unwittingly using Magic Character Sequences counts as breaking internal tools?

More like exposed implementation and/or design flaws in internal tools.

Re:A look inside Facebook's source code by AdamGibbins on Tuesday December 16, 2014 @11:16PM (#8761054)
Facebook do have an internal pastebin, its part of their Phabricator suite, called Paste - http://phabricator.org/applications/
Re:A look inside Facebook's source code by lstamour on Tuesday December 16, 2014 @11:11PM (#8761043)
Speaking of the TODO, I particularly liked how the diff suggests removing it ;-) That said, it did appear to be some kind of "enterprise" version maybe?
Re:A look inside Facebook's source code by spicyj on Wednesday December 17, 2014 @12:51AM (#8761246)
The diff suggests removing the TODO because it adds the privacy checks. See the added canSeeFriends call.
Re:A look inside Facebook's source code by rjayatilleka on Tuesday December 16, 2014 @10:51PM (#8760993)
I'm not surprised they don't have a gist/pastebin like app. When I interned at Amazon this summer, they were just developing one, and it was still pretty alpha (persistence was buggy and lost me an entire design review of notes). Facebook is younger, so it seems fair that they don't have one.
Re:A look inside Facebook's source code by TTPrograms on Tuesday December 16, 2014 @11:02PM (#8761021)
Facebook has been around for a decade at this point. Youth isn't much of an excuse.
Re:A look inside Facebook's source code by prab97 on Wednesday December 17, 2014 @12:08AM (#8761155)
That's wrong. I have been here since June 2012 and we have internal paste.
Re:A look inside Facebook's source code by serge2k on Wednesday December 17, 2014 @04:59AM (#8761745)
amazon's internal tool works fine.