It seems that it's too terrible to be the true code. "if($_COOKIE['4chan_auser']", "extract($_POST); extract($_GET); extract($_COOKIE);"
this makes it even more likely that it's the real code. Let's face it, no one is expecting a shining example of software design and architectural brilliance here
4chan source code leaked (2010)
21–30 of 114 posts
Re: 4chan source code leaked (2010)
#22if(isset($_COOKIE['4chan_auser'])&&isset($_COOKIE['4chan_apass'])){ $user = mysql_real_escape_string($_COOKIE['4chan_auser']); $pass = mysql_real_escape_string($_COOKIE['4chan_apass']); } HAHAHAHAAHAHAHAHAA Steal a cookie, gain access.. WTF
Does it mean that the password is stored in the cookie or I am missing something ?
Re: 4chan source code leaked (2010)
#23Re: 4chan source code leaked (2010)
#24if(isset($_COOKIE['4chan_auser'])&&isset($_COOKIE['4chan_apass'])){ $user = mysql_real_escape_string($_COOKIE['4chan_auser']); $pass = mysql_real_escape_string($_COOKIE['4chan_apass']); } HAHAHAHAAHAHAHAHAA Steal a cookie, gain access.. WTF
Aren't you able to hijack sessions on most webpages if you stole session cookies?
For more information on extract: http://www.php.net/extract
Re: 4chan source code leaked (2010)
#25Earlier quoted context omitted.
> It seems that it's too terrible to be the true code. 1. It's written in PHP. Finding a good PHP developer is nigh impossible (there are exceptions, like always). 2. I expected worse, to be honest.
No serious, modern PHP developer writes code like this. If it were a code sample for any respectable PHP job, it would be a massive "do not hire" flag.
Re: 4chan source code leaked (2010)
#26It seems that it's too terrible to be the true code. "if($_COOKIE['4chan_auser']", "extract($_POST); extract($_GET); extract($_COOKIE);"
extract is one of those moronic things though that only exists to create security holes and other bugs.
Re: 4chan source code leaked (2010)
#27http://9ch.in/overscript/ http://9ch.in/overscript/files/yotsuba.txt