The snapshot_path parameter in the /api/get-browser-snapshot endpoint in stitionai devika v1 is susceptible to a path traversal attack. An attacker can manipulate the snapshot_path parameter to traverse directories and access sensitive files on the server. This can potentially lead to unauthorized access to critical system files and compromise the confidentiality and integrity of the system.
An attacker sends a crafted request to the /api/get-browser-snapshot endpoint, manipulating the snapshot_path parameter value by inserting directory traversal sequences (e.g., '../../../'). The application does not validate or sanitize this parameter, and as a result, it processes paths that extend beyond the intended directory. This enables access to any files available in the context of the server process permissions.
An attacker can gain unauthorized access to sensitive system files (e.g., /etc/passwd, private keys, configuration files) and potentially compromise the integrity of data stored on the server.
Apply patches available from the vendor according to the references — pull request no. 619 is available in the GitHub repository stitionai/devika. An urgent update to a version containing the fix is recommended, as well as implementation of validation and sanitization of path parameters on the server side.
Stitionai Devika v1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NStitionai Devika
APPStitionai1.0
Related vulnerabilities
Path traversal w Stitionai Devika — odczyt plików i DoS
stitionai/devika main branch as of commit cdfb782b0e634b773b10963c8034dc9207ba1f9f is vulnerable to Local File...
A CORS misconfiguration in the stitionai/devika repository allows attackers to steal sensitive information suc...
A Cross-Site Request Forgery (CSRF) vulnerability was identified in the stitionai/devika application, affectin...
A local file read vulnerability exists in the stitionai/devika repository, affecting the latest version. The v...