Set Up a Safe Web Security Lab with OWASP Juice Shop
Run the intentionally vulnerable OWASP Juice Shop locally, use its Score Board to structure practice, preserve progress, and keep risky exercises isolated.
Set Up a Safe Web Security Lab with OWASP Juice Shop
OWASP Juice Shop is a web application with deliberately introduced security flaws, built for learning about web vulnerabilities and security tools in an isolated lab rather than on a real service. For personal practice, run its official Docker image bound only to 127.0.0.1, choose exercises from the Score Board, solve them yourself, and connect each finding to a defensive fix.
This guide reflects the OWASP Juice Shop v20.3.0 documentation checked on 2026-11-23. Juice Shop is intentionally vulnerable. Do not expose it to the internet or test real users or production services with it.
What is Juice Shop for?
Juice Shop looks like an ordinary online store, but it contains intentionally planted vulnerabilities. It supports security training, awareness demonstrations, CTFs, and evaluation of proxies and scanners. Its Score Board lists challenges, difficulty, solved status, category filters, and progressive hints. A success notification helps track progress. This means you can practice reading a tool's alert and also reason about how input and application state interact. See the project overview and the official guide to the Score Board.
The purpose is to reproduce flaws and learn how to prevent them. It does not authorize the same tests against an arbitrary online shop or third-party site. Practice only on your local instance or an expressly authorized training environment.
Start a local lab with Docker
The official Docker image is a simple starting point for individual practice. With Docker Desktop or Docker Engine running, use a terminal on Windows, macOS, or Linux and run the following commands. Binding to 127.0.0.1 limits access to the host computer.
docker pull bkimminich/juice-shop
docker run --rm -d --name juice-shop -p 127.0.0.1:3000:3000 bkimminich/juice-shopOpen http://localhost:3000 in a browser. If the shop page appears, the instance is running. Select a challenge in the Score Board and work through one at a time. Instead of immediately reading a solution, reveal hints progressively and check whether the success notification and Score Board status change. This is a practical way to verify learning progress.
If the host port is already in use, change only the host-side port. For example, use -p 127.0.0.1:3001:3000 and visit http://localhost:3001. Check the container with docker ps and its startup log with docker logs juice-shop. When finished, stop it with docker stop juice-shop. Because --rm removes the container after it stops, its container state is not kept; however, Juice Shop can restore challenge progress from browser cookies for up to 30 days after a server restart. Use the Score Board's reset-progress control to start over. See the official run guide and progress backup and restore.
If the page does not load, check in this order: first confirm Docker is running and docker ps lists the juice-shop container; next inspect docker logs juice-shop for startup errors; then check whether another process uses port 3000 and, if so, restart with host port 3001. Keep the 127.0.0.1 binding while troubleshooting. Do not publish the port through a firewall or router.
If you prefer running from source, check the current supported runtime and procedure in the official guide. For v20.3.0, that guide recommends Node.js 24.x; the source workflow is to clone the repository, enter its folder, run npm install, run npm start, and visit http://localhost:3000. Runtime and package support can change, so follow the official run guide at installation time.
Use the Score Board as a learning plan
Use difficulty, category, and solved-status filters to make a small learning plan. Beginners can start with lower-difficulty challenges and those marked as tutorials. As you gain familiarity, narrow the category and compare how the same security idea appears in different features. Hints can help when you are stuck, but reading complete solutions first reduces the value of exploring and testing your own hypothesis. The official companion guide recommends a black-box exercise and explains why looking at source code or full solutions can spoil the challenge. See the exercise rules.
For example, a hypothetical learning log could follow this sequence: (1) choose an easy unsolved challenge in one category; (2) observe its inputs and responses in the UI, browser tools, or a local proxy; (3) write a hypothesis about the cause; (4) change one condition at a time in the authorized local app; and (5) confirm the solved state and connect the flaw to a server-side defense. This is an illustrative study method, not a payload recipe or a claim about a real app. When available, follow the Score Board's mitigation links to defensive material such as OWASP Cheat Sheets.
Juice Shop may save challenge progress in browser cookies. If you block or clear cookies, saved progress may not be restored. If you plan to continue later, check cookie settings and consider the Score Board's backup feature. Progress can become mixed when several people attack one server instance. The official guide assumes one user per instance; for workshops or CTFs with multiple participants, it points to MultiJuicer, which provides isolated instances. See MultiJuicer for multiple users.
Keep the intentionally vulnerable app isolated
A container helps separate the lab, but it is not a perfect security boundary. The official guide warns that some XXE, template-injection, deserialization, NoSQL-injection, and arbitrary-file-write challenges can put your computer at risk and cannot be fully sandboxed in every environment. Potentially dangerous challenges may be disabled by default in containers. Do not force-enable them for learning, and do not run payloads you do not understand. Stored XSS challenges can also harm other visitors, so keep practice on the local instance. See potentially dangerous challenges.
Do not expose this vulnerable app to the internet by binding its port to a public IP or 0.0.0.0. For shared training, use an approved multi-user setup with per-participant isolation, authentication, network restrictions, and lifecycle controls. For individual practice, a loopback-only binding is the simplest boundary to verify.
Turn each exercise into a security improvement
Solving a challenge does not mean a real product has been fixed. Review its category and any mitigation guidance, then write down the defensive principle that prevents the flaw, such as server-side validation, authorization checks, output encoding, or safe data handling, as appropriate. Treat proxy and scanner findings as learning clues; make sure you can explain the request and response, required state and role, and expected security impact.
Keep a learning log with challenge name, observed behavior, hypothesis, tested conditions, defense, and unanswered questions. This helps transfer the idea to a different context. End a session by stopping the lab and confirming that no public network exposure was configured.
References
[OWASP Juice Shop project overview](https://juice-shop.github.io/)
[Official run guide and supported runtime](https://pwning.owasp-juice.shop/companion-guide/latest/part1/running.html)
[Score Board, progress persistence, and risky challenges](https://pwning.owasp-juice.shop/companion-guide/latest/part1/challenges.html)
[Exercise rules and black-box learning](https://pwning.owasp-juice.shop/companion-guide/latest/part1/rules.html)
[MultiJuicer for group training](https://pwning.owasp-juice.shop/companion-guide/latest/part4/multi-juicer.html)