injection
Skill20 starsChanged 4 months agoMITView on GitHub
Detects SQL, command, and template injection caused by user input reaching an
- Deletes or force-pushes
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Kur1sulab/blackboxtheir own version, first seen Aug 12, 2026
- scholarly360/owasp-top10-web-skillstheir own version, first seen Apr 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- scholarly360/owasp-top10-web-skills★ 23same name
- Kur1sulab/blackbox★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository52 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- authentication-failuresSkill
- broken-access-controlSkill
- concurrency-correctnessSkill
- contract-reviewSkill
- cryptographic-failuresSkill
- crypto-library-misuseSkill
- csrfSkill
- exceptional-conditionsSkill
- excessive-agencySkill
- file-uploadSkill
- graphql-securitySkill
- hardcoded-secretsSkill
- header-injectionSkill
- hotspotsSkill
- insecure-designSkill
- insecure-local-storageSkill
- insecure-output-handlingSkill
- insecure-plugin-designSkill
- integrity-failuresSkill
- ipc-securitySkill
- llm-supply-chainSkill
- logging-failuresSkill
- mass-assignmentSkill
- mcp-securitySkill
- memory-api-misuseSkill
- model-dosSkill
- model-theftSkill
- multi-agent-trustSkill
- nosql-injectionSkill
- numeric-trust-boundarySkill
- oauth-implementationSkill
- open-redirectSkill
- overrelianceSkill
- path-traversalSkill
- privilege-handlingSkill
- prompt-injectionSkill
- prototype-pollutionSkill
- pr-reviewSkill
- race-conditionSkill
- rag-securitySkill
- redosSkill
- security-cleanupSkill
- security-misconfigurationSkill
- security-reviewSkill
- sensitive-disclosureSkill
- ssrfSkill
- supply-chainSkill
- threat-modelSkill
- token-smugglingSkill
- training-data-poisoningSkill
- unsafe-api-consumptionSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
SQL: use parameterized queries or an ORM — never concatenate user input into query strings
- Distinctive: line 33
eval/exec: remove entirely — there is no safe way to evaluate user-supplied code strings
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Injection Security Check (A05:2025)
What this checks
Protects against SQL, command, and template injection caused by passing
user-controlled data to an interpreter without sanitization. Exploitation leads to
full database read/write, remote code execution, and data exfiltration.
For NoSQL-specific injection (MongoDB operator injection, $where), see nosql-injection.
Vulnerable patterns
"SELECT * FROM users WHERE id = " + userId— user input concatenated into SQLexec("convert " + filename)— shell expansion allows; rm -rf /eval(userInput)— arbitrary code execution from user-supplied stringTemplate("Hello " + name)— template body built from user input
Fix immediately
For each vulnerable call site, apply the appropriate control:
- SQL: use parameterized queries or an ORM — never concatenate user input into query strings
- Shell: pass arguments as an array/list, never as an interpolated string — disable shell expansion
- Templates: use an engine that autoescapes by default and pass user values through the parameter interface. Python:
Environment(autoescape=True)(bool literal, notselect_autoescape()withfrom_string()). Go:html/template, nevertext/templatefor HTTP output. Java FreeMarker:cfg.setOutputFormat(HTMLOutputFormat.INSTANCE). Rust:handlebars(escapes by default). Never build the template body from user input. - eval/exec: remove entirely — there is no safe way to evaluate user-supplied code strings
Flag the vulnerable call site, explain the risk and the correct fix pattern, then continue with the original task.
Verification
Confirm the following properties hold (language-agnostic):
- User-controlled values reach SQL only as bound parameters — never via string interpolation, concatenation, or format strings
- User-controlled values reach subprocess execution only as discrete argument list elements — never via a shell string or interpolated command string
- No dynamic evaluation of user-supplied strings as code (Python
eval/exec, JSeval/new Function, etc. removed — not replaced with a safer-looking variant of the same function) - Templates use an engine where HTML autoescaping is either enabled explicitly or is the documented default (Flask
render_template, Gohtml/template, Rusthandlebars, Jinja2Environment(autoescape=True)— NOT Jinja2Template()direct, NOT Gotext/template), and user values are passed through the engine's parameter interface — never by building the template body from user input
References
- CWE-89 (SQL Injection)
- CWE-78 (OS Command Injection)
- CWE-94 (Code Injection)
- OWASP A05:2025 Injection
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.

