CVE-2024-35498
PHP vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in Grav CMS version 1.7.45. The vulnerability allows attackers to execute arbitrary web scripts or HTML via a crafted payload, particularly affecting users with restricted page creation privileges (NVD, Medium Blog).

Technical details

The vulnerability exists due to insufficient input validation in the page creation functionality. Users with restricted page creation privileges can bypass JavaScript restrictions by exploiting the ondblclick event in HTML tags, specifically using the anchor tag. While direct JavaScript insertion is blocked, attackers can leverage HTML events to execute malicious scripts. The vulnerability has been assigned a CVSS v3.1 Base Score of 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (NVD).

Impact

When exploited, this vulnerability allows attackers to execute arbitrary JavaScript code in the context of other users' browsers, including administrators. The impact extends to all users who visit the affected pages, potentially leading to session hijacking, data theft, or further system compromise (GitHub POC).

Mitigation and workarounds

As of the current information available, there is no official patch released. However, administrators should implement robust input validation and content filtering measures to prevent the execution of unauthorized scripts. Additionally, restricting the use of dangerous HTML tags and implementing proper content security policies can help mitigate the risk (GitHub POC).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management