/indra:sh-kb-file-uploadfrom Indra
Knowledge base for hunting unrestricted/insecure file uploads: dangerous file types, execution in upload dir, path control over stored names, missing content validation leading to RCE, XSS, or overwrite. CWE-434/436/616, OWASP A04/A05:2021.
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.
Uploads become dangerous when the app trusts the client-provided type/name, stores files where they can be executed or served, or skips content validation. Worst case: upload a web shell and get RCE.
.php/.jsp/.aspx/.py (or a bypass
variant) into a directory the web server executes -> RCE.Content-Type or extension (spoofable); no
server-side content/magic-byte check.../, overwrite of an
existing file, null byte, double extension shell.php.jpg, trailing dot/space, case tricks, NTFS
Alternate Data Stream shell.asp:.jpg, or a name like shell.p.phphp that becomes shell.php after a
single-pass, non-recursive strip of a blacklisted extension)..svg/.html served inline on the app origin
-> stored XSS; image polyglots; .xml-backed formats -> XXE.Upload handlers and where they write: request.files, MultipartFile, multer, formidable,
move_uploaded_file, save(/saveAs(, fs.writeFile(uploadPath), os.path.join(upload_dir, filename),
secure_filename (Flask - check it's actually used), Content-Type checks, extension allowlist/denylist.
Also how the file is later served (static route over the upload dir) or processed (image libs).
graft grep "request.files|MultipartFile|multer|move_uploaded_file|save(|writeFile|upload" --json.shell.php with <?php system($_GET['c']); ?> if PHP execution reachable; .jsp/.aspx equiv.shell.php.jpg, null byte shell.php%00.jpg, case shell.PhP, trailing
dot/space shell.php., spoofed Content-Type: image/png with PHP body, magic-byte prefix + code,
alternative interpreter extensions often missing from blacklists (.phtml, .php5, .pht, .shtml,
.asp;.aspx), URL-encoded extension exploit%2Ephp, polyglot image+payload files (e.g. built with
ExifTool) that pass magic-byte/dimension checks.poc.svg containing <script>...</script> or poc.html, served inline.../../app/config.py (zip-slip for archives).Content-Disposition: attachment and a
non-executing content-type, served from a separate origin/domain.AllowOverride None, IIS handler mappings locked) so a
smuggled .htaccess/web.config in the upload dir can't grant execution; on Windows, 8.3 short-filename
generation disabled (fsutil behavior set disable8dot3 1) so a blocked long name can't be reached via its
short alias.CWE-434 (unrestricted upload), CWE-436 (interpretation conflict), CWE-616. OWASP A04/A05:2021. Upload->RCE -> critical; stored XSS via upload -> high; overwrite/DoS -> per impact.
Upload web shell -> RCE -> secrets/lateral (chain terminus); SVG/HTML upload -> stored xss -> admin
takeover; filename control -> path-traversal overwrite; XML-backed upload -> xxe; feeds injection
(processing the file with a shell).
Allowlist expected extensions and validate content (magic bytes / re-encode images) before the file
touches any web-reachable path; discard the client filename and generate a random server-side name; store
outside the webroot or on object storage served from a separate origin with Content-Disposition: attachment
and a safe content-type; disable per-directory config overrides and short-filename generation; enforce
size/count/rate limits; scan for malware; keep image-processing libraries patched.
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-csrfKnowledge base for finding Cross-Site Request Forgery - state-changing requests that rely only on ambient credentials (cookies) with no anti-CSRF token or SameSite protection. Use when hunting CSRF. CWE-352, OWASP A01:2021-Broken Access Control./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.Other plugins' skills for the same job