Description
The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'give_form' shortcode in all versions up to, and including, 4.14.4. This is due to insufficient input sanitization and output escaping on the continue_button_title and display_style shortcode attributes, which are passed through sanitize_text_field() but not properly escaped when output in HTML data attributes. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
stellarwp GiveWP – Donation Plugin and Fundraising Platform
Default version status: unaffected
0 to ≤ 4.14.4affected
References
- https://www.wordfence.com/threat-intel/vulnerabilities/id/dd26a390-0de5-4699-a790-cac86bf4a057?source=cve ↗
- https://plugins.trac.wordpress.org/browser/give/trunk/src/DonationForms/Blocks/DonationFormBlock/Controllers/BlockRenderController.php#L57 ↗
- https://plugins.trac.wordpress.org/browser/give/tags/4.14.2/src/DonationForms/Blocks/DonationFormBlock/Controllers/BlockRenderController.php#L57 ↗
- https://plugins.trac.wordpress.org/browser/give/trunk/includes/shortcodes.php#L149 ↗
- https://plugins.trac.wordpress.org/browser/give/tags/4.14.2/includes/shortcodes.php#L149 ↗
- https://plugins.trac.wordpress.org/browser/give/trunk/src/DonationForms/Shortcodes/GiveFormShortcode.php#L32 ↗
- https://plugins.trac.wordpress.org/browser/give/tags/4.14.2/src/DonationForms/Shortcodes/GiveFormShortcode.php#L32 ↗
- https://plugins.trac.wordpress.org/changeset/3501918/ ↗