Vega
cpe:2.3:a:vega_project:vega:*:*:*:*:*:*:*, +2 more
A vulnerability exists in the Vega component of Kroki, specifically in the 'convert()' function, when 'safeMode' is enabled and the 'spec' variable contains an array. This flaw allows an attacker to create a malicious Vega diagram specification that can send requests to any URL, including local file system paths, potentially exposing sensitive information.
Exploitation of this vulnerability could lead to unauthorized access to sensitive information by allowing crafted specifications to request and retrieve data from local files.
To reproduce this vulnerability, upload a Vega-Lite specification that includes a 'data' field with a 'url' attribute pointing to a local file, such as '/etc/passwd'. The specification must be processed with 'safeMode' set to 'secure', which is the default setting. This can be done by using the Kroki service, which will throw an 'UnsafeIncludeError' when the vulnerable conditions are met.
Users can disable 'safeMode' by setting the KROKI_SAFE_MODE environment variable to 'unsafe', but this is not recommended due to the potential security risks. A safer option is to update to the latest version of Kroki, where this vulnerability has been fixed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.