cors-csrf
Skill1 starsChanged 3 months agoMITView on GitHub
This is a thin human-facing router. Use skill.yaml as the source of truth for exact commands, inputs, outputs, and workflow chaining.
In this repository50 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- agent-safetySkill
- ai-llmSkill
- apiSkill
- asset-graphSkill
- authSkill
- auto-researchSkill
- binary-analysisSkill
- business-logicSkill
- campaignSkill
- cicd-securitySkill
- cloudSkill
- coverageSkill
- cross-accountSkill
- domain-modelSkill
- enrichmentSkill
- evaluation-harnessSkill
- file-uploadSkill
- graphql-auditSkill
- http-protocolSkill
- identity-domainSkill
- impact-verifierSkill
- meme-coin-auditSkill
- mobileSkill
- modern-browserSkill
- nuclei-scannerSkill
- oob-infraSkill
- osintSkill
- personaSkill
- plannerSkill
- privescSkill
- program-memorySkill
- race-conditionSkill
- rceSkill
- reconSkill
- reportingSkill
- sastSkill
- scope-managerSkill
- skill-scientistSkill
- sqliSkill
- ssrfSkill
- standard-catalogSkill
- technique-kbSkill
- traffic-corpusSkill
- triage-validationSkill
- vuln-intelSkill
- web3-auditSkill
- xssSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Start with cors-matrix unless prior evidence points to a more specific workflow.
- Very specific: line 17
Follow each workflow next mapping in skill.yaml after reviewing generated findings.
- Distinctive: line 18
If a workflow has no script reference, treat it as a manual or tool-native workflow and use the closest phase runbook when available.
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cors Csrf
Overview
CORS misconfiguration and CSRF testing — origin reflection, cross-origin attacks, SameSite bypass, postMessage validation
This is a thin human-facing router. Use skill.yaml as the source of truth for exact commands, inputs, outputs, and workflow chaining.
Quick Reference
- Skill:
cors-csrf - Severity range:
low,medium,high - Required tools:
curl,ffuf,python3,playwright - Expected input files:
live_urls.txt,all_urls.txt - Scope check: confirm authorization before running intrusive or authenticated testing.
Workflow Selection
- Start with
cors-matrixunless prior evidence points to a more specific workflow. - Follow each workflow
nextmapping inskill.yamlafter reviewing generated findings. - If a workflow has no script reference, treat it as a manual or tool-native workflow and use the closest phase runbook when available.
- Runbooks: use
runbooks/and select the closest phase runbook when workflow names do not map 1:1.
Available Workflows
| Workflow | Purpose | Script paths | Primary outputs | Evidence |
cors-matrix | Test CORS origin reflection, credentialed CORS, and null-origin cases. | .claude/skills/cors-csrf/scripts/cors_matrix_tester.py | $OUTDIR/cors/findings.jsonl | $OUTDIR/cors/evidence/ |
csrf-poc | Generate a CSRF proof-of-concept for a known state-changing endpoint. | .claude/skills/cors-csrf/scripts/csrf_poc_generator.py | $OUTDIR/csrf/poc.html | $OUTDIR/csrf/evidence/ |
samesite-bypass | Analyze SameSite cookie attributes and bypass scenarios. | .claude/skills/cors-csrf/scripts/samesite_bypass_tester.py | $OUTDIR/samesite/findings.jsonl | $OUTDIR/samesite/evidence/ |
postmessage | Audit postMessage handlers for missing origin checks and dangerous sinks. | .claude/skills/cors-csrf/scripts/postmessage_auditor.py | $OUTDIR/postmessage/findings.jsonl | $OUTDIR/postmessage/evidence/ |
Evidence Required
- Save raw request and response data for each confirmed finding.
- Include timestamps, affected target, exact workflow name, tool versions, and reproduction steps.
- Store screenshots or terminal captures in the workflow evidence directory when the workflow defines one.
- Evidence templates from
skill.yaml: cors_poc: CORS exploit HTML demonstrating cross-origin data theftcsrf_poc: CSRF exploit HTML auto-submitting state-changing requestpostmessage_poc: HTML page exploiting missing origin check in postMessage listener
References
- Source of truth:
skill.yaml - Runbooks:
runbooks/ - OWASP WSTG:
WSTG-CLNT-07,WSTG-SESS-05
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

