Escalate auth bypass

From vigolium/vigolium · View interactive version

Escalate auth bypass is an AI agent skill from the GitHub repository vigolium/vigolium. Turn a suspected or confirmed authentication/authorization bypass into impact — admin access, session takeover, privilege escalation, or cross-tenant read. Use when you find a missing auth check on a route, a weak JWT verifier, a session cookie that's predictable or reusable across users, a privileg

How to use this skill

Skill file

Auth Bypass → Impact Escalation

You have a suspected auth weakness. Your job is to turn it into the

strongest impact you can demonstrate — admin access, cross-tenant data

read, token forgery, or session takeover — and persist a finding with the

specific action that proves it. Reporting "missing auth check" without

showing what it gets you is not a finding.

When this skill applies

should require auth (compare to a known-auth'd record's response).

token signed with the public key as HMAC secret.

changes the response (role=user → role=admin, tenant=A → tenant=B).

CWE-639 — even theoretical.

Workflow

1. Establish baselines

Use list_auth_sessions to see which auth contexts already exist for the

host. Use auth_session_lookup to pull the actual headers for at least

two roles if you have them (anon + user is enough; user + admin

is ideal). remember the role boundaries as auth-roles.

If only one role is available, use query_records to find an

unauthenticated record for the same endpoint to anchor the no-auth

baseline.

2. Classify the weakness

Pick one mechanism to attack — don't shotgun:

with replay_request and extra_headers: {} to strip cookies. If you

still get the privileged response, the route doesn't check auth at all.

iss, aud, exp, sub, custom claims (role, tenant). Re-mint:

drop signature (empty 3rd segment).

on login responses. If they're sequential, time-encoded, or short

hex/base64, forge a neighboring ID via replay_request.

field flipped (role=admin, is_admin=true, tenant_id=<other>).

3. Confirm escalation, don't stop at "different"

A 200 with different content is suspicious, not proof. Confirm with

ONE of:

email, another user's email, a hidden flag).

GET /api/users/all returns a list of more than just the current user.

(look up the user's email or role in the response).

Send the **smallest privileged request that proves the boundary was

crossed**. remember it with key auth-bypass-proof and include the

exact request line.

4. Map the blast radius

Briefly enumerate the surface the bypass unlocks. Don't enumerate at

scale — show:

destructively delete or modify real data — read or create-with-rollback

if possible).

This sizes the severity in the finding without spamming requests.

5. Persist the finding

Call report_finding:

for same-tenant privilege escalation or read of another user's data.

accepted; forged admin token reads /api/admin/users (1234 users)"`.

CWE-639 (IDOR-style), CWE-345 (insufficient verification of data),

CWE-347 (weak signature) — pick the one that matches the mechanism.

decoded JWT header / forged session ID / mutated field value in the

description body so the reproduction is unambiguous.

If the audit harness already raised this, update_finding to triaged

status referencing the new proof.

Pitfalls

password resets) on someone else's account. Read-only proofs are

sufficient for severity.

The body must contain data the original role didn't have access to.

read the body, not just the status, before claiming bypass.

design, that's not a bypass — confirm by checking documentation or

a comment in the code (--source mode).

if your finding is "can read another user's order by changing the

ID", use idor-blast-radius instead.

Output expectations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.