How codingo/nosqlmap works
NoSQLMap is a menu-driven security auditing and exploitation tool for MongoDB/CouchDB services and NoSQL-backed web applications. Users configure a target and request parameters, then choose database attacks, web-application testing, or anonymous-access scanning; the selected handler probes the target and can enumerate or clone data. MongoDB and CouchDB have separate attack adapters, while scanning dispatches to their connection checks. The README also documents an intentionally vulnerable web app for exercising the workflow. Relationships for unsampled features are included only where the README documents them; source excerpts are partial.
Main entry points: nosqlmap.py CLI and menus · nsmscan.py Anonymous access scan · index.html Vulnerable demo app · nsmmongo.py MongoDB attacks
Components 15
Control and options
- CLI and menus
nosqlmap.py - Target options
nosqlmap.py - Exception type
exception.py
Attack workflows
- Web injection tests
nsmweb.py - Anonymous access scan
nsmscan.py
Database adapters
- MongoDB attacks
nsmmongo.py - CouchDB attacks
nsmcouch.py
Vulnerable demo
- Vulnerable demo app
vuln_apps/src/index.html - Account lookup
vuln_apps/src/acct.php - User lookup
vuln_apps/src/userdata.php - Order lookup
vuln_apps/src/orderdata.php - Demo data seeding
vuln_apps/src/populate_db.php - Demo MongoDB
Other components
- Operator
- Target database or web app
Connections 20
- Operator → CLI and menus: starts
README.md - CLI and menus → Target options: configures
nosqlmap.py - Operator → Target options: sets
README.md - CLI and menus → Web injection tests: dispatches
nosqlmap.py - CLI and menus → MongoDB attacks: dispatches
nosqlmap.py - CLI and menus → CouchDB attacks: dispatches
nosqlmap.py - CLI and menus → Anonymous access scan: dispatches
nosqlmap.py - Web injection tests → Target database or web app: probes
README.md - MongoDB attacks → Target database or web app: attacks
README.md - CouchDB attacks → Target database or web app: attacks
README.md - Anonymous access scan → MongoDB attacks: checks MongoDB
nsmscan.py - Anonymous access scan → CouchDB attacks: checks CouchDB
nsmscan.py - Anonymous access scan → Target database or web app: scans
README.md - Vulnerable demo app → Account lookup: links to
- Vulnerable demo app → User lookup: links to
- Vulnerable demo app → Order lookup: links to
- Account lookup → Demo MongoDB: queries
vuln_apps/src/acct.php - User lookup → Demo MongoDB: queries
vuln_apps/src/userdata.php - Order lookup → Demo MongoDB: queries
vuln_apps/src/orderdata.php - Demo data seeding → Demo MongoDB: seeds
vuln_apps/src/populate_db.php