Skip to content

Commit 5f9dfd5

Browse files
author
MStarRobotics
committed
Add exhaustive codebase risk assessment reports
1 parent 0d6cddc commit 5f9dfd5

4 files changed

Lines changed: 468 additions & 0 deletions

File tree

docs/codebase-risk-assessment.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Codebase Risk Assessment (LifeLine)
2+
3+
Date: 2026-03-10
4+
Scope: Backend, Frontend, and Documentation
5+
Method: Static review of code paths and configuration. No runtime tests executed.
6+
7+
## Executive Summary
8+
9+
This assessment is split into subsystem reports:
10+
- `docs/risk-assessment-backend.md`
11+
- `docs/risk-assessment-frontend.md`
12+
- `docs/risk-assessment-doc-mismatches.md`
13+
14+
## Top Critical/High Risks (Consolidated)
15+
16+
1. Auth vulnerabilities: password reset plaintext storage, check-email token issuance, and unverified social login (backend).
17+
2. Missing auth/authorization on several REST and socket paths (backend).
18+
3. Socket impersonation and unauthorized subscriptions (backend).
19+
4. Helper assignment ID mismatch in socket SOS flow (backend).
20+
5. Location/medical/payment endpoints allow cross-user access (backend).
21+
6. Frontend uses `check-email` as a login path when tokens are returned (frontend).
22+
7. Notifications UI calls a non-existent endpoint (frontend).
23+
8. Client-side Sarvam API usage uses non-public keys (frontend).
24+
25+
## Next Steps
26+
27+
- Follow the “Suggested Fix Order” in the backend report to reduce attack surface first.
28+
- Align frontend auth flows with backend security fixes.
29+
- Regenerate stale API mismatch docs once code changes land.

0 commit comments

Comments
 (0)