CVE-2022-0661: WordPress Ad Injection - Stored XSS & Remote Code Execution
- Cve: CVE-2022-0661
- Name: WordPress Ad Injection - Stored XSS & Remote Code Execution
- Description: The Ad Injection WordPress plugin through 1.2.0.19 does not properly sanitize the body of the adverts injected into the pages, allowing a high privileged user (Admin+) to inject arbitrary HTML or javascript even with unfiltered_html disallowed, leading to a stored cross-site scripting (XSS) vulnerability. Further it is also possible to inject PHP code, leading to a Remote Code execution (RCE) vulnerability, even if the DISALLOW_FILE_EDIT and DISALLOW_FILE_MOD constants are both set.
- Impact: Attackers can execute arbitrary scripts or code, potentially compromising site integrity and gaining full control.
- Remediation: Update to version 1.2.0.20 or later, and ensure proper sanitization of advert content.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec, remote_code_execution
- Requirement type: admin_privileges
- Requirements: Attacker needs admin privileges
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.40237
- Epss percentile: 0.98672
- Assignee: [email protected]
- Published at: 2022-04-18T18:15:08Z
- Age in days: 1681
- Modified at: 2026-06-17T04:21:01Z
- Public exploits total: 1
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-0661
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://wpscan.com/vulnerability/3c5a7b03-d4c3-46b9-af65-fb50e58b0bfd | nvd | 2022-04-18 |
References
| Url | Source | Tags |
|---|---|---|
| https://wpscan.com/vulnerability/3c5a7b03-d4c3-46b9-af65-fb50e58b0bfd | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| ad_injection_project:ad_injection | <= 1.2.0.19 | no | nvd | /v1/products/ad_injection_project/ad_injection |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-04-18
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts