HUB
Sign inSign up

leogra/oss-oopssec-store

By leogra

•Updated 13 days ago

Security training for the apps you actually ship. Open your browser and start hacking.

Image
Security
1

4.4K

leogra/oss-oopssec-store repository overview

⁠OSS – OopsSec Store

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.
Listed in the OWASP Vulnerable Web Applications DirectoryTryHackMe room: The Summer AuditGitHub starsMIT license
OopsSec Store storefront
Storefront: the e-commerce app you attack
Player dashboard tracking captured flags
Player dashboard: progress by difficulty and category
OSSBot AI customer support assistant
OSSBot: the AI support assistant you prompt-inject
Challenge roadmap across 11 chapters
Roadmap: 11 chapters, from first bug to AI agents

⁠Getting started

Step 1 Start the lab
Run the docker run command above. The store comes up on localhost:3000⁠.
Step 2 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.
Step 3 Stuck? Read the walkthrough
Every challenge has one, from vulnerability to exploit to fix. The first: Reading Secrets From the Browser⁠.
Step 4 Validate the flag
Paste OSS{...} into the flag checker, the floating widget on every page. Your player dashboard⁠ tracks what is left.
Step 5 Pick the next one
The roadmap⁠ orders every challenge across 11 chapters, with difficulty, time estimate and prerequisites.

⁠Quick reference

⁠Tags

TagPoints toUse it when
latestthe newest releaseyou play on your own and want the newest challenges
vX.Y.Z, such as v2.26.0one releaseyou 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⁠.

⁠What is inside

  • 38 challenges in 11 chapters, ordered on a learning roadmap⁠
  • The classic vulnerability classes on a modern stack: XSS, CSRF, IDOR, SQL injection, JWT attacks, path traversal and more, against the Next.js App Router, middleware and Prisma
  • Published CVEs reproduced against Next.js and React
  • The attack surface of AI-assisted development: prompt injection against a support agent, MCP tool poisoning, a backdoored coding-agent rules file, and an npm typosquat chain simulated end to end
  • A built-in flag checker, three progressive hints per challenge, and a player dashboard
  • Regression-tested: CI asserts that every exploit still works, so a new release never patches a challenge by accident

⁠How to use this image

⁠Keep your progress
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.

⁠Update to a new release
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
⁠Enable the AI challenges

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⁠.

⁠Configuration
  • Port: 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.
  • Volume: /app/data, the SQLite database.
  • Environment variables, passed with -e, all for OSSBot:
VariableDefaultPurpose
LLM_BASE_URLhttp://ollama:11434/v1OpenAI-compatible endpoint, without /chat/completions
LLM_MODELgemma4:e4bModel name, as the provider spells it. The MCP challenge needs tool calling
LLM_API_KEYnoneSent as Authorization: Bearer <key> when set

With a hosted provider, the system prompt and your messages leave your machine.

⁠Teaching with OopsSec Store

  • Pin a version tag, so every student works on the same challenges.
  • Educator Kit⁠: OWASP coverage grids, syllabus templates, a deployment FAQ and a student report template.
  • challenges.json⁠: the whole curriculum as a machine-readable feed, for your own tooling.
  • TryHackMe room⁠: The Summer Audit wraps the first flags in a guided narrative for newcomers.

⁠Why OopsSec Store?

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⁠.

⁠Community

⁠License

MIT⁠. This software contains intentional vulnerabilities and insecure configurations. The authors are not responsible for any misuse, damage or unauthorized access.

Tag summary

Content type

Image

Digest

sha256:463bbc318…

Size

320.4 MB

Last updated

13 days ago

docker pull leogra/oss-oopssec-store