/indra:sh-kb-csrffrom Indra
Knowledge base for finding Cross-Site Request Forgery (CSRF) vulnerabilities — state-changing requests relying on ambient cookies without anti-CSRF tokens or SameSite protection. Covers preconditions, sinks, detection recipes, PoC payloads, and false-positive filters.
Ships in Indra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A logged-in victim's browser is tricked into sending a state-changing request; the app trusts the ambient cookie and performs the action as the victim. Requires cookie-based auth and a missing anti-CSRF control.
Authorization: Bearer) - pure Bearer-in-header APIs are generally not CSRF-able.State-changing route handlers (POST/PUT/PATCH/DELETE, or GET that mutates) that:
csrf_exempt, @csrf.exempt,
skip_before_action :verify_authenticity_token, csrf: false, Spring .csrf().disable(),
Express without csurf, SameSite=None/absent on the session cookie.csrf_exempt|verify_authenticity_token|csrf().disable|csurf|SameSite|@csrf.codebase-map.json, list state-changing endpoints and their auth mechanism.SameSite=Lax/Strict blocks most cross-site POSTs; SameSite=None re-opens it.<form action="https://target/settings" method="POST"> and
hidden inputs, plus <script>document.forms[0].submit()</script>; victim visiting it triggers the action.text/plain or don't check content-type: a form with
enctype="text/plain" crafting a JSON-ish body.<img src="https://target/delete?id=5">.SameSite=Lax (default in modern browsers) or Strict on the session cookie - mitigates most CSRF;
note residual risk for top-level GET navigations under Lax.CWE-352. OWASP A01:2021. Severity by action impact: account/email/password change or money transfer -> high; low-value toggles -> medium/low.
CSRF + xss (steal token then forge) ; CSRF to change email/password -> account takeover; CSRF to add an
attacker OAuth/app -> persistence; often combined with access-control to hit privileged actions.
Enable framework CSRF protection on all state-changing routes (don't blanket-exempt); require a
synchronizer or double-submit token; set session cookies SameSite=Lax/Strict + Secure; prefer
non-ambient auth for APIs; require a custom header for JSON APIs and lock down CORS.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dmdhrumilmistry/indra --plugin indra20 skills in this plugin
/indraindra - the entry point for application-security work. Dispatcher for the indra security harness. Use when the user asks for any application-security work - 'security review', 'audit this codebase', 'pentest', 'find vulnerabilities', 'check for SQLi/XSS/IDOR/SSRF', 'generate a security report/SARIF'. Interprets the request and routes it to the full sh-security-review pipeline, a single stage, or a single vulnerability-class knowledge base./sh-kb-access-controlKnowledge base for finding broken access control - IDOR/BOLA, missing function-level authorization, privilege escalation, and multi-tenant isolation failures. Use when hunting authorization issues or reviewing whether users can access resources/actions they shouldn't. CWE-284/285/639/862/863, OWASP A01:2021-Broken Access Control./sh-kb-authKnowledge base for finding authentication and session-management failures - weak login, broken JWT/session handling, password/reset flaws, MFA bypass, credential storage issues. Use when hunting authentication (not authorization - see sh-kb-access-control). CWE-287/384/613/620/640, OWASP A07:2021-Identification and Authentication Failures./sh-kb-cryptoKnowledge base for finding cryptographic failures - weak hashing/encryption, insecure randomness, hardcoded/static keys and IVs, ECB mode, missing integrity, and predictable tokens. Use when hunting crypto misuse. CWE-327/328/330/326/916, OWASP A02:2021-Cryptographic Failures./sh-kb-deserializationKnowledge base for finding insecure deserialization - untrusted data fed to object-deserialization APIs that can trigger RCE or object injection via gadget chains. Use when hunting deserialization issues. CWE-502, OWASP A08:2021-Software and Data Integrity Failures./sh-kb-file-uploadKnowledge base for finding unrestricted/insecure file upload - uploads that allow dangerous file types, execution in the upload dir, path control over the stored name, or missing content validation, leading to RCE, XSS, or overwrite. Use when hunting file-upload issues. CWE-434/436/616, OWASP A04/A05:2021.Other plugins' skills for the same job