Skip to content

Chihab357/NoSQL-Injections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ NoSQL Injection Demonstration 🚨

Educational Purpose Only


Hacker GIF

πŸ“‹ Project Overview

This project demonstrates the vulnerability of NoSQL databases, focusing on MongoDB when used with a Node.js application. It highlights how attackers can bypass authentication using improperly validated inputs.

πŸ’‘ Key Learning Points:

  • Exploit NoSQL Injection using special MongoDB operators like $gt and $or.
  • Demonstrate how unsecured queries can alter logic.
  • Showcase mitigation strategies to secure your app.

πŸš€ Tech Stack

  • Backend: Node.js
  • Database: MongoDB
  • Testing Tool: Postman

βš™οΈ How It Works

  1. Setup: Create a database demo with a users collection containing username and password fields.
  2. Attack: Use Postman to send specially crafted JSON payloads with MongoDB operators like:
    { "username": { "$gt": "" }, "password": { "$gt": "" } }

About

Demonstration of NoSQL Vulnerabilities

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published