tauri
Audited by Socket on Sep 11, 2026
3 alerts found:
SecurityAnomalyx2The code contains several significant security risks if these Tauri commands can be invoked with untrusted input: unrestricted outbound URL requests, arbitrary filesystem reads, arbitrary recursive directory traversal, and unbounded memory allocation during export. SQL injection is not evident because the query value is parameterized. There is no clear malicious behavior or obfuscation, but command-level authorization, trusted-path enforcement, URL validation, size limits, cancellation, and nonblocking execution are required.
The fragment does not show clear malicious behavior or malware. It does contain a security-relevant arbitrary file-write risk: an exposed command uses an unvalidated directory supplied by the frontend and overwrites `report.pdf`. The large uncapped allocation and panic-on-write-failure also create denial-of-service and reliability risks. State typing and duplicate handler registration appear incorrect and require verification against the Tauri version.
The configuration does not contain clear evidence of malware or intentional sabotage. The primary security concerns are the plaintext HTTP updater endpoint, quiet update installation, disabled CSP, and the inclusion of an unreviewed external binary. The HTTP updater should be changed to HTTPS and update signature validation should be verified; the external binary should be provenance- and integrity-checked. Assessment is limited to this configuration file.