Skip to content
Back to skills

Common Owasp

ASecurity

πŸ”΄ **P0 β€” IDOR/BOLA (OWASP API1 / A01):** `req.params.id` is user-controlled and queried without ownership or tenant authorization. ⚠️ **API3 β€” Broken Property Level Authorization:** Returning `user` directly may expose sensitive fields. Use **DTO projection**. ```js const user = await db.findOne({ id: req.params.id, ownerId: req.auth.userId, // or tenantId select: ['id', 'name', 'avatar'] }); if (!user) return res.status(404).json({ error: 'Not found' }); return res.json(user); ``` Also veri...

  • 584 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
developmentapi

Works with

  • api

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add HoangNguyen0403/agent-skills-standard --skill common-owasp --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Common Owasp?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Common Owasp
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/hoangnguyen0403-common-owasp-b4f91a05/badge)](https://www.skillsdirectory.com/skills/hoangnguyen0403-common-owasp-b4f91a05)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
πŸ”΄ **P0 β€” IDOR/BOLA (OWASP API1 / A01):** `req.params.id` is user-controlled and queried without ownership or tenant authorization.

⚠️ **API3 β€” Broken Property Level Authorization:** Returning `user` directly may expose sensitive fields. Use **DTO projection**.

```js
const user = await db.findOne({
  id: req.params.id,
  ownerId: req.auth.userId, // or tenantId
  select: ['id', 'name', 'avatar']
});

if (!user) return res.status(404).json({ error: 'Not found' });
return res.json(user);
```

Also verify the route has authentication, an opaque session or a JWT with expiry, rate limiting, and explicit CORS configuration.

Files in this skill

  • eval-1.baseline.md810 B
  • eval-1.with-skill.md638 B
  • eval-2.baseline.md798 B
  • eval-2.with-skill.md810 B
  • eval-3.baseline.md741 B
  • eval-3.with-skill.md2 KB
  • trigger-1.md108 B
  • trigger-2.md144 B
  • trigger-3.md149 B
  • trigger-4.md138 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development β†’

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.