Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

jiffyclub/snakeviz
master @ 39bcc58
3
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Denial of Service: 2 prior fixes. Scrutinize any change in this area.
upload.py: most-fixed (2 issues). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Path Traversal: The application accepted untrusted user-provided filenames to read and write files, allowing attackers to escape the intended directory. This was mitigated by strictly routing uploads through tempfile.gettempdir() rather than using user-supplied paths directly.
Denial of Service: Converting complex or malformed uploaded profile files to JSON can cause extreme processing delays. A 10-second multiprocessing timeout was introduced to terminate runaway worker processes and prevent server-wide denial of service.
Denial of Service: Converting profile stats to tree dictionaries was susceptible to infinite recursion and stack exhaustion when handling cyclic or complex profile structures. A recursion guard using a visited tracking set was implemented to prevent crashes.