OpenParable
Skip to content
← Back to skills

Authz Check

Testing & Quality
authz-check

Authz Check is an Agent Skill for testing & quality published in the Archive228/loopkit repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Verify that an endpoint checks ownership, not just authentication. Use on any handler that reads or mutates user data.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/Archive228/loopkit/blob/HEAD/skills/authz-check/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/authz-check, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Authz Check

The most common security hole: the code checks you're logged IN, but not that you OWN the thing.

  • For every resource access: does it verify the current user is allowed THIS specific record? WHERE id = ? AND owner_id = current_user — not just WHERE id = ?.
  • IDOR test: swap the ID in the request to another user's. Does it leak/allow?
  • Admin/privileged actions: is the role checked server-side, every time, not just hidden in the UI?
  • Default deny: new endpoints should require explicit authorization, not be open by oversight. Output each handler that authenticates but doesn't authorize, with the missing check.