wrdn-authz

Detect authorization defects in route handlers, middleware, and ORM queries.

Updated Aug 3, 2025
One-click install
npx skills add https://github.com/cschmatzler/nixos-config --skill wrdn-authz-cschmatzler
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wrdn-authz
Source: https://github.com/cschmatzler/nixos-config/tree/main/modules/_pi/skills/warden-skills/wrdn-authz
Command: npx skills add https://github.com/cschmatzler/nixos-config --skill wrdn-authz-cschmatzler

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Authorization defects where the wrong principal, tenant, or scope can access a protected resource.

Core Features & Use Cases

  • Detects IDOR, missing ownership/tenant scoping, and fail-open role checks across route handlers, middleware, decorators, resolvers, serializers, and ORM queries.
  • Guides reviewers to identify authorization bypasses such as token/sesion claims trusted for decisions, or admin surfaces left unguarded.
  • Provides a structured investigation playbook and references to framework-specific patterns for rapid triage.

Quick Start

Review an authorization-related change and propose a concrete, testable guard to enforce ownership and scope.

Frequently Asked Questions about wrdn-authz

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect IDOR vulnerabilities in route handlers during code review?

You detect IDOR by tracing authentication context and verifying ownership boundaries in route handlers. This process identifies missing tenant scoping and proposes concrete guards to enforce proper access restrictions on protected resources.

What is the best way to check for missing authorization scope in ORM queries?

Checking authorization scope in ORM queries involves tracing tenant and ownership decisions across the data access layer. This identifies queries failing to restrict records by principal scope, preventing unauthorized tenants from accessing protected resources.

How does RBAC fail-open role checking bypass authorization in middleware?

RBAC fail-open role checking bypasses authorization when middleware trusts token or session claims without validating access decisions. This happens when role checks default to allowing access upon errors, leaving admin surfaces unguarded against wrong principals.

Can I review authorization defects in serializers and resolvers with this approach?

Yes, reviewing authorization defects in serializers and resolvers is possible by applying boundary checks across code changes. This identifies exposed protected resources without proper scope validation, citing framework-specific patterns for rapid triage.

When do I need to trace authentication context for tenant scoping?

You need to trace authentication context for tenant scoping when reviewing code changes touching route handlers, decorators, or ORM queries. This ensures wrong tenants or principals cannot access protected resources through missing boundary checks.

What are the limitations of relying on session claims for authorization decisions?

Relying on session claims for authorization decisions is limited because tokens can be stale or spoofed, causing authorization bypasses. Proper authorization requires validating ownership and scope decisions at the resource boundary rather than trusting claims alone.