salvo-file-handling
Fail
Audited by Gen Agent Trust Hub on Sep 27, 2026
Risk Level: HIGHDATA_EXFILTRATIONCOMMAND_EXECUTION
Full Analysis
- [DATA_EXFILTRATION]: Path traversal vulnerability in the
downloadhandler example. The code extracts afilenameparameter directly from the request (req.param("filename")) and uses it to construct a file path (files/{filename}) without sanitization. An attacker could use sequences like../../etc/passwdto read sensitive files outside the intended directory. - [COMMAND_EXECUTION]: Multiple Path Traversal vulnerabilities in file upload examples. In the
upload,upload_files, and OpenAPIuploadhandlers, the code usesfile.name()(a user-provided value from theContent-Dispositionheader) to construct the destination path intemp/oruploads/directories. Without sanitization, an attacker could provide a malicious filename to overwrite system binaries or configuration files, potentially leading to remote code execution or system compromise. - [COMMAND_EXECUTION]: Path traversal vulnerability in the
raw_uploadhandler. The code uses a filename directly from a query parameter (req.query("filename")) to create a file on the filesystem. This allows an attacker to specify arbitrary write locations by providing a path like?filename=../../root/.ssh/authorized_keys.
Recommendations
- AI detected serious security threats
Audit Metadata