Re:How github was hacked
by yaix on Monday March 05, 2012 @03:06AM
(#3665871)
Not really laughing. I don't really call myself a programmer, but I am always amazed at these kind of simple-but-dangerous mistakes. Accepting a user_id as a lookup value for a DB update? What for! Take the session_id and look up the user_id from the session table! If required, check if the authenticated user has admin level or "change any user account" rights and only then accept a user_id as a POSTed input.
[ Parent
| on HN ]
There are no comments on this comment yet.