SuperAPI AI Directory

review-authz-session-and-secret-handling

Security & auditing

View repository

Updated 10-16 04:55

About this skill

Review Authz, Session, And Secret Handling

What to inspect

  • login, register, logout, refresh, and session routes
  • role checks
  • ownership checks on [id] routes
  • password reset and recovery flows
  • session creation, invalidation, rotation, and cookie flags
  • JWT creation, signing, expiry, audience, issuer, and verification logic
  • API key storage and response serialization
  • plaintext secrets or default credentials in repo, docs, env examples, or logs

Questions to answer

  1. Are server-side authz checks present at the data or mutation boundary?
  2. Can one user access another user's resource by ID?
  3. Is password reset resistant to enumeration and guessing?
  4. Are JWTs verified with the correct algorithm, claims, and key handling?
  5. Are secrets encrypted, masked, and omitted from responses?

Evidence format

For each result, record:

  • asset being protected
  • guard in place
  • bypass possibility
  • session or token weakness
  • data exposure status

Common non-findings

  • server-side ownership checks enforced before database mutation
  • JWT verification that pins algorithm and validates issuer and audience
  • secrets stored only in environment variables and never serialized to clients