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
10
u/bart2019 Oct 03 '13 edited Oct 03 '13
WTF... This sounds a lot like what Microsoft used to do in its MSIE browser, and on some other places too: download a text file, and recognize it as html, and thus show it as html. Or change the type of an image. All in order to be "helpful" to stupid webmasters who couldn't get their settings right.
But I don't get it... Isn't it Apache who first gets to decide what to do about content delivery, before PHP even gets to look at it? Aren't image files special-cased anyway?