admin-endpoint-role-guard
/admin-endpoint-role-guard
Probe every administrative operation with a non-admin account and confirm the refusal is a 403 from the server, not missing UI. Use when the product has staff, backoffice or platform-admin operations that normal members must never reach
- Author
- Wsh7Ash ↗
- Repository
- authzmap ↗
- Licence
- MIT
- Last repository change
- 28.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 2
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Probe every administrative operation with a non-admin account and confirm the refusal is a 403 from the server, not missing UI. Use when the product has staff, backoffice or platform-admin operations that normal members must never reach
Original author description
Probe every administrative operation with a non-admin account and confirm the refusal is a 403 from the server, not missing UI. Use when the product has staff, backoffice or platform-admin operations that normal members must never reach
How it works
- Procedure
- Signals
- Patterns
- Pitfalls
- Done when
- References
SKILL.md preview
--- name: admin-endpoint-role-guard description: "Probe every administrative operation with a non-admin account and confirm the refusal is a 403 from the server, not missing UI. Use when the product has staff, backoffice or platform-admin operations that normal members must never reach" pack: authzmap version: 1.0.0 category: api-security tags: [admin, roles, privilege] --- # Admin Endpoint Role Guard > Probe every administrative operation with a non-admin account and confirm the refusal is a 403 from the server, not missing UI **Use when:** the product has staff, backoffice or platform-admin operations that normal members must never reach **Avoid when:** you have no admin or member role pair available and cannot compare both sides of the guard ## Procedure 1. Enumerate administrative operations from clients, route tables and description documents, including staff-only paths. 2. Send each operation with a plain member credential from your own second account and record the outcome. 3. Confirm the guard covers every HTTP method, not only GET, since DELETE and POST frequently have separate handlers. 4. Check for client-side-only protection by replaying requests taken straight from the admin UI without the UI in between. 5. Look for data returned in error paths, where a failed check may still echo records before refusing. 6. Record the enforcement point for each guarded endpoint so reviewers can rate the consistency of the design. ## Signals - A member credential receives complete admin data even though no admin link exists anywhere in the member UI. - GET refuses with 403 while POST to the same path mutates state in some way the member should never trigger. - An error response contains counts, names or identifiers that the refused list endpoint should never have touched. - Admin behavior varies by prefix, so v2 routes guard properly while legacy v1 paths accept the member token. ## Patterns **1. Method sweep** ```text GET /api/staff/orders member -> 403 POST /api/staff/orders member -> 200 -> guard is per-method ``` **2. Replay probe** ```text copy admin UI request, swap session for member cookie -> record exactly what returns ``` **3. Result row** ```text path=/api/staff/* endpoints=12 guarded=GET-only=3 member=data-leak=1 ``` ## Pitfalls - Pretending the member UI proves security, when UI absence and server refusal are entirely different facts. - Testing admin endpoints only with an admin account, which can only confirm the happy path. - Ignoring tenant-admin versus platform-admin distinctions, the most common split that products under-model. ## Done when - Every administrative endpoint has a member-credential verdict recorded for every method it exposes. - Client-side-only guards and data-echoing error paths, where found, are documented with reproduction requests. ## References - [OWASP API Security Top 10](https://owasp.org/www-project-api-security/) - [PortSwigger - access control vulnerabilities](https://portswigger.net/web-security/access-control)
Versions
The database has no other skills named admin-endpoint-role-guard.
Database snapshot: 13.11.2026 · package version e19c89970bb1 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100route-normalization-guard
Check that slugs, encodings, dot segments and duplicate separators all resolve consistently, so admin routes stay admin routes after every rewrite. Use when the API mixes route matching across gateways, services and frameworks, where each library normalizes URLs slightly differently - 90life-admin
S3 Operations — Life logistics and admin staff for Tory Owens. Handles recurring tasks, document management, VA tracking, Guard administration, vehicle management, insurance, subscriptions, and any admin that falls through the cracks. Triggers on: "Admin check", "VA update",… - 90admin-interface-security
Secure the administrative interface of model registries. Use when building, deploying, or reviewing model registry access controls and admin interfaces. - 96admin-deploy
Use when deploying this admin project to a server or updating a server to a new commit. - 90maintaining-admin-mcp
Use when adding, changing, or removing admin dashboard workflows, backend admin APIs, staff permissions, or staff-facing product capabilities in client/admin, server/internal/admin, or server/internal/adminmcp. Assess staff Admin MCP parity and update its tools where applicable. - 100authentication-authorization
Review and fix authentication and authorization: weak login, missing authz checks, admin routes, password reset, default credentials, MFA, account enumeration and client-only security. Use when building or auditing login, roles, admin areas or account recovery.