Skip to content
Back to skills

Nosql Injection

ASecurity

NoSQL injection — MongoDB and document/KV stores. Operator injection (JSON and param-array), authentication bypass, blind boolean/regex extraction, and server-side JS execution (//mapReduce). Tier 1. Payloads: payloads/nosql.md. Use when input reaches a NoSQL query (JSON APIs, Mongo/Express/PHP backends).

  • 16 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 17, 2026
securitygophpsqlexpressapibackend

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill nosql-injection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nosql Injection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nosql Injection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-nosql-injection/badge)](https://www.skillsdirectory.com/skills/anandjogawade-nosql-injection)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nosql-injection
description: "NoSQL injection — MongoDB and document/KV stores. Operator injection (JSON and param-array), authentication bypass, blind boolean/regex extraction, and server-side JS execution (//mapReduce). Tier 1. Payloads: payloads/nosql.md. Use when input reaches a NoSQL query (JSON APIs, Mongo/Express/PHP backends)."
---

# NoSQL Injection

Operator and type-juggling injection into document queries. Inject in JSON values **and keys**, and in string contexts. Payloads: `${CLAUDE_PLUGIN_ROOT}/payloads/nosql.md`.

## Trigger phrases
`nosql injection, mongodb injection, $ne, $where, $regex, operator injection, nosqli`

## Method
1. **Auth bypass:** `{"user":"admin","pass":{"$ne":null}}`, `{"user":{"$gt":""},"pass":{"$gt":""}}`; query-string array form `user[$ne]=x&pass[$ne]=x`.
2. **Type juggling / WAF bypass:** switch form↔JSON; arrays/objects where strings expected — often evades WAFs.
3. **Blind extraction:** `{"pass":{"$regex":"^a"}}` — binary-search each char by response diff.
4. **Server-side JS (misconfig):** `{"$where":"sleep(5000)"}` (time-blind), `$where`/`$function`/`$accumulator`/mapReduce for JS exec → potential RCE.
5. **Modern:** duplicate-JSON-key precondition-strip; Mongoose bypass classes (verify version, e.g. CVE-2025-23061-style).

## Escalation
Auth bypass → account access; $where JS → data exfil/RCE on misconfigured instances.

## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP) or headless browser for client-side; Windows-local last resort. If a Burp MCP is present, route requests through Burp proxy for visibility and send manual PoCs to Repeater (see `zazy-orchestrator`).

## Verification (background, before reporting)
Re-confirm independently (second payload/tool/vantage or OAST callback) and reproduce before marking CONFIRMED. For blind cases use OAST (Collaborator/interactsh) before concluding negative. Report true positives only.

## Evidence
The injected query/operator, the bypass/extraction result, and (for $where) the execution proof. Use OAST/time for blind.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.