Common Code Review
ASecurity[BLOCKER] [New user-data endpoint; file/route unspecified] Missing authentication and authorization allows any caller to retrieve another user’s data by changing the URL user ID (IDOR/BOLA). Why: This is an unauthenticated data-exposure vulnerability that may allow user enumeration and disclosure of private or sensitive information. Fix: Require authentication, then authorize access to the requested ID based on ownership or an explicit role. Return `401` when unauthenticated and `403` when un...
- 584 stars
- 0 votes
- 0 copies
- 4 views
- Added September 5, 2026
Security analysis
100/100Pro scans all 15 files and shows the line behind each finding
npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-code-review --agent claude-codeAre you the author of Common Code Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-code-review-4190627b)[BLOCKER] [New user-data endpoint; file/route unspecified] Missing authentication and authorization allows any caller to retrieve another user’s data by changing the URL user ID (IDOR/BOLA).
Why: This is an unauthenticated data-exposure vulnerability that may allow user enumeration and disclosure of private or sensitive information.
Fix: Require authentication, then authorize access to the requested ID based on ownership or an explicit role. Return `401` when unauthenticated and `403` when unauthorized; avoid leaking data in error responses.
Assumption: The endpoint directly trusts the URL user ID and no upstream middleware enforces access control. Evidence needed: the route, controller, middleware configuration, and data-access code.
Check:
- Add tests proving unauthenticated requests fail.
- Add tests proving one authenticated user cannot access another user’s ID.
- Cover edge cases such as nonexistent IDs, malformed IDs, privileged roles, and direct URL enumeration.
- Check that queries use parameter binding and return only fields permitted for the caller.
Files in this skill
- eval-1.baseline.md
- eval-1.with-skill.md
- eval-2.baseline.md
- eval-2.with-skill.md
- eval-3.baseline.md
- eval-3.with-skill.md
- pressure-1.baseline.md
- pressure-1.with-skill.md
- pressure-2.baseline.md
- pressure-2.with-skill.md
- trigger-1.md
- trigger-2.md
- trigger-3.md
- trigger-4.md
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.