competition-jwt-claim-confusion
ما الذي تفعله
هذه المهارة تساعد على فهم كيف يتحقق النظام من رمز الأمان JWT. تركز على المعلومات داخل الرمز وطريقة اختيار المفتاح المستخدم للتحقق منه، وكيف تحدد هذه الأمور منح الوصول أم لا.
متى تستخدمها
- ✓عندما تريد الاطلاع على تفاصيل رمز JWT.
- ✓عندما تحتاج إلى فهم طريقة اختيار المفتاح للتحقق من الرمز.
- ✓عندما تشك في أن الرمز يمنح صلاحية وصول غير مشروعة.
رابط المهارة
https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-jwt-claim-confusion/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“حلّل رمز JWT هذا وأخبرني كيف يُتحقق منه وأي صلاحيات يمنحها.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقسّم المهارة عملية التحقق من الرمز إلى خطوات: قراءة المعلومات (الترويسة والادعاءات)، ثم إيجاد المفتاح الصحيح، ثم التأكد من أن الصلاحيات الموصوفة في الرمز مقبولة لدى النظام. وتسجل كل شيء لتوضيح المسار الكامل نحو التفويض.
المحتوى التقني (ملف 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
- Split the token path into parse, key lookup, signature or decryption, claim validation, and final acceptance.
- Record header fields, claims, key source, issuer, audience, and role mapping before mutating anything.
- Separate possession of a token from the exact service that accepts it.
- Keep parser behavior, trust policy, and resulting app session or privilege in one chain.
- 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.mdfor 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؟
JWT اختصار لـ JSON Web Token، وهو معيار لإنشاء رموز الوصول التي تنقل المعلومات بأمان بين الأطراف.
ما هي «الترويسة» (headers) و«الادعاءات» (claims) في JWT؟
الترويسة تحتوي على بيانات وصفية عن الرمز، مثل خوارزمية التوقيع. أما الادعاءات فهي معلومات عن الكيان، أي المستخدم، وصلاحيات إضافية.
ماذا يعني «الخلط بين الرمز والهوية» (token-to-identity confusion)؟
هو نوع من الثغرات الأمنية يؤدي فيه تفسير النظام للرمز إلى تحديد هوية خاطئة أو منح صلاحيات غير مقصودة.
التفاصيل
الوصف الأصلي من المؤلف
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
الشعبية
- نجوم GitHub
- 42k
- الترتيب
- #6433
- الترخيص
- MIT
- آخر تحديث
- 22/9/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
competition-ad-certificate-abuse
42kيساعد وكيلك على تحليل الهجمات على أنظمة الشهادات الرقمية. يبحث في كيفية إساءة استخدام الشهادات للوصول إلى الصلاحيات.
competition-agent-cloud
42kيساعد وكيلك على تحليل التحديات الأمنية في أنظمة الذكاء الاصطناعي والسحابة. يبحث في كيفية استغلال الأوامر والأدوات والسحابة.
competition-android-hooking
42kيساعد وكيلك على التحقيق في تطبيقات Android. يحلل كيف تعمل التطبيقات من الداخل وكيف يمكن تعديلها أو استغلالها.
competition-browser-persistence
42kيساعد وكيلك على تحليل كيفية تخزين المواقع للمعلومات في متصفحك. يبحث في ملفات تعريف الارتباط وغيرها من البيانات لفهم عمل الجلسات.
مهارات مشابهة
reverse-engineer-anything
422kيساعد وكيلك على فحص التطبيقات والحزم المنشورة من الداخل ليشرح الميزات ويقارن الإصدارات ويرشد إلى إعادة البناء، باستخدام أداة REA.
1password
394kيساعد وكيلك على إعداد واجهة سطر أوامر 1Password وتسجيل الدخول، وقراءة الأسرار أو حقنها دون طباعة قيمها في المحادثة.
healthcheck
394kيساعد وكيلك على تدقيق جهاز OpenClaw أو خادمه أمنيًا، مثل SSH والجدار الناري والتحديثات، ويقترح إصلاحات آمنة قابلة للتراجع.