(based on https://github.com/julianjupiter/java-web-app-with-embedded-tomcat)
This is a simple web application in Java with Apache Tomcat and other dependencies embedded in a JAR. This is used as showcase for root360 deployments.
git clone https://github.com/julianjupiter/java-web-app-with-embedded-tomcat
cd simple-java-web-app
mvn clean package && bash run.sh
Open your browser: http://localhost:8080/
- build app
git clone https://github.com/julianjupiter/java-web-app-with-embedded-tomcat cd simple-java-web-app bash release.sh target-version # e.g. bash release.sh v1.0.1 - upload generated jar file from target/ to Github Releases
This project used pre-commit to run some code checks on every commit.
- install pre-commit
pip install pre-commit - activate pre-commit
pre-commit install - commit your changes
For internal testing within this branch is an application version that is affected by log4shell. To run the test:
- get ID from Huntress
- set environment variable
LOGGING_CHECK:export LOGGING_CHECK="ID-from-Huntress" - set environment variable
LOGGING_CHECK_45046to check for CVE-2021-45046:export LOGGING_CHECK_45046="\${jndi:ldap://log4shell.huntress.com:1389/ID-from-Huntress}" - run app:
bash run.sh - check the Huntress results