hunt-nosqli

Tests web applications for NoSQL injection vulnerabilities across MongoDB, CouchDB, Redis, and Elasticsearch.

10|3|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/baiqigo/baiqi-redteam-lab --skill hunt-nosqli-baiqigo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-nosqli
Source: https://github.com/baiqigo/baiqi-redteam-lab/tree/main/.agents/skills/hunt-nosqli
Command: npx skills add https://github.com/baiqigo/baiqi-redteam-lab --skill hunt-nosqli-baiqigo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Security testers need a structured methodology to find and validate NoSQL injection flaws in applications backed by MongoDB, CouchDB, Redis, or Elasticsearch, where traditional SQL injection techniques do not apply. ## Core Features & Use Cases - Auth Bypass Testing: Provides MongoDB operator injection payloads ($gt, $ne, $regex, $in) for JSON bodies and URL parameters to test login endpoints. - Blind Injection & Data Exfiltration: Covers $where time-based detection and character-by-character regex enumeration of usernames and documents. - Redis & Elasticsearch Chains: Documents SSRF-to-Redis escalation via gopher://, CONFIG SET, SLAVEOF, and Elasticsearch script injection paths. - Use Case: During an authorized bug bounty engagement against a Node.js/Express API, use the phased methodology to confirm a MongoDB auth bypass, validate it with a session token, and classify severity for the report. ## Quick Start Use the hunt-nosqli skill to plan an evidence-gated, authorized NoSQL injection test against the target login endpoint.

Frequently Asked Questions about hunt-nosqli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test for MongoDB injection in a login endpoint?

Send operator injection payloads in the JSON body, such as {"username": {"$gt": ""}, "password": {"$gt": ""}}, to test whether the server passes objects into the query. Also try URL parameter forms like username[$gt]= for Express-style parsers.

How to detect blind NoSQL injection with $where?

Submit a $where clause containing a time-delay loop, such as a JavaScript function that spins for 5 seconds. If the response consistently takes 5 or more seconds, $where evaluation is enabled and blind injection is confirmed.

What tools automate NoSQL injection testing?

The methodology references nosqlmap, installed via pip3, which automates attack and data extraction phases against a target URL. Manual curl payloads remain necessary for confirming specific operators and chains.

Can NoSQL injection lead to Redis exploitation?

Yes, when SSRF is present, internal Redis on port 6379 can be reached via gopher:// URLs to issue commands like FLUSHALL, CONFIG SET, or SLAVEOF. This can escalate to webshell writes or out-of-band data exfiltration if Redis has file system access.

What severity does a NoSQL auth bypass receive?

An auth bypass that logs in as an administrator is rated Critical, a full user collection dump is High, and blind injection without useful exfiltration is Medium. Validation requires a valid session token or unauthorized data in the response.