Security context

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

presenton/presenton
main @ 2e9bf24
12
Fixes
0
CVEs
HIGH
Peak severity
25.0%
Coverage
Highlights
Path Traversal: 6 prior fixes. Scrutinize any change in this area.
nginx.conf: most-fixed (2 issues). Treat as high-risk during review.
12 high-severity fixes 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: Incomplete canonicalization and directory prefix verification allowed arbitrary file reads in Python-based environments. Future file-handling logic must proactively apply canonicalization before applying prefix allowlists.
Path Traversal: The Node.js/Next.js routes suffered from symbolic link and path resolution issues, allowing unauthorized directory escapes. Developers must use realpathSync to fully resolve symbolic links prior to validating paths.
Auth Bypass: Static assets, user uploads, and internal APIs were exposed via Nginx due to missing authentication subrequests, leading to direct access bypasses. Missing trailing slashes on aliases also enabled unauthenticated path traversals.