WebGoat /WebGoat

WebGoat is a deliberately insecure application

★ 9,484⑂ 8,119👁 206⑃ 1,719● 839▤ 17
JavaScriptNOASSERTIONCreated 2015-03-06owasp.org/www-project-webgoat/
Download: v2026.5v2026.5 ↓2026.52026-10-12
+3
Daily
9,484
stars
8,119
forks
206
watchers
1,719
prs
839
issues
17
releases

README

WebGoat: A deliberately insecure Web Application









 Introduction

WebGoat is a deliberately insecure web application maintained by OWASP designed to teach web
application security lessons.

This program is a demonstration of common server-side application flaws. The
exercises are intended to be used by people to learn about application security and
penetration testing techniques.

WARNING 1: While running this program your machine will be extremely
vulnerable to attack. You should disconnect from the Internet while using
this program.  WebGoat's default configuration binds to localhost to minimize
the exposure.

WARNING 2: This program is for educational purposes only. If you attempt
these techniques without authorization, you are very likely to get caught. If
you are caught engaging in unauthorized hacking, most companies will fire you.
Claiming that you were doing security research will not work as that is the
first thing that all hackers claim.

!WebGoat

 Installation instructions:

For more details check the Contribution guide

 1. Run using Docker

Already have a browser and ZAP and/or Burp installed on your machine in this case you can run the WebGoat image directly using Docker.

Every release is also published on DockerHub.

shell
docker run -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 webgoat/webgoat


For some lessons you need the container run in the same timezone. For this you can set the TZ environment variable.
E.g.

shell
docker run -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 -e TZ=America/Boise webgoat/webgoat


If you want to use OWASP ZAP or another proxy, you can no longer use 127.0.0.1 or localhost. but
you can use custom host entries. For example:

shell
127.0.0.1 www.webgoat.local www.webwolf.local


Then you can run the container with:

shell
docker run -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 -e WEBGOAT_HOST=www.webgoat.local -e WEBWOLF_HOST=www.webwolf.local -e TZ=America/Boise webgoat/webgoat


Then visit http://www.webgoat.local:8080/WebGoat/ and http://www.webwolf.local:9090/WebWolf/

 2. Run using Docker with complete Linux Desktop

Instead of installing tools locally we have a complete Docker image based on running a desktop in your browser. This way you only have to run a Docker image which will give you the best user experience.

shell
docker run -p 127.0.0.1:3000:3000 webgoat/webgoat-desktop


 3. Standalone

Download the latest WebGoat release from https://github.com/WebGoat/WebGoat/releases

shell
export TZ=Europe/Amsterdam  or your timezone
java -Dfile.encoding=UTF-8 -jar webgoat-2023.8.jar


Click the link in the log to start WebGoat.

 3.1 Running on a different port

If for some reason you want to run WebGoat on a different port, you can do so by adding the following parameter:

shell
java -jar webgoat-2023.8.jar --webgoat.port=8001 --webwolf.port=8002


In the combined JAR, --server.port is an alias for --webgoat.port. Use --webwolf.port to set
WebWolf's port separately.

For the

Top issues

Discussions

Latest release

v2026.5 v2026.5 2026-10-12
What's Changed
 chore: back to snapshot after v2026.4 by @github-actions[bot] in https://github.com/WebGoat/WebGoat/pull/2540
 chore: bump com.diffplug.spotless:spotless-maven-plugin from 3.10.1 to 3.10.2 by @dependabot[bot] in https://github.com/WebGoat/WebGoat/pull/2536
 test(xxe): use deterministic entity targets by @nbaars in https://github.com/WebGoat/WebGoat/pull/2547
 chore: bump com.auth0:java-jwt from 4.6.0 to 4.6.1 by @dependabot[bot] in https://github.com/WebGoat/WebGoat/pull/2538
 feat(cryptography): add HMAC timing attack lesson by @nbaars in https://github.com/WebGoat/WebGoat/pul

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON