theowni

Damn-Vulnerable-RESTaurant-API-Game: Practice API Security

A deliberately insecure Python FastAPI service for learning API security through hands-on exploitation or interactive vulnerability fixes. It runs in Docker with PostgreSQL and is aimed at developers, ethical hackers, and security engineers.

View on GitHub Compare
Stars
946
Forks
199
Stars, last 30 days
+7
Last commit
4 months ago
Contributors
10

Our take

Quietno commits in the last 90 days and no release in a year

Health score

24/100

How it is scored
Activity
19
Community
34
Issues
21
Pull requests
20

+7 stars in the last 30 days

This is a focused, hands-on API security lab with useful developer and attacker modes, but its quiet maintenance and concentrated contributor base call for a cautious, controlled-use approach.

Good fit if

  • You want a Docker-based practice target for API security training, not a production service.
  • You are comfortable running Python/FastAPI with PostgreSQL and Docker Compose.
  • You want to extend a GPL-3.0 project or use it in a controlled learning environment.

Look elsewhere if

  • You need a maintained production API or a project with recent release activity. There have been no commits in the last 90 days and no release in the past year.
  • You require development activity to be spread across contributors. The project has 10 contributors, but most code contributions come from one person.
  • You need a broad, complete vulnerability curriculum out of the box. The roadmap still lists adding more vulnerabilities as unfinished work.
All health signals
Last commit2026-07-09 (4 months ago)
Commits, last 90 days0
Releases, last 12 months0
Contributors10 (top contributor: 84% of commits)
Issues closed, last 90 days0
Pull requests merged, last 90 days0
Project age2 years

Checked on 2026-11-07 with the GitHub API.

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

947

Forks

205

Change since Nov 23, 2026: 0 stars·0 forks

Overview

Damn Vulnerable RESTaurant is an intentionally insecure API training game built with Python and FastAPI, backed by PostgreSQL. It gives developers, ethical hackers, and security engineers a controlled service to inspect, exploit, or fix vulnerabilities, rather than focusing on a single API security lesson.

The project supports two ways to use the same playground: developers can work through an interactive fix-focused game, while security learners can explore the API as a CTF-style challenge. Docker and Docker Compose make it practical to run locally, and the README also describes using GitHub Codespaces.

Key Features

  • Provides a deliberately vulnerable API environment for hands-on security practice.
  • Offers a developer game focused on identifying and fixing vulnerabilities.
  • Supports manual exploitation and automated security testing workflows.
  • Includes Swagger and Redoc API documentation when the service is running.
  • Uses Python, FastAPI, and PostgreSQL, with a Docker-based local setup.
  • Designed to be extended with additional vulnerable endpoints and mechanisms.
  • Can be launched in GitHub Codespaces as well as on a local machine.

Use Cases

  • Developers can practice finding and fixing API weaknesses in a running FastAPI application.
  • Ethical hackers can explore an API challenge, starting with a low-privilege user and attempting privilege escalation.
  • Security engineers can run SAST, DAST, or infrastructure security tools against an intentionally vulnerable target.
  • Trainers can use a locally controlled playground for demonstrations and practical security exercises.

What you need

Detected in the repository

  • Python (from pyproject.toml)
  • A Dockerfile, so it can run in a container; a Compose file sets up the related services
  • Automated checks on GitHub Actions

License in plain words

GPL-3.0strong copyleft

  • Commercial use: yes
  • Modify and redistribute: yes
  • You must keep: the license notice
  • Share your changes: yes, the full source of anything you distribute that includes it, under the GPL
  • Includes an explicit patent grant from the contributors:

A summary, not legal advice: the LICENSE file is what applies.

Getting Started

With Docker and Docker Compose V2 installed, run:

git clone https://github.com/theowni/Damn-Vulnerable-RESTaurant-API-Game.git
cd Damn-Vulnerable-RESTaurant-API-Game
./start_app.sh

The API is available at http://localhost:8091; see the README for the interactive developer mode, Codespaces setup, and further instructions. Do not expose this intentionally vulnerable application to public networks.

Alternatives

  • vuln-bank: Vuln Bank teaches security testing across banking, web, API, GraphQL, and AI scenarios, rather than focusing on a FastAPI restaurant API.
  • juice-shop: Juice Shop offers broad web-application and CTF challenges in TypeScript, while Damn-Vulnerable-RESTaurant focuses on API security in FastAPI.
  • DVWA: DVWA teaches common web vulnerabilities in a PHP and MariaDB app with adjustable difficulty, rather than concentrating on REST API flaws.
  • NodeGoat: NodeGoat uses a vulnerable Node.js app and guided tutorials to teach OWASP risks, rather than providing a Python FastAPI API-security game.
ProjectLanguageLicenseStarsStatus
Damn-Vulnerable-RESTaurant-API-GamePythonGPL-3.0946Quiet
vuln-bankHTMLMIT960Maintained
juice-shopTypeScriptMIT14.2kActive
DVWAPHPGPL-3.013.9kActive
NodeGoatHTMLApache-2.02.1kInactive

Considerations

This application is insecure by design and is intended for controlled training environments, not internet-facing deployment. Running it requires Docker and Docker Compose, and the service uses PostgreSQL. The repository is marked quiet, with no commits in the last 90 days and no release in the past year; contribution activity is concentrated in one person. The README also identifies additional vulnerabilities as future work. Contributions and redistribution are subject to the GPL-3.0 license.

Found this useful?

Share it with someone who would like Damn-Vulnerable-RESTaurant-API-Game.

Comparisons