Zum Inhalt springen
Skillpedia
Sicherheit42k · #6433

competition-jwt-claim-confusion

Was er macht

Dieses Tool hilft dir zu verstehen, wie ein Sicherheits-Token (JWT) von einem System geprüft wird. Es zeigt, wie die Informationen im Token und die Methode zur Prüfung des Schlüssels darüber entscheiden, ob dir Zugriff gewährt wird.

Wann du ihn nutzt

  • ✓Wenn du die Details eines JWT sehen willst.
  • ✓Wenn du verstehen willst, wie ein Schlüssel zur Prüfung eines Tokens ausgewählt wird.
  • ✓Wenn du vermutest, dass ein Token unberechtigten Zugriff gewährt.

Link zum Skill

https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-jwt-claim-confusion/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-jwt-claim-confusion/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Analysiere dieses JWT und sag mir, wie es geprüft wird und welche Berechtigungen es gewährt.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Das Tool zerlegt die Token-Prüfung in Schritte: Lesen der Informationen (Header und Claims), Finden des richtigen Schlüssels und Prüfen, ob die im Token beschriebenen Berechtigungen vom System akzeptiert werden. Dabei wird alles protokolliert, damit der genaue Weg zur Autorisierung sichtbar wird.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Competition JWT Claim Confusion

Use this skill only as a downstream specialization after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to $ctf-sandbox-orchestrator first.

Use this skill when the decisive bug is not just "there is a JWT," but how headers, claims, and key selection turn into accepted identity.

Reply in Simplified Chinese unless the user explicitly requests English.

Quick Start

  1. Split the token path into parse, key lookup, signature or decryption, claim validation, and final acceptance.
  2. Record header fields, claims, key source, issuer, audience, and role mapping before mutating anything.
  3. Separate possession of a token from the exact service that accepts it.
  4. Keep parser behavior, trust policy, and resulting app session or privilege in one chain.
  5. Reproduce the smallest token-to-acceptance flow that proves the decisive confusion.

Workflow

1. Map Header And Key Selection

  • Record header fields such as alg, kid, typ, cty, jku, or embedded key material when present.
  • Note where keys come from: static config, JWKS, local file, cache, or dynamic lookup.
  • Keep token parser, key selection path, and validation mode tied together.

2. Prove Claim-To-Privilege Acceptance

  • Show how subject, audience, issuer, tenant, scope, role, or custom claims become app session, route access, or backend privilege.
  • Record expiration, not-before, clock skew, issuer matching, audience matching, and claim normalization behavior.
  • Distinguish token parse success from actual authorization success.

3. Reduce To The Decisive JWT Path

  • Compress the result to the smallest sequence: token supplied -> parser or key path taken -> claim accepted -> resulting capability.
  • Keep one canonical accepted token path and one mutated token path if confusion or bypass depends on a delta.
  • If the task broadens into a larger OAuth redirect chain, hand back to the tighter OAuth skill.

Read This Reference

  • Load references/jwt-claim-confusion.md for the header checklist, claim checklist, and evidence packaging.

What To Preserve

  • Raw headers, claims, key source, JWKS or local key path, and the accepting service
  • The exact validation or normalization step that turns the token into accepted identity
  • One minimal replayable token-to-acceptance sequence
Häufige Fragen

Was ist ein JWT?

JWT steht für JSON Web Token. Es ist ein Standard für Zugriffs-Token, mit dem Informationen sicher zwischen Parteien übertragen werden.

Was sind Header und Claims in einem JWT?

Der Header enthält Metadaten zum Token, zum Beispiel den verwendeten Signaturalgorithmus. Claims sind Angaben zur Entität (zum Beispiel einem Benutzer) und zusätzliche Berechtigungen.

Was bedeutet 'Token-to-Identity Confusion'?

Das ist eine Sicherheitslücke, bei der das System ein Token falsch interpretiert. Dadurch kann eine falsche Identität erkannt werden oder es werden unbeabsichtigt Rechte vergeben.

Details

Originalbeschreibung des Autors

Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for JWT, JWS, and JWE validation paths, header parsing, key selection, claim acceptance, audience and issuer checks, role derivation, and token-to-identity confusion bugs. Use when the user asks to inspect JWT headers or claims, key lookup, `kid` handling, `alg` confusion, audience or issuer validation, role claims, or ex

repo: zhaoxuya520/reverse-skill

Beliebtheit

GitHub-Sterne
42k
Platz im Ranking
#6433
Lizenz
MIT
Aktualisiert
22.9.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills