{"id":13428249,"url":"https://github.com/WebGoat/WebGoat","last_synced_at":"2025-03-16T01:32:17.497Z","repository":{"id":28261575,"uuid":"31771754","full_name":"WebGoat/WebGoat","owner":"WebGoat","description":"WebGoat is a deliberately insecure application","archived":false,"fork":false,"pushed_at":"2025-03-10T09:21:06.000Z","size":104985,"stargazers_count":7325,"open_issues_count":42,"forks_count":6068,"subscribers_count":208,"default_branch":"main","last_synced_at":"2025-03-10T23:38:06.527Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://owasp.org/www-project-webgoat/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebGoat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://owasp.org/donate/?reponame=www-project-webgoat\u0026title=OWASP+WebGoat"}},"created_at":"2015-03-06T14:02:02.000Z","updated_at":"2025-03-10T23:31:42.000Z","dependencies_parsed_at":"2023-02-16T20:30:41.742Z","dependency_job_id":"fbb9bda4-addd-440d-bcd8-5933cb337fc7","html_url":"https://github.com/WebGoat/WebGoat","commit_stats":{"total_commits":2744,"total_committers":162,"mean_commits":"16.938271604938272","dds":0.6807580174927114,"last_synced_commit":"5fc2e0602cbc2e2212e1c419c1794618cc163ed5"},"previous_names":[],"tags_count":77,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebGoat%2FWebGoat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebGoat%2FWebGoat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebGoat%2FWebGoat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebGoat%2FWebGoat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebGoat","download_url":"https://codeload.github.com/WebGoat/WebGoat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814900,"owners_count":20352037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T01:00:50.356Z","updated_at":"2025-03-16T01:32:17.488Z","avatar_url":"https://github.com/WebGoat.png","language":"JavaScript","readme":"# WebGoat: A deliberately insecure Web Application\n\n[![Build](https://github.com/WebGoat/WebGoat/actions/workflows/build.yml/badge.svg?branch=develop)](https://github.com/WebGoat/WebGoat/actions/workflows/build.yml)\n[![java-jdk](https://img.shields.io/badge/java%20jdk-23-green.svg)](https://jdk.java.net/)\n[![OWASP Labs](https://img.shields.io/badge/OWASP-Lab%20project-f7b73c.svg)](https://owasp.org/projects/)\n[![GitHub release](https://img.shields.io/github/release/WebGoat/WebGoat.svg)](https://github.com/WebGoat/WebGoat/releases/latest)\n[![Gitter](https://badges.gitter.im/OWASPWebGoat/community.svg)](https://gitter.im/OWASPWebGoat/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n[![Discussions](https://img.shields.io/github/discussions/WebGoat/WebGoat)](https://github.com/WebGoat/WebGoat/discussions)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits\u0026logoColor=white)](https://conventionalcommits.org)\n\n# Introduction\n\nWebGoat is a deliberately insecure web application maintained by [OWASP](http://www.owasp.org/) designed to teach web\napplication security lessons.\n\nThis program is a demonstration of common server-side application flaws. The\nexercises are intended to be used by people to learn about application security and\npenetration testing techniques.\n\n**WARNING 1:** *While running this program your machine will be extremely\nvulnerable to attack. You should disconnect from the Internet while using\nthis program.*  WebGoat's default configuration binds to localhost to minimize\nthe exposure.\n\n**WARNING 2:** *This program is for educational purposes only. If you attempt\nthese techniques without authorization, you are very likely to get caught. If\nyou are caught engaging in unauthorized hacking, most companies will fire you.\nClaiming that you were doing security research will not work as that is the\nfirst thing that all hackers claim.*\n\n![WebGoat](docs/images/webgoat.png)\n\n# Installation instructions:\n\nFor more details check [the Contribution guide](/CONTRIBUTING.md)\n\n## 1. Run using Docker\n\nAlready have a browser and ZAP and/or Burp installed on your machine in this case you can run the WebGoat image directly using Docker.\n\nEvery release is also published on [DockerHub](https://hub.docker.com/r/webgoat/webgoat).\n\n```shell\ndocker run -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 webgoat/webgoat\n```\n\nFor some lessons you need the container run in the same timezone. For this you can set the TZ environment variable.\nE.g.\n\n```shell\ndocker run -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 -e TZ=America/Boise webgoat/webgoat\n```\n\nIf you want to use OWASP ZAP or another proxy, you can no longer use 127.0.0.1 or localhost. but\nyou can use custom host entries. For example:\n\n```shell\n127.0.0.1 www.webgoat.local www.webwolf.local\n```\n\nThen you can run the container with:\n\n```shell\ndocker 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\n```\n\nThen visit http://www.webgoat.local:8080/WebGoat/ and http://www.webwolf.local:9090/WebWolf/\n\n## 2. Run using Docker with complete Linux Desktop\n\nInstead 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.\n\n```shell\ndocker run -p 127.0.0.1:3000:3000 webgoat/webgoat-desktop\n```\n\n## 3. Standalone\n\nDownload the latest WebGoat release from [https://github.com/WebGoat/WebGoat/releases](https://github.com/WebGoat/WebGoat/releases)\n\n```shell\nexport TZ=Europe/Amsterdam # or your timezone\njava -Dfile.encoding=UTF-8 -jar webgoat-2023.8.jar\n```\n\nClick the link in the log to start WebGoat.\n\n### 3.1 Running on a different port\n\nIf for some reason you want to run WebGoat on a different port, you can do so by adding the following parameter:\n\n```shell\njava -jar webgoat-2023.8.jar --webgoat.port=8001 --webwolf.port=8002\n```\n\nFor a full overview of all the parameters you can use, please check the [WebGoat properties file](webgoat-container/src/main/resources/application-{webgoat, webwolf}.properties).\n\n## 4. Run from the sources\n\n### Prerequisites:\n\n* Java 17 or 21\n* Your favorite IDE\n* Git, or Git support in your IDE\n\nOpen a command shell/window:\n\n```Shell\ngit clone git@github.com:WebGoat/WebGoat.git\n```\n\nNow let's start by compiling the project.\n\n```Shell\ncd WebGoat\ngit checkout \u003c\u003cbranch_name\u003e\u003e\n# On Linux/Mac:\n./mvnw clean install\n\n# On Windows:\n./mvnw.cmd clean install\n\n# Using docker or podman, you can than build the container locally\ndocker build -f Dockerfile . -t webgoat/webgoat\n```\n\nNow we are ready to run the project. WebGoat is using Spring Boot.\n\n```Shell\n# On Linux/Mac:\n./mvnw spring-boot:run\n# On Windows:\n./mvnw.cmd spring-boot:run\n\n```\n\n... you should be running WebGoat on http://localhost:8080/WebGoat momentarily.\n\nNote: The above link will redirect you to login page if you are not logged in. LogIn/Create account to proceed.\n\nTo change the IP address add the following variable to the `WebGoat/webgoat-container/src/main/resources/application.properties` file:\n\n```\nserver.address=x.x.x.x\n```\n\n## 4. Run with custom menu\n\nFor specialist only. There is a way to set up WebGoat with a personalized menu. You can leave out some menu categories or individual lessons by setting certain environment variables.\n\nFor instance running as a jar on a Linux/macOS it will look like this:\n\n```Shell\nexport TZ=Europe/Amsterdam # or your timezone\nexport EXCLUDE_CATEGORIES=\"CLIENT_SIDE,GENERAL,CHALLENGE\"\nexport EXCLUDE_LESSONS=\"SqlInjectionAdvanced,SqlInjectionMitigations\"\njava -jar target/webgoat-2023.8-SNAPSHOT.jar\n```\n\nOr in a docker run it would (once this version is pushed into docker hub) look like this:\n\n```Shell\ndocker run -d -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 -e EXCLUDE_CATEGORIES=\"CLIENT_SIDE,GENERAL,CHALLENGE\" -e EXCLUDE_LESSONS=\"SqlInjectionAdvanced,SqlInjectionMitigations\" webgoat/webgoat\n```\n\n","funding_links":["https://owasp.org/donate/?reponame=www-project-webgoat\u0026title=OWASP+WebGoat"],"categories":["JavaScript","Table of Contents","OWASP Top 10","Java","JavaScript (485)","📚 Learning Resources","Hacking Playground","🔐 Vulnerable APIs","🕸️ Vulnerable Web Applications","Sql","Vulnerable Test Targets","WebGoat: A deliberately insecure Web Application","Programming/Comp Sci/SE Things"],"sub_categories":["Vulnerable Web Application","Beginner-Friendly Resources","Java","Mobile Security Labs","XSS"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWebGoat%2FWebGoat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FWebGoat%2FWebGoat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FWebGoat%2FWebGoat/lists"}