Vulnerable JavaScript application is developed for web application penetration testers, developers and secure code review. It can be easily deployed using docker or by manual install complete steps are provided below. this application will help you in learning how to find vulnerabilities in web applicaiton using black box, white box approach and in learning how to fix them.
- Black box testing: Deploy the appplication using docker and start solving the exercises.
- Secure code review: Manually install the application this will allow you to use debugger while solving the exercises and will help you in finding vulnerabilities in application code.
- Developers: Identify vulnerabilities in application code & try to fix them.
- NodeJS
- Application design pattern: MVC
- Web framework: Express
- Template Engine: EJS
- SQL Database: MySQL
- NoSQL Database: MongoDB
- React to cover ReactJS exercise
- JWT for authentication
- GraphQL
- Socket.IO
- Docker
- Command Injection
- Insecure Deserialization
- SQL Injection
- XML external entity injection
- XSS
- Server Side Template Injection
- JWT weak secret
- Insecure direct object references
- SSRF via PDF generator
- postMessage XSS
- postMessage CSRF
- CORS Information Disclosure
- CORS CSRF
- 2FA Insecure Implementation
- Cross-Site WebSocket Hijacking
- ReactJS href XSS
- GraphQL SQL Injection
- GraphQL CSRF
- GraphQL IDOR
- XSS using SVG file uplaod
- Clone the repository.
git clone https://github.com/agarwal-prakhar/Vulnerable-JavaScript-Application.git
cd ./Vulnerable-JavaScript-Application
- Download and build the image.
docker-compose up --build -d
- Start the application.
docker-compose up -d # Remove -d flag if you want to see logs
access the application http://localhost:9000
- Clone the repository.
git clone https://github.com/agarwal-prakhar/Vulnerable-JavaScript-Application.git
cd ./Vulnerable-JavaScript-Application
- Create MySQL database.
$ mysql -u <mysql_user> -p
mysql> create database vuln_js_app;
- Update your MySQL and MongoDB database username and password inside .env file.
DB_PORT=3306
DB_NAME=vuln_js_app
DB_USER=vuln_js_user
DB_PASS=passw0rd
HOST_PORT=9000
JWT_SECRET=secret
MONGODB_SERVER=localhost
MONGODB_ADMINUSERNAME=
MONGODB_ADMINPASSWORD=
- Install dependencies.
npm install
- Build React frontend.
npm run build
- Start the server
node server.js
You can now access the application at http://localhost:9000