Security training for the apps you actually ship. Open your browser and start hacking.
4.4K
Security training for the apps you actually ship. Break a deliberately vulnerable e-commerce app built on Next.js, React, TypeScript and Prisma: 38 challenges across web, API, authentication, business logic, cryptography, supply chain, AI agents and MCP. Find the bugs, exploit them, understand why they work.
docker run -p 127.0.0.1:3000:3000 leogra/oss-oopssec-store
Then open http://localhost:3000 and start hacking. The image runs natively on linux/amd64 and linux/arm64, Apple Silicon included.
Caution
This image is intentionally vulnerable. Run it on your own machine or on an isolated VM, never on a server reachable from the internet. For education and authorized security testing only.
![]() Storefront: the e-commerce app you attack |
![]() Player dashboard: progress by difficulty and category |
![]() OSSBot: the AI support assistant you prompt-inject |
![]() Roadmap: 11 chapters, from first bug to AI agents |
|
Start the lab Run the docker run command above. The store comes up on localhost:3000.
| |
|
Go after challenge #1 Public env variable leak: a payment secret that Next.js bakes into the client bundle. Easy, 15–20 min, nothing but your browser devtools. | |
|
Stuck? Read the walkthrough Every challenge has one, from vulnerability to exploit to fix. The first: Reading Secrets From the Browser. | |
|
Validate the flag Paste OSS{...} into the flag checker, the floating widget on every page. Your player dashboard tracks what is left.
| |
|
Pick the next one The roadmap orders every challenge across 11 chapters, with difficulty, time estimate and prerequisites. |
npx create-oss-store my-ctf-lab (npm package)| Tag | Points to | Use it when |
|---|---|---|
latest | the newest release | you play on your own and want the newest challenges |
vX.Y.Z, such as v2.26.0 | one release | you run a class or a CTF: every player gets the same challenges |
Releases from v2.23.0 on ship for both linux/amd64 and linux/arm64. The full list is in the Tags tab.
docker run -p 127.0.0.1:3000:3000 -v oss-data:/app/data leogra/oss-oopssec-store
The oss-data volume holds the SQLite database: captured flags, users and orders. It is created and seeded on first start.
docker pull leogra/oss-oopssec-store
Stop the old container, then start a new one with the same volume. On start, the image adds the new challenges and tables to your database and keeps your progress.
To start over instead, remove the containers that use the volume, then the volume itself:
docker volume rm oss-data
The prompt injection and malicious MCP server challenges go through OSSBot, the store's AI assistant. By default it calls a local Ollama model, so no account, no API key and no internet once the model is downloaded. The image looks for Ollama in a container named ollama on the same network:
docker network create oss-lab
docker run -d --name ollama --network oss-lab -v ollama:/root/.ollama ollama/ollama:0.40.16
docker exec ollama ollama pull gemma4:e4b
docker run -p 127.0.0.1:3000:3000 \
--network oss-lab \
--add-host=host.docker.internal:host-gateway \
leogra/oss-oopssec-store
gemma4:e4b is the model the challenges are verified against: the other models tested hand a flag over to a plain question. If docker exec answers could not connect to ollama server, Ollama is still starting: run it again. --add-host is only needed for the MCP challenge, where the app has to reach a server you run on your machine.
Other models and hosted OpenAI-compatible providers: see the AI assistant setup guide.
3000. Publish it as 127.0.0.1:3000:3000 to keep the store reachable from your machine only, and as a plain 3000:3000 only on an isolated VM you control./app/data, the SQLite database.-e, all for OSSBot:| Variable | Default | Purpose |
|---|---|---|
LLM_BASE_URL | http://ollama:11434/v1 | OpenAI-compatible endpoint, without /chat/completions |
LLM_MODEL | gemma4:e4b | Model name, as the provider spells it. The MCP challenge needs tool calling |
LLM_API_KEY | none | Sent as Authorization: Bearer <key> when set |
With a hosted provider, the system prompt and your messages leave your machine.
Modern frameworks change where vulnerabilities appear and how they should be fixed. Server components, middleware and ORMs bring their own trust boundaries and failure modes, and OopsSec Store puts the classic bug classes into the stack many developers ship today. How it compares with OWASP Juice Shop and DVWA, with sources: side-by-side comparison.
MIT. This software contains intentional vulnerabilities and insecure configurations. The authors are not responsible for any misuse, damage or unauthorized access.
Content type
Image
Digest
sha256:463bbc318…
Size
320.4 MB
Last updated
13 days ago
docker pull leogra/oss-oopssec-store