LoginDeniedTD

Free Image Hosting Script Arbitrary File Upload Vulnerabilit

Mar 16th, 2012
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. ============================================
  2. Free Image Hosting Script Remote File Upload Vulnerability
  3. ============================================
  4. # Exploit Title: Free Image Hosting Script [ALL VERSIONS] Remote File
  5. Upload Vulnerability
  6. # Date: 26/12/11
  7. # Author: ySecurity
  8. # Vendor or Software Link: http://www.photohostingscript.com
  9. # Price: $29.99
  10. # Version: All versions effected
  11. # Category:: Remote File Upload
  12. # Google dork: inurl:"show-image.php?id="
  13. # Tested on: Windows 7
  14. # Vendor HAS been notified.
  15. ########################################################################################
  16. NOTE: You will ONLY be able to find your shell if the "/pictures"
  17. directory and if the directory is not forbidden.
  18. This exploit allows hackers to upload a PHP backdoor into "/pictures/"
  19. directory via the use of Live HTTP Headers (Firefox Addon)
  20. [Vulnerability]
  21. Tools Needed: Live HTTP Headers, Backdoor Shell
  22. Step 1: Locate upload form on index page.
  23. Step 2: Rename your shell to shell.php.jpg and start capturing data with
  24. Live HTTP Headers
  25. Step 3: Enter tags for the image (can be anything)
  26. Step 4: Replay data with Live HTTP Headers -
  27. Step 5: Change [Content-Disposition: form-data; name="image1";
  28. filename="shell.php.jpg"\r\n] to [Content-Disposition: form-data;
  29. name="image1"; filename="shell.php"\r\n]
  30. Step 6: Locate pictures directory:
  31. www.site.tld/imagehostingscript/pictures/ (usually)
  32. Step 7: Find PHP file (random digits.php) = should look like
  33. (321879194bc8ff2843bf7b63a666f665.php)
  34. Step 8: Navigate to backdoor =
  35. www.site.tld/imagehostingscript/pictures/321879194bc8ff2843bf7b63a666f665.php
  36. ########################################################################################
  37. Greets to: Team Intra
  38. Submitted ethically, after disclosure.
Add Comment
Please, Sign In to add comment