CVE-2022-3128
Medium · 4.8CVSS
4.8
EPSS
0.7%
Published
Oct 3, 2022
CISA due date
—
Cloudanix analysis
A bug in a WordPress donation display plugin lets site administrators add code that runs for everyone who visits the site, potentially exposing visitors to harm.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Application
- Class
- XSS
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The plugin fails to sanitize and escape stored settings, enabling persistent injection of script content that executes in browsers of site visitors even when the unfiltered_html capability is disabled.
Why it matters to the business
Administrators can unintentionally or maliciously embed executable code that affects all site visitors, increasing risk of session theft, defacement, or redirection on donation-themed sites using this plugin; the large number of WordPress sites amplifies potential reach.
How an attack unfolds
An attacker with administrator access crafts malicious HTML or JavaScript into plugin settings fields; the payload is saved without sanitization and later rendered for any user viewing the affected page, executing in their browser context.
How to fix it
Update the Donation Thermometer plugin to version 2.1.3 or later; restrict administrative access and review all existing plugin settings for unexpected content after upgrade.
How to confirm the fix worked
Confirm the installed plugin version is at least 2.1.3 via the WordPress admin dashboard or plugin file headers; inspect rendered pages and database option tables for absence of previously injected script markers.
Typical attack path
- Obtain or compromise a WordPress administrator account on a site using the vulnerable plugin
- Navigate to the plugin settings page and insert script payloads into unsanitized fields
- Save the settings so the payload persists in the database
- Wait for or lure visitors to view pages that render the stored settings
- Browser executes the script in the visitor context, enabling theft or redirection
How to detect it
Review web server access logs and WordPress audit logs for unexpected changes to plugin options by admin users; inspect rendered HTML for inline scripts originating from plugin settings; check database options for suspicious script tags added around the publication date.
What your security team should do
- Immediately upgrade all instances of the plugin to 2.1.3 or newer
- Audit administrator accounts and limit plugin configuration privileges
- Scan site pages for unexpected script execution after remediation
The record
The Donation Thermometer WordPress plugin before 2.1.3 does not sanitise and escape some of its settings, which could allow high privilege users such as admin to perform Stored Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed (for example in multisite setup)
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | wordpress | 0 | No fix |
| Ubuntu:18.04:LTS | wordpress | 0 | No fix |
| Ubuntu:20.04:LTS | wordpress | 0 | No fix |
| Ubuntu:22.04:LTS | wordpress | 0 | No fix |
| Ubuntu:24.04:LTS | wordpress | 0 | No fix |
| Ubuntu:24.10 | wordpress | 0 | No fix |
| Ubuntu:25.04 | wordpress | 0 | No fix |
| Ubuntu:25.10 | wordpress | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | wordpress | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | wordpress | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | wordpress | 0 | No fix |
Related vulnerabilities
- CVE-2022-4973 WordPress Core, in versions up to 6.0.2, is vulnerable to Authenticated Stored Cross-Site… Also affects wordpress
- CVE-2024-32111 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… Also affects wordpress
- CVE-2024-31111 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site… Also affects wordpress
- CVE-2024-6307 WordPress Core is vulnerable to Stored Cross-Site Scripting via the HTML API in various… Also affects wordpress
- CVE-2024-4439 WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the… Also affects wordpress
- CVE-2023-5692 WordPress Core is vulnerable to Sensitive Information Exposure in versions up to, and… Also affects wordpress
- CVE-2024-31211 WordPress is an open publishing platform for the Web. Also affects wordpress
- CVE-2024-31210 WordPress is an open publishing platform for the Web. Also affects wordpress