Skip to content

leihehehe/nodejs-vul-labs

Repository files navigation

Node.js vulnerability labs

A vulnerable web application with defined vulnerabilities of Node.js.

This application is implemented by Node.js+Angular+Mongoose(Mongodb)

Screenshots

There are currently 6 labs, previews are shown below

Lab1

screenshot1

Lab2

screenshot2

Lab3

screenshot2

Lab4

screenshot2

Lab5

screenshot2

Lab6

screenshot2

Install&Usage

Method 1:Docker

Installation

cd nodejs-vul-labs-main

docker-compose up

Run

Access the labs: http://localhost:8888

Method 2:Local Installation

Required Environment

Node.js

npm install -g @angular/cli

mongoDB

Installation

cd nodejs-vul-labs-main

Download dependencies: npm i

Generate UI:ng build

Usage:

First you need to launch mongoDB(mongodb://localhost:27017)

node main.js

Access the labs: http://localhost:8888

Initialize the database

If you are running this application for the first time, please first initialize the database.

screenshot2

Summary

Lab Name Vulnerability
Lab 1:Call Bomber Command Injection
Lab 2:Premium Content NoSql injection
Lab 3:The Website is Under Maintenance JavaScript feature
Lab 4:Voting System JavaScript feature
Lab 5:The Latest Premium Content JavaScript prototype pollution
Lab 6:Join Cybersecurity Team HTTP parameter pollution+Node.js feature