Resources
JavaScript example applications
Two Node.js applications. Before you start, see Before you start.
vuln_node_express
Section titled “vuln_node_express”- What it is: a small vulnerable Express service.
- Source: github.com/vulnerable-apps/vuln_node_express
- Expect to find: cross-site scripting and SQL injection.
- Login: none.
git clone https://github.com/vulnerable-apps/vuln_node_expresscd vuln_node_express
# Start the applicationdocker compose up -d
# Create a web application and scanAPP=vuln-node-expressnightvision target create $APP http://localhost:3000 --type webnightvision scan $APPOWASP Juice Shop
Section titled “OWASP Juice Shop”- What it is: a modern single-page application with an Express API, and a common benchmark for web scanners.
- Source: github.com/juice-shop/juice-shop
- Login: username
admin@juice-sh.op, passwordadmin123.
git clone https://github.com/juice-shop/juice-shop.git --depth=1cd juice-shop
# Start the application from the published imagedocker run --rm -d -p 3000:3000 bkimminich/juice-shop
APP=juice-shopURL=http://localhost:3000
# Create an API application and build its specification from the codenightvision target create $APP $URL --type apinightvision openapi extract . --target $APP --lang js
# Record the login: admin@juice-sh.op / admin123nightvision auth playwright create $APP $URL
# Scan, signed innightvision scan $APP --auth $APPBoth examples use port 3000. Stop one before you start the other.
For the frameworks Source intelligence reads in JavaScript and TypeScript, see JavaScript frameworks.