Security context

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

nz-m/socialecho
main @ 4dc6c78
8
Fixes
0
CVEs
HIGH
Peak severity
28.6%
Coverage
Highlights
Auth Bypass: 5 prior fixes. Scrutinize any change in this area.
server/routes/admin.route.js: most-fixed (2 issues). Treat as high-risk during review.
6 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: Privileged administrative endpoints (such as those handling system logs) previously lacked proper validation, allowing unauthorized client access to administrative actions. Ensure strict token authentication is enforced across all administrative routers.
Auth Bypass: User identities were historically trust-validated based on client-controlled payloads (req.body.user). Developers must retrieve user identity context directly from the server-validated session or token rather than trusting request payloads.
NoSQL Injection: Database operations on models were vulnerable to query selector injection via unescaped user inputs. Queries should use explicit Mongo operators such as $eq instead of direct object binding.