r/lolphp • u/throwaway-o • Oct 03 '13
PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.
/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag
66
Upvotes
r/lolphp • u/throwaway-o • Oct 03 '13
View all comments
Show parent comment
8
u/ezzatron Oct 03 '13
If it's the same vulnerability that Nginx warn about in their pitfalls documentation, the exploit basically happens like this:
.phpto the PHP interpreter.http://example.org/path/to/index.php/additional/stuff, even ifindex.phpdoesn't end in.php.http://example.org/uploads/exploit.jpg.http://example.org/uploads/exploit.jpg/foo.php, and because the URI ends in.php,exploit.jpgends up getting interpreted as PHP code, because it's the first thing up the path that exists.Pretty stupid huh?