Security context

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

he-yufeng/corecoder
main @ 61fc02c
2
Fixes
0
CVEs
HIGH
Peak severity
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
corecoder/session.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: User-controlled session IDs were directly concatenated to file paths, allowing attackers to traverse directories and write arbitrary files via sink path.write_text. Developers must ensure path canonicalization and strict prefix checks are consistently applied.
Auth Bypass: Predictable timestamp-based session IDs allowed session hijacking and collision. The fix replaced these with random UUID fragments combined with precise datetimes, demonstrating the need for high-entropy session tokens.