A Docker-based solution to run the JavaVulnerableLab for the TUD Cyber Security course
- Install and run Docker Desktop
- Initialize submodules:
git submodule update --init --recursive
Run docker compose up
Run: docker compose down
- Open: http://localhost:8080/JavaVulnerableLab/install.jsp
- Replace the JDBC URL String with
jdbc:mysql://mysql:3306/abc
- Click Install
The above configuration starts the JavaVulnerableLab in debug mode by default. To connect to it:
- Open the project in IntelliJ
- Select Run -> Edit Configurations...
- Select + -> Add New Configuration -> Remote JVM Debug
- Select Debugger Mode -> Attach to remote JVM
- Select Transport -> Socket
- Select Host -> localhost
- Select Port -> 8000
- Select JDK 9 or later beside Command line arguments for remote JVM
- Select Use module classpath -> java-vulnerable-lab
- Select "Ok"
Install and run MySQL Workbench
- Select + beside MySQL Connections
- Select Connection Name -> tud-cybersec-java-lab
- Select Username -> root
- Select Store in Vault ... -> Password -> root -> Ok
- Select Ok
With MySQL Workbench open, after completing the Install Data step above
Execute Query:
USE `abc`;
SHOW TABLES;
Should return:
cards
FilesList
Messages
posts
tdata
UserMessages
users
Execute Query:
USE `trump`;
SHOW TABLES;
Should return:
carddetail
posts
users