entrovyx/hermes-agent-offsec/hunt-nosqli
Claude Code and agent skill by entrovyx/hermes-agent-offsec
- community
Checking that the SKILL.md file is still in the repository.
Hunt NoSQL Injection — MongoDB operator injection ($where, $regex, $gt, $ne), CouchDB, Redis command injection, auth bypass via NoSQLi, data dump. Use when target uses MongoDB/Mongoose, CouchDB, Redis, or shows NoSQL error messages.
Install
npx vskill@latest install entrovyx/hermes-agent-offsec/hunt-nosqliSKILL.md
The same SKILL.md was published earlier as wyl-cmd/kxns-cli/hunt-nosqli.
HUNT-NOSQLI — NoSQL Injection
Crown Jewel Targets
NoSQL injection is most valuable when it bypasses authentication (Critical) or leaks the entire user collection (High).
Highest-value chains:
- MongoDB auth bypass —
{"username": {"$gt": ""}, "password": {"$gt": ""}}logs in as first user in collection (usually admin) - $where JS injection — if $where is enabled: blind injection → data exfil
- Redis command injection — via SSRF or direct TCP, SLAVEOF attacker-ip → config write → webshell
- Elasticsearch injection — _search endpoint with Groovy script injection (pre-5.0) → RCE
Attack Surface Signals
URL & Param Patterns
Stack Signals
| Signal | Vector | |
|---|---|---|
| MongoDB error messages in response | Operator injection | |
| mongoose / monk in JS bundles | ODM patterns | |
| X-Powered-By: Express | Node.js + MongoDB common stack | |
| CouchDB/_utils UI exposed | Futon/Fauxton admin | |
| Redis port 6379 open (via SSRF) | CONFIG SET / SLAVEOF | |
| Elasticsearch :9200 open | Script injection |
Step-by-Step Hunting Methodology
Phase 1 — Auth Bypass (MongoDB)
Phase 2 — URL Parameter Injection
Phase 3 — $where Blind Injection (time-based)
Phase 4 — Data Dump via Regex
Phase 5 — Automation
Phase 6 — Redis via SSRF
Bypass Table
| Defense | Bypass | |
|---|---|---|
| JSON.parse rejects objects | Use array: password[$ne]=x (URL params) | |
Sanitizes $ | Unicode: $gt | |
| Blocks operator keys | Nested objects deeper in structure |
Chain Table
| NoSQLi finding | Chain to | Impact | |
|---|---|---|---|
| Auth bypass | Admin panel access | Full admin control | |
| User enum via regex | Credential stuffing | Mass ATO | |
| $where enabled | Arbitrary JS in DB process | Data exfil or DoS | |
| Redis via SSRF | CONFIG SET / SLAVEOF | Webshell or data exfil |
Validation
✅ Auth bypass: logged in without valid credentials, received valid session token ✅ Data dump: returned users/documents you shouldn't have access to ✅ Blind injection: confirmed via time-delay (>4 seconds consistent)
Severity:
- Auth bypass as admin: Critical
- User collection dump: High
- Blind injection (no useful exfil): Medium
Related Skills
- `hunt-sqli` — Traditional SQL injection complements NoSQL; test both on the same parameter. Chain primitive: param accepts both SQL
' OR 1=1--and NoSQL{$gt:""}— test SQL first, then NoSQL operator injection. - `hunt-auth-bypass` — NoSQLi login bypass (
{\"$ne\":\"\"}) is an auth-bypass primitive, not a data-read. Chain primitive: NoSQLi$gtbypass → admin panel → chain to further privilege escalation. - `hunt-ssrf` — Redis via SSRF is the canonical NoSQL-injection-to-RCE path. Chain primitive: SSRF →
gopher://redis:6379/_CONFIG SET...→ cron write → RCE. - `hunt-rce` —
$whereJavaScript injection in MongoDB can reachchild_processif the DB process has JS engine access. Chain primitive:$wherewith sleep(5000) confirm → data exfil via JSthis.password→ admin hash crack. - `security-arsenal` — Pull the NoSQL payload tree:
$gt,$ne,$regex,$nin,$where,$existsoperators, MongoDB auth-bypass JSON, PHP array injectionparam[$regex]=.*patterns. - `triage-validation` — Apply the Pre-Severity Gate. A NoSQL auth bypass that only logs in as the first user in a collection (usually a test/admin account) is Critical; one that logs in as a random user may be Medium if you can't target a specific victim.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/offsec/redteam/hunt-nosqli/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/entrovyx/hermes-agent-offsec/hunt-nosqli)