5 ms·
This bug shows us, how bad their software really is and that all the PHP crap on their frontend can access every data from every users. If they have had a "midd
by nilsjuenemann 13y ago
This bug shows us, how bad their software really is and that all the PHP crap on their frontend can access every data from every users. If they have had a "middleware" between frontend and database, such kind of bugs weren't possible.
Anyone remember the bug as everyone had access to private photos of Marc Zuckerberg?
http://www.telegraph.co.uk/technology/facebook/8938725/Facebook-privacy-flaw-exposes-Mark-Zuckerberg-photos.html http://www.telegraph.co.uk/technology/facebook/8938725/Faceb...
Same auth-bypass shit.
- bliker 13y agoBlaming technology is the worst. From the nature of the bug I think it was just some if missing somewhere.
- tene 13y agoI'm sorry, but did you even read the article? The exploit is explicitly stated, it's trusting unauthenticated client state. That's a fundamental design flaw in the intended behaviour, not an accidental coding error. They gave the profile ID to reset to the client when serving the page, and then blindly used whatever profile ID the client sent when submitting the form. The fix was to fetch the profile ID for the authenticated user instead of sending a profile ID on a round-trip through the client. I certainly agree that the problem wasn't the technology here, but I disagree with your conclusion. "some if missing somewhere" is far easier to avoid technologically than a high-level design flaw like this. It's fairly easy for a type system to notice that not all cases in a conditional are accounted for, but it's much harder for a type system to understand that it's inappropriate to use client-submitted data as a profile ID for a password reset request (as opposed to operations like submitting a friend request, where it's perfectly valid).
- ihsw 13y agoPlease don't get confused, there are foolish people utilizing every programming language all the time. PHP may be disproportionately more popular than other programming languages but it hardly deserves the blame.
- thejosh 13y agowhat should they use instead?
- dubcanada 13y agoOh my goodness a anti PHP comment in a Facebook thread. Who would have guessed? Facebook has some of the best engineers in the world. They also have their own modified version of PHP. And really it doesn't what they use, they could use Lua and still have this issue. Don't think just because ebay used C++ or cgi or what ever they used doesn't mean ebay didn't ever have issues. Same goes for every other site/language out there. The PHP hate is getting a little old.