Damn Vulnerable GraphQL Application is an intentionally vulnerable implementation of Facebook's GraphQL technology, to learn and practice GraphQL Security.
- About DVGA
- Operation Modes
- Scenarios
- Prerequisites
- Installation
- Screenshots
- Maintainers
- Contributors
- Mentions
- Disclaimer
- License
Damn Vulnerable GraphQL is a deliberately weak and insecure implementation of GraphQL that provides a safe environment to attack a GraphQL application, allowing developers and IT professionals to test for vulnerabilities.
DVGA has numerous flaws, such as Injections, Code Executions, Bypasses, Denial of Service, and more. See the full list under the Scenarios section.
DVGA supports Beginner and Expert level game modes, which will change the exploitation difficulty.
- Reconnaissance
- Discovering GraphQL
- Fingerprinting GraphQL
- Denial of Service
- Batch Query Attack
- Deep Recursion Query Attack
- Resource Intensive Query Attack
- Field Duplication Attack
- Aliases based Attack
- Information Disclosure
- GraphQL Introspection
- GraphiQL Interface
- GraphQL Field Suggestions
- Server Side Request Forgery
- Code Execution
- OS Command Injection #1
- OS Command Injection #2
- Injection
- Stored Cross Site Scripting
- Log spoofing / Log Injection
- HTML Injection
- Authorization Bypass
- GraphQL Interface Protection Bypass
- GraphQL Query Deny List Bypass
- Miscellaneous
- GraphQL Query Weak Password Protection
- Arbitrary File Write // Path Traversal
The following Python3 libraries are required:
- Python3
- Flask
- Flask-SQLAlchemy
- Graphene
- Graphene-SQLAlchemy
See requirements.txt for dependencies.
git clone git@github.com:dolevf/Damn-Vulnerable-GraphQL-Application.git && cd Damn-Vulnerable-GraphQL-Application
docker build -t dvga .
docker run -t -p 5000:5000 -e WEB_HOST=0.0.0.0 dvga
In your browser, navigate to http://localhost:5000
Note: if you need the application to bind on a specific port (e.g. 8080), use -e WEB_PORT=8080.
docker pull dolevf/dvga
docker run -t -p 5000:5000 -e WEB_HOST=0.0.0.0 dolevf/dvga
In your browser, navigate to http://localhost:5000
cd /opt/
git clone git@github.com:dolevf/Damn-Vulnerable-GraphQL-Application.git && cd Damn-Vulnerable-GraphQL-Application
pip3 install -r requirements.txt
python3 app.py
In your browser, navigate to http://localhost:5000.
A big Thank You to the kind people who helped make DVGA better:
- OWASP Vulnerable Web Applications Directory
- GraphQL Weekly
- DZone API Security Weekly
- KitPloit
- tl;dr sec #72
- Intigriti Blog
- STÖK - Bounty Thursdays #26
- Brakeing Security 2021-007
- Yes We Hack - How to Exploit GraphQL
- GraphQL Editor
- GraphQL Hacking (Portuguese)
- InQL GraphQL Scanner Demo
- H4ck3d - Security Conference 2021 (Spanish)
- Christina Hasternath - GraphQLConf 2021
DVGA is highly insecure, and as such, should not be deployed on internet facing servers. By default, the application is listening on 127.0.0.1 to avoid misconfigurations.
DVGA is intentionally flawed and vulnerable, as such, it comes with no warranties. By using DVGA, you take full responsibility for using it.
It is distributed under the MIT License. See LICENSE for more information.