Skip to content

Commit a649089

Browse files
Update README.md
1 parent 94ed30e commit a649089

File tree

1 file changed

+4
-73
lines changed

1 file changed

+4
-73
lines changed

README.md

+4-73
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,6 @@
1-
This is a "Vulnerable" Web Application developed by Cyber Security and Privacy Foundation(www.cysecurity.org). This app is intended for the Java Programmers and other people who wish to learn about Web application vulnerabilities and write secure code.
1+
This is a fork of a sample vulnerable java application developed by Cyber Security and Privacy Foundation.
2+
The only modification done is updating the Maven source & target to 1.6. Change that if you are using newer/older Maven.
23

3-
**The full course content is now available on Github for free:**
4-
5-
https://github.com/CSPF-Founder/JavaSecurityCourse
6-
7-
8-
**The full course on Hacking and Securing Web Java Programs is available in**
9-
10-
https://www.udemy.com/hacking-securing-java-web-programming/
11-
12-
**Warning**: Don't run this app in Your Main Machine or in an online server. Install it in Vitual Machine.
13-
14-
15-
How to Use/Setup ?
16-
-------------
17-
18-
**Method 1.Super Very Easiest Method: Docker**
19-
The easiest way to use Java Vulnerable is using Docker which set up everything for you with 1 command line
20-
21-
Steps:
22-
23-
1. Install Docker: https://docs.docker.com/engine/installation/
24-
2. Install docker-compose: https://docs.docker.com/compose/install/
25-
3. Inside this directory, run `sudo docker-compose up` and wait untill everything is configured for you.
26-
4. In your Browser, go to "http://localhost:8080/JavaVulnerableLab/install.jsp
27-
5. Change the JDBC URL from jdbc:mysql://localhost:3306 to jdbc:mysql://mysql:3306
28-
6. Click the Install Button
29-
7. Enjoy :)
30-
31-
32-
**Method 2.Very Easiest Method : VirtualBox VM**
33-
The second most easiest way to use Java Vulnerable is using the VirtualBox VM which has everything set up and ready to use.
34-
35-
Steps:
36-
37-
1. Install the VirtualBox : https://www.virtualbox.org/wiki/Downloads
38-
2. Download the VM Image from here : http://sourceforge.net/projects/javavulnerablelab/files/v0.1/JavaVulnerableLab.ova/download
39-
3. Import the JavaVulnerable.ova into VirtualBox.
40-
4. Change the Network Settings to Host-Only Network
41-
5. Start the Machine and Log into the Machine( Credentials; username: root password: cspf)
42-
6. Start Tomcat by entering "service tomcat start" in the Terminal
43-
7. Start mysql by entering "service mysql start" in the Terminal
44-
8. Find the IP Address of Machine
45-
9. In your Browser, go to "http://[IP_ADDRESS_OF_VM]:8080/JavaVulnerableLab/install.jsp
46-
10. Click the Install Button
47-
11. Enjoy :)
48-
49-
**Method 3.Easiest Method : Standalone Web Application**
50-
In this mehtod, you will be running an executable "JAR" file which runs the application with an embedded Apache Tomcat.
51-
52-
Steps:
53-
54-
1. Install JDK
55-
2. Download Executable Jar from here: http://sourceforge.net/projects/javavulnerablelab/files/v0.2/JavaVulnerableLab.jar/download
56-
3. Double Click the JavaVulnerable.jar to run( if double click is not working, run this command "java -jar JavaVulnerable.jar" in your Terminal or CMD)
57-
4. In your Browser, go to "http://localhost:8080/JavaVulnerableLab/install.jsp
58-
5. Click the Install Button
59-
60-
**Method 4. Using War file:**
61-
This is a NORMAL method to deploy the WAR file.
62-
63-
Steps:
64-
65-
1. Install Apache Tomcat server
66-
2. Go to http://[Tomcat_INSTALLED_IP]:8080/manager/ (make sure you have modified tomcat-users.xml file of the tomcat to allow the manager).
67-
3. Download our WAR file from here: https://sourceforge.net/projects/javavulnerablelab/files/latest/JavaVulnerableLab.war/download
68-
4. Deploy the WAR in Apache Tomcat manager.
69-
5. Go to http://[Tomcat_INSTALLED_IP]:8080/JavaVulnerableLab/install.jsp
70-
6. Click the Install Button
71-
72-
73-
Get the VulnerableSpring Project from here:
74-
https://github.com/CSPF-Founder/VulnerableSpring
4+
You can scan it by SNYK, by simply creating your own fork and adding by adding a project from the SNYK dashboard.
755

6+
To scan the application with Coverity Scan you would need to build it with the coverity scan build tool for java. For the installer and instructions how to build visit https://scan.coverity.com/download?tab=java

0 commit comments

Comments
 (0)