THREAT OPS › Threat News › [GHSA] GHSA-62mm-xwmv-crhg (high) — khoj has an unauthenticated path traversal in /home/ endpoint that allows file read from server filesystem
[GHSA] GHSA-62mm-xwmv-crhg (high) — khoj has an unauthenticated path traversal in /home/ endpoint that allows file read from server filesystem
GHSA-62mm-xwmv-crhg Severity: high CVE: None
khoj has an unauthenticated path traversal in /home/ endpoint that allows file read from server filesystem
### Summary The `/home/{file_path:path}` endpoint in `web_client.py` serves static files by directly concatenating the user-supplied `file_path` with the `home_directory` constant. There is no path traversal filtering, no path normalization check
MITRE ATT&CK techniques
- CredentialsT1589.001
Original source: https://github.com/advisories/GHSA-62mm-xwmv-crhg