GD Rating System <= 3.7.1 - Unauthenticated Stored Cross-Site Scripting via 'title' and 'url' Render Args in gdrts_live_handler AJAX
What fixes it
No source in this snapshot names a fixed version.
Description
The GD Rating System plugin for WordPress is vulnerable to Stored Cross-Site Scripting via 'title' and 'url' Render Args in gdrts_live_handler AJAX in all versions up to, and including, 3.7.1 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. Although the AJAX action requires a per-item nonce, that nonce is publicly emitted in the page's <script class="gdrts-rating-data"> JSON block on every page rendering the rating item, making it obtainable by any unauthenticated visitor and therefore not an authentication barrier.
Text from CVE List
Affected versions 1
- GD Rating Systemaffected: all versions through 3.7.1CVE List
References 6
- wordfence.com/threat-intel/vulnerabilities/id/5f06140d-c28f-4dfb-be61-cc8f59884766?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/gd-rating-system/tags/3.7.1/templates/stars-rating/gdrts--stars-rating--list--default-table.php#L44Referencevia CVE List
- plugins.trac.wordpress.org/browser/gd-rating-system/tags/3.7.1/rating/core.ajax.php#L184Referencevia CVE List
- plugins.trac.wordpress.org/browser/gd-rating-system/tags/3.7.1/rating/engine.single.php#L140Referencevia CVE List
- plugins.trac.wordpress.org/browser/gd-rating-system/tags/3.7.1/rating/core.item.php#L383Referencevia CVE List
- plugins.trac.wordpress.org/changeset?reponame=&old=3723329%40gd-rating-system&new=3723329%40gd-rating-systemReferencevia CVE List