GiveWP <= 4.17.0 - Authenticated (Contributor+) Stored Cross-Site Scripting via givewp_campaign_grid Shortcode Attributes
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: partial
Summary
The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the plugin's `givewp_campaign_grid` shortcode in versions up to, and including, 4.17.0 This is due to insufficient input sanitization and output escaping on user supplied shortcode attributes (`filter_by`, `layout`, `sort_by`, `order_by`) in the CampaignGridShortcode::parseAttributes() function combined with the render template emitting `json_encode($attributes)` inside a single-quoted HTML attribute without esc_attr() — json_encode() does not escape single quotes by default, so a `'` in an attribute value breaks out of the enclosing attribute. 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.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: partial
- Record last updated
Affected versions
- stellarwp GiveWP – Donation Plugin and Fundraising Platform
through 4.17.0
References 7
plugins.trac.wordpress.org
- browser/give/tags/4.17.0/src/Campaigns/Blocks/CampaignGrid/render.php#L6
- browser/give/tags/4.17.0/src/Campaigns/Shortcodes/CampaignGridShortcode.php#L91
- browser/give/tags/4.17.0/src/Campaigns/Shortcodes/CampaignGridShortcode.php#L22
- browser/give/tags/4.17.0/src/Campaigns/Shortcodes/ShortcodeRenderController.php#L65
- browser/give/tags/4.17.0/src/Campaigns/Actions/RegisterCampaignShortcodes.php#L28