Security context

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

error311/FileRise
master @ d7808c1
70
Fixes
0
CVEs
CRITICAL
Peak severity
28.9%
Coverage
Highlights
Auth Bypass: 24 prior fixes. Scrutinize any change in this area.
src/controllers/FileController.php: most-fixed (5 issues). Treat as high-risk during review.
49 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.

Auth Bypass:
Path Traversal: Multiple fixes address path traversal via user-controlled paths in folder creation, resumable uploads, ZIP extraction, and downloads. The fixes rely on realpath canonicalization and containment checks, but the number of distinct sinks suggests that path validation is not consistently applied across all file-access operations.
Stored XSS: Stored XSS vulnerabilities were fixed by replacing innerHTML with DOM APIs and textContent in folder tree, gallery, and admin storage views. The fixes are view-specific, leaving other rendering paths (e.g., file editor, preview) as potential variant surfaces that may still use unsafe interpolation.