Skip to content
Open dashboard (opens in a new tab)

Resources

Java example applications

A Spring Boot application. Before you start, see Before you start.

  • What it is: a Spring Boot web application and API that is vulnerable by design.
  • Source: github.com/vulnerable-apps/javaspringvulny
  • Login: username user, password password. On the login page, choose Form Auth.
Terminal window
git clone https://github.com/vulnerable-apps/javaspringvulny.git
cd javaspringvulny
# Start the application
docker compose up -d
APP=javaspringvulny-api
URL=https://localhost:9000
# Create an API application and build its specification from the code
nightvision target create $APP $URL --type api
nightvision openapi extract . --target $APP --lang java
# Record the login: user / password, with Form Auth
nightvision auth playwright create $APP $URL
# Scan, signed in
nightvision scan $APP --auth $APP

The application serves HTTPS with a self-signed certificate. Accept the browser warning when you record the login.

For the frameworks Source intelligence reads in Java, see Java frameworks.