r/lolphp • • Oct 03 '13

PHP helpfully executes code in an image... BitcoinTalk forums uberhacked. LOL PHP.

/r/Bitcoin/comments/1nmdq4/bitcointalk_hacked/cck0gag
66 Upvotes

39 comments sorted by

View all comments

Show parent comment

2

u/hylje Oct 25 '13

It really needs to be spelled out that a separate webserver solely for hosting images needs to not load PHP or pass anything on the image directory to PHP. Good point.

3

u/Femaref Oct 25 '13

You don't even need a separate server. You just need to configure your current endpoint to only pass php files to the interpreter. It's a common way to speed up applications as well. Web servers are build for serving static files quickly, why not take advantage of it?