Skip to content
Back to skills

Authz Per Resource

ASecurity

Toda query checa que o user é dono do recurso

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 12, 2026
databasespythonsql

Security analysis

A100/100

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

Scanned September 12, 2026

npx -y skills add aibot88/sec_skill_store --skill authz-per-resource --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Authz Per Resource?

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

Security grade badge for Authz Per Resource
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aibot88-authz-per-resource/badge)](https://www.skillsdirectory.com/skills/aibot88-authz-per-resource)

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
---
name: authz-per-resource
description: Toda query checa que o user é dono do recurso
roles: [dev, qa, cto]
---
Endpoint que retorna ou modifica recurso: **sempre** filtre por `user_id` (ou `tenant_id` em multi-tenant), mesmo se já validou ID via rota.

IDOR (Insecure Direct Object Reference) é o bug #1 de aplicações web.

Padrão:
```python
# Errado — confia no ID da URL
job = Job.objects.get(id=job_id)

# Certo — restringe ao dono
job = Job.objects.get(id=job_id, user_id=current_user.id)
```

Teste cobre acesso cruzado: user A não vê recurso de user B. Em SQL: RLS Postgres com policy obrigatória.

Files in this skill

  • SKILL.md620 B
  • source.json574 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.

Comments

Loading comments…

Newsletter

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