본문으로 건너뛰기
Skillpedia
보안42k · #6433

competition-jwt-claim-confusion

하는 일

이 도구는 시스템이 보안 토큰(JWT)을 어떻게 검증하는지 이해하도록 돕습니다. 토큰 안의 정보와 토큰을 검증하는 키의 방식이 접근 허용 여부를 어떻게 결정하는지에 집중합니다.

사용하는 경우

  • ✓JWT의 세부 내용을 보고 싶을 때.
  • ✓토큰을 검증하는 키가 어떻게 선택되는지 이해해야 할 때.
  • ✓토큰이 부적절한 접근을 허용하고 있을지 의심되는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-jwt-claim-confusion/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 JWT를 분석해서 어떻게 검증되고 어떤 권한을 부여하는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 토큰 검증 과정을 헤더와 클레임을 읽는 단계, 올바른 키를 찾는 단계, 토큰에 기술된 권한이 시스템에서 받아들여지는지 확인하는 단계로 나눕니다. 승인에 이르는 정확한 경로를 보여 주기 위해 모든 것을 기록합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

JWT란 무엇인가요?

JSON Web Token의 약자로, 당사자 사이에 정보를 안전하게 전달하는 접근 토큰을 만드는 표준입니다.

JWT의 헤더와 클레임은 무엇인가요?

헤더는 서명 알고리즘처럼 토큰에 대한 메타데이터를 담고, 클레임은 주체(사용자)에 대한 정보와 추가 권한을 담습니다.

‘토큰-신원 혼동’은 무엇을 뜻하나요?

시스템이 토큰을 잘못 해석해 잘못된 신원을 확인하거나 의도하지 않은 권한을 부여하는 보안 취약점의 한 유형입니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
42k
순위
#6433
라이선스
MIT
업데이트
2026. 9. 22.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬