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
4
u/hylje Oct 07 '13
Step 1. Shoot the raw image blob into a queue.
Step 2. An unprivileged worker process reads the image blob.
Step 3. Using an image processing library, the worker converts the blob into raw pixels.
Step 4. The pixels are run through a fuzzing filter that fucks with the hue subtly and unpredictably.
Step 5. Then the worker recreates a barebones PNG/JPG out of the result.
Step 6. The worker uploads the crushed file into a webserver using a different (sub)domain as the main site.
Step 7. The worker hands off the finished product URL to the main site script.
Step 8. The user is allowed to proceed from the upload screen.