nosql-injection
Detect and exploit NoSQL injection in MongoDB, CouchDB, and Elasticsearch-backed applications
от VigilOSS★ 35 звёзд на GitHub
Установить nosql-injection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
NoSQL Injection Testing
When to Activate
- JSON APIs or query strings feed a document store (Mongo/Mongoose behind Express is the main target; CouchDB and Elasticsearch also), especially login, search, filter and bulk endpoints.
The game is operator injection through type confusion: an object arrives where the code expects
a string. If the database is unknown, start with Mongo operator probes: they confirm or rule out
quickly. Server-side JavaScript ($where, $function, $accumulator) still exists in MongoDB
but is deprecated in 8.0 and is off where javascriptEnabled: false.
--technique NOSQLI; deliver via vigil assess kali exec --technique NOSQLI --intent "<purpose>" --probe-kind payload --phase consume-test --timeout 30 -- curl …. Operators, auth-bypass
shapes, $regex length/character extraction, $where timing, $exists/$type, WAF bypasses:
agent/references/payloads/nosql-injection-payloads.md. Seed variants with
vigil assess classify-payload <value> --mutations; rank boolean populations with
vigil assess anomaly-score <responses.jsonl>.
Where the bypasses are
- Content-type switch (the most effective): apps that sanitise form fields often pass
express.json()bodies straight to the query, so{"password": {"$gt": ""}}becomes a real operator object. Retest every parameter in both encodings. qsbrackets onreq.query:?username[$ne]=&role[$ne]=,password[$regex]=^a& password[$options]=icreate operator objects even on "flat" filter parameters.app.set('query parser', 'simple')stops this for the query string only; the JSON body still parses.- Defence gaps:
mongo-sanitizecovers only the object passed to it (sanitisedreq.body, unsanitisedreq.query) and does not stop a value passed whole to$where; Mongoosestrictgoverns writes, not query filters on defined fields. Type checks (typeof … !== 'string') are the real fix, and are often missing on search, filter and bulk endpoints even when login has them. - Prototype pollution chain: a polluted
Object.prototypeoperator key flows into later query objects (agent/skills/prototype-pollution/SKILL.md). $wheretiming blocks a Mongo query thread: short delays, sparingly, because it degrades a shared database.- CouchDB:
/_utils/(Fauxton),/_all_dbs,/<db>/_all_docs?include_docs=true, Mango_findselectors with$regex, user input in view map functions. Configuration lives at/_node/<node>/_configand 3.x has no admin party; creating an admin is a persistent change that needs operator approval (agent/shared-constraints.md§1). - Elasticsearch: if
search=*widens results or_exists_:<field>changes them, Lucene syntax is live; switch toagent/skills/elasticsearch-injection/SKILL.md.
What to Record
Injection point (endpoint, parameter, the content-type variant that worked), the operator syntax
accepted, extraction rate and feasibility, version indicators, and the attacker outcome
(agent/rules/hunting.md §2): the session gained through the bypass and what it reaches, or the
recovered secret shown to work through the normal flow. Severity:
agent/references/finding-fp-and-severity-gate.md; format:
agent/references/runtime-guides/web-finding-recording.md. Slow or rate-limited blind extraction
is still a confirmed injection: record it with the remaining extraction as the next test.
Kill and escalate
- Type validation on every parameter (objects and arrays rejected) → move on, with the negative
bracketed per
agent/rules/hunting.md§13. - A confirmed auth bypass on one route → walk every operator against every auth-surface parameter (password reset, 2FA verify), not stop.
- Escalate when:
{"$ne": null}orfield[$ne]=xdiffers from the literal string; always-true vs always-false operators change length or count; a JSON body is accepted where form data was expected (or the reverse);$regexbacktracking or$whereproduces a timing delta.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл nosql-injection?
Detect and exploit NoSQL injection in MongoDB, CouchDB, and Elasticsearch-backed applications
Как установить скилл nosql-injection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл nosql-injection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…