kOaDT/oss-oopssec-store
Tentang
Security training for the apps you actually ship. Open your browser and start hacking.
Keamanan dan privasiYang dapat Anda lakukan
- Intentionally vulnerable e-commerce app (XSS, CSRF, IDOR, JWT attacks, path traversal, SQL injection, and more)
- Built with Next.js (App Router), React, TypeScript, Prisma, and SQLite
- REST API with documented attack vectors
- 38 challenges across 11 chapters, laid out as a structured learning roadmap
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +1
- dalam 15 hari
- +4
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliOSS - OopsSec Store
Security training for the apps you actually ship.
38 challenges across web, API, authentication, business logic, cryptography, supply chain, AI agents and MCP.
Break a deliberately vulnerable e-commerce app built on Next.js, React, TypeScript and Prisma.
Find the bugs. Exploit them. Understand why they work.
Docker Hub · npm · Roadmap · Walkthroughs · Contributing · Good first issues
____ ____ ____ ____ ____ ____ _
/ __ \/ __// __/ / __ \ ___ ___ ___ / __/ ___ ____ / __/ / /_ ___ ____ ___
/ /_/ /\ \ _\ \ / /_/ // _ \ / _ \(_-<_\ \ / -_)/ __/_\ \ / __// _ \ / __// -_)
\____/___//___/ \____/ \___// .__/___/___/ \__/ \__//___/ \__/ \___//_/ \__/
/_/
# Start with Node.js
npx create-oss-store my-ctf-lab && cd my-ctf-lab && npm start
# Start with Docker
docker run -p 127.0.0.1:3000:3000 leogra/oss-oopssec-store
# Then open http://localhost:3000 and start hacking
Click any screenshot to view it full size.
Getting started
Start the labnpx create-oss-store my-ctf-lab && cd my-ctf-lab && npm startOr run it with Docker. 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: The NEXT_PUBLIC_ Trap in Next.js. |
|
|
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 chapters: difficulty, time estimate, prerequisites. Take the next card, then back to step 2. ↻ |
[!TIP] All captured? Join the Hall of Fame, star the repo, and post your route in Show your solve.
New to offensive security? The TryHackMe room wraps the first flags in a guided narrative.
Features
- Intentionally vulnerable e-commerce app (XSS, CSRF, IDOR, JWT attacks, path traversal, SQL injection, and more)
- Built with Next.js (App Router), React, TypeScript, Prisma, and SQLite
- REST API with documented attack vectors
- 38 challenges across 11 chapters, laid out as a structured learning roadmap
- Vulnerability documentation and community walkthroughs for each challenge
- A guided TryHackMe room: The Summer Audit, 8 tasks and 7 flags, as a narrative on-ramp for newcomers
- Automated tests that verify exploits still work (PRs that accidentally fix a vuln will fail CI)
Why OopsSec Store?
Modern frameworks change where security vulnerabilities appear and how they should be fixed. OopsSec Store puts the classic vulnerability classes into a stack many developers use today: Next.js App Router, React, TypeScript and Prisma.
Server-rendered components, middleware and ORMs introduce different trust boundaries and failure modes. Several challenges also reproduce published CVEs against this stack.
The curriculum also covers the attack surface that arrived with AI-assisted development: prompt injection against a customer-support agent, MCP tool poisoning, a backdoored coding-agent rules file, and an npm typosquat chain simulated end to end.
| OopsSec Store | Juice Shop | DVWA | |
|---|---|---|---|
| Stack | Next.js · React · TypeScript · Prisma | Node.js · Express · Angular | PHP · MySQL |
| Setup | npx create-oss-store / Docker |
Docker / npm | Docker / manual LAMP |
| CTF flags | ✅ Built in (static flags) | ✅ Opt-in, per-instance flags (CTF_KEY); CTFd/RootTheBox/FBCTF |
❌ |
| Guided learning roadmap | ✅ 1 roadmap, 11 chapters, 38 flags | ❌ Score board only | Partial (security levels) |
| Walkthrough for every challenge | ✅ | ✅ Companion guide | Partial (hints) |
| LLM prompt injection | ✅ Local Ollama by default, or any OpenAI-compatible endpoint | ✅ v20+, local Ollama by default or any OpenAI-compatible endpoint | ❌ |
| MCP tool poisoning | ✅ | ❌ | ❌ |
| AI coding-agent backdoor (poisoned rules file) | ✅ | ❌ | ❌ |
| Supply-chain attack chain | ✅ Simulated end to end: npm typosquat → rules backdoor | Partial (identification only) | ❌ |
| Challenges built on real CVEs | ✅ Next.js / React framework CVEs | Partial (vulnerable npm dependencies) | ❌ |
| Hall of Fame for players | ✅ | ❌ | ❌ |
Last verified November 2026, against Juice Shop v20.4 and DVWA 2.5. Sources and a side-by-side reading guide: OopsSec Store vs Juice Shop vs DVWA. Spotted an inaccuracy? Open an issue or open a PR.
Installation
[!CAUTION] This app contains intentional vulnerabilities and insecure configurations. Never deploy it in production: run it in an isolated environment, for education and authorized security testing only. The authors are not responsible for any misuse, damage or unauthorized access.
Quick start
npx create-oss-store my-ctf-lab
cd my-ctf-lab
npm start
Then open http://localhost:3000 in your browser.
Manual setup
Clone the repo and run the setup script:
git clone https://github.com/kOaDT/oss-oopssec-store.git
cd oss-oopssec-store
npm run setup
This creates the .env file, installs dependencies, sets up the SQLite database, seeds it with the flags, and starts the app on port 3000.
Docker
No Node.js required. Just Docker.
127.0.0.1:3000:3000keeps the lab reachable only from your own machine. Use plain-p 3000:3000only on an isolated VM you control.
From Docker Hub (quickest)
docker run -p 127.0.0.1:3000:3000 leogra/oss-oopssec-store
The image is published for linux/amd64 and linux/arm64, so Apple Silicon and other ARM64 machines run it without emulation.
To persist data across restarts:
docker run -p 127.0.0.1:3000:3000 -v oss-data:/app/data leogra/oss-oopssec-store
From source (Docker Compose)
git clone https://github.com/kOaDT/oss-oopssec-store.git
cd oss-oopssec-store
docker compose up -d # Start in background (builds the image on first run)
docker compose logs -f # Follow container logs
docker compose down # Stop the container
docker compose down -v # Stop and wipe data for a fresh start
With npm installed, the same four are npm run docker:up, docker:logs, docker:down and docker:reset.
The database initializes on first start. Data persists across restarts via Docker named volumes, including flag progress, users and uploads.
AI challenges
The prompt injection and MCP challenges talk to a language model: gemma4:e4b on a local Ollama by default. With npm, install Ollama and pull the model once with ollama pull gemma4:e4b. With Docker, the lab needs an Ollama container instead: the AI assistant setup guide gives the commands, and covers other models and hosted providers.
Updating an existing install
A new version usually brings new challenges, and with them tables and rows your database has never seen. Check the changelog for breaking changes, then catch up without starting over:
npm run db:upgrade # local clone
docker compose up -d --build # Docker: the entrypoint upgrades on start
Your orders, captured flags, users and uploads are left untouched. The app refuses to start against a database that is a schema behind, and names the command to run. To wipe everything instead and start fresh, use npm run docker:reset (Docker) or npm run setup -- --reset (npm, keeps a backup in prisma/). Running npm run setup again on an existing install asks before resetting and upgrades the database in place otherwise.
Hall of fame
Captured every flag? Add yourself to hall-of-fame/data.json in a pull request, following the entry rules. Once it is merged, your card shows up on the /hall-of-fame page in the app, with a badge and a social card ready to copy:
Community
Questions, solutions and feedback live in Discussions.
| Where to go | For what |
|---|---|
| 🧩 Stuck on a challenge | The exploit will not fire, the flag will not validate |
| 🛠️ Setup and install | Docker, npm or Node problems getting the lab up |
| 🏆 Show your solve | A route to the flag the walkthrough does not cover |
| 💡 Challenge ideas | A vulnerability class worth adding to the curriculum |
| 🎓 Teaching with OopsSec | Running the lab with a class, a bootcamp or a team |
| Issues | Bugs in the lab itself, and only those |
Contributing
OSS – OopsSec Store is MIT-licensed. Contributions are welcome.
Check the Roadmap for planned work, or grab a good first issue.
Every pull request runs the security regression tests: Jest and Cypress suites that assert each exploit still works, so a change that patches a vulnerability by accident fails CI.
For bugs or suggestions, open a GitHub Issue. See CONTRIBUTING.md for guidelines and the test commands.
🎓 Using OopsSec Store in a course or CTF?
Check out the Educator Kit - a ready-to-use guide with OWASP coverage grids, syllabus templates, deployment FAQ, and a student report template. Building your own tooling around the curriculum? The whole thing is published as a machine-readable feed at challenges.json, regenerated on every docs deploy.
Project stats
Author: kOaDT
Project: OopsSec Store
Contact: [email protected]
License: MIT
Do not remove or modify the LICENSE file in your fork.
Jelajahi proyek terkait
Memuat…



