A cybersecurity study plan becomes more useful when you can connect an explanation to something you observe.

A local web security lab gives you a place to practise, make mistakes, and investigate application behaviour without experimenting on somebody else’s website.

This guide helps you start OWASP WebGoat, explore a beginner exercise, and turn your observations into useful notes.

What is WebGoat?

WebGoat is an intentionally vulnerable application maintained by OWASP for learning web application security.

Its lessons help you explore insecure behaviour and consider how an application should prevent it.

WebWolf is a companion application used by some exercises.

Keep this walkthrough limited to your own local lab. Do not expose WebGoat through public hosting or router port forwarding. OWASP recommends disconnecting from the internet while using it, so download the required image before doing so.

Before you start

You need:

  • A modern browser.

  • A terminal.

  • A current Docker installation capable of running Linux containers.

Docker Desktop is one option on Windows or macOS. Follow Docker’s installation instructions for your operating system.

The commands below can run in PowerShell, a Linux shell, or a macOS terminal.

Start Docker, then run:

docker version

You should see information for both the client and server.

If the client responds but the server connection fails, start Docker’s engine before continuing.

Download the WebGoat image

Run:

docker pull webgoat/webgoat

The download may take time.

Record the image digest:

docker image inspect webgoat/webgoat --format '{{index .RepoDigests 0}}'

Save the result in your lab notes.

The unversioned image tag can change. Recording the digest helps you identify the image you used if a future version behaves differently.

These instructions follow the project’s documented Docker setup. Lesson names and interface details may vary by release.

Start the lab locally

After the download finishes, disconnect from the internet for your session as recommended by OWASP.

Run this as one command:

docker run --name reconhack-webgoat -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 webgoat/webgoat

Leave the terminal open while the application starts.

The port mappings bind host ports 8080 and 9090 to the loopback address:

127.0.0.1

Do not remove that address. A mapping such as -p 8080:8080 normally publishes the port on all host interfaces.

Use a current Docker release. Docker documents an issue in releases older than 28.0.0 that could allow computers on the same local network to reach ports published to localhost.

Open WebGoat

Once startup finishes, visit:

http://127.0.0.1:8080/WebGoat/

Include the full path, including /WebGoat/.

If the application asks you to create an account, choose a lab-only username and password. Do not reuse a password from a personal or work account.

Some later exercises use WebWolf at:

http://127.0.0.1:9090/WebWolf/

Your first exercise: follow an HTTP request

Start with the introductory HTTP material available in your version of WebGoat.

Read the lesson’s instructions before interacting with its practice form.

Then:

  1. Open your browser’s developer tools.

  2. Select the Network tab.

  3. Clear existing requests so the next one is easier to find.

  4. Submit the lesson’s form using invented practice data.

  5. Select the resulting request.

  6. Note the request method, path, and response status.

  7. Find your submitted values in the query parameters or request payload.

  8. Change one harmless input, submit again, and compare the requests.

Your first goal is to follow information from the page into a request and back into a response.

Ask:

  • What did the browser send?

  • Where did the input appear?

  • What did the server return?

  • What changed between the two requests?

An HTTP success status does not, by itself, prove that an application correctly validated input or authorised an action.

Follow the lesson’s instructions and feedback to complete its task. Before opening a hint, write down what you expected to happen. That makes it easier to understand why your attempt succeeded or failed.

Turn the exercise into useful notes

A useful lab entry explains what happened rather than recording only which buttons you clicked.

Use this template:

Lab: Local WebGoat

Image digest:
Lesson:
Goal:

Request method and path:
Input I changed:
Expected result:
Observed result:

Security lesson:
Possible defensive control:
Question to investigate next:

For an introductory HTTP exercise, one lesson might be that users control request inputs, so applications must enforce relevant checks on the server.

Connect that idea to the behaviour you observed. A parameter being editable is not automatically a vulnerability.

If you share screenshots, remove session cookies, authentication tokens, and other account details.

Troubleshooting

Docker cannot connect to its server

Check that Docker Desktop or your Docker engine is running.

Run:

docker version

Resolve the server connection problem before starting WebGoat again.

The browser cannot open the page

Wait for application startup to finish and confirm the exact URL.

From another terminal, inspect the logs:

docker logs reconhack-webgoat

The logs may show a startup error or indicate that the application is still loading.

Port 8080 is already in use

Stop the conflicting service if appropriate.

Alternatively, change the host-side mapping to:

127.0.0.1:8081:8080

You would then browse to:

http://127.0.0.1:8081/WebGoat/

Some later lessons may need matching configuration changes when using different ports.

The container name already exists

You may already have created the lab.

Restart the existing container with:

docker start -ai reconhack-webgoat

You do not need to create another container with the same name.

A lesson looks different from a tutorial

Check your installed version against the tutorial’s version. Navigation, instructions, and exercise order can change.

Use the guidance provided inside your installed lesson.

Stop the lab when you finish

From another terminal, run:

docker stop reconhack-webgoat

The container remains available for another session.

Restart it with:

docker start -ai reconhack-webgoat

Removing the container can remove data stored inside it, so do not assume lesson progress will survive deletion.

What should you achieve in your first session?

Aim to understand one exercise well enough to explain:

  • The request you sent.

  • The response you received.

  • The input you changed.

  • The security concept involved.

  • A defensive control related to that concept.

One understood exercise provides a stronger foundation than several completed without understanding the results.

Further reading