RULE(RULE ID:338603)

Rule General Information
Release Date: 2024-12-17
Rule Name: Devika Arbitrary File Read Vulnerability (CVE-2024-5334)
Severity:
CVE ID:
Rule Protection Details
Description: A local file read vulnerability exists in the stitionai/devika repository, affecting the latest version. The vulnerability is due to improper handling of the 'snapshot_path' parameter in the '/api/get-browser-snapshot' endpoint. An attacker can exploit this vulnerability by crafting a request with a malicious 'snapshot_path' parameter, leading to arbitrary file read from the system. This issue impacts the security of the application by allowing unauthorized access to sensitive files on the server.
Impact: An attacker could exploit this vulnerability to have unspecified effect.
Affected OS: Windows, Linux, Others
Reference: https://github.com/stitionai/devika/commit/6acce21fb08c3d1123ef05df6a33912bf0ee77c2
https://huntr.com/bounties/7eec128b-1bf5-4922-a95c-551ad3695cf6
Solutions
Refer to the announcement or patch by the vendor: https://github.com/stitionai/devika/commit/6acce21fb08c3d1123ef05df6a33912bf0ee77c2