API application #
This Cheat sheet focus on Installing different Vulnerable Web API applications that build with different technology stacks like Java, Nodejs, PHP and Python
Easier for peoples to download and install in different ways through Docker, Vagrant, VM, Manual, and Host in local machine.
Java Vulnerable API #
- Completely ridiculous API [crAPI]
- Docker
git clone https://github.com/OWASP/crAPI.git
cd crAPI
curl -o docker-compose.yml https://raw.githubusercontent.com/OWASP/crAPI/main/deploy/docker/docker-compose.yml
docker-compose pull
docker-compose -f docker-compose.yml --compatibility up -d
- Browse
http://localhost:8888
- Vagrant
git clone https://github.com/OWASP/crAPI.git
cd deploy/vagrant && vagrant up
- Browse http://192.168.33.20/
- Docker
Python Vulnerable API #
Damn Vulnerable GraphQL Application
- Docker Image
git clone https://github.com/dolevf/Damn-Vulnerable-GraphQL-Application.git && cd Damn-Vulnerable-GraphQL-Application
docker build -t dvga .
docker build -t dvga -f Dockerfile.arm64 .
docker run -d -t -p 5013:5013 -e WEB_HOST=0.0.0.0 --name dvga dvga
- Browse http://localhost:5013/
- Docker Hub
docker pull dolevf/dvga
docker run -t -p 5013:5013 -e WEB_HOST=0.0.0.0 dolevf/dvga
- Browse http://localhost:5013/
- Host in local machine
cd /opt/
git clone [[email protected]](mailto:[email protected]):dolevf/Damn-Vulnerable-GraphQL-Application.git && cd Damn-Vulnerable-GraphQL-Application
pip3 install -r requirements.txt
python3 [app.py](http://app.py/)
- Browse http://localhost:5013/
- Docker Image
- Docker
git clone https://github.com/payatu/Tiredful-API.git
cd Tiredful-API
docker build -t tiredful .
docker run -p 8000:8000 --name tiredful -it tiredful
- Browse http://localhost:8000/
- Docker
PHP Vulnerable API #
Docker
git clone https://github.com/roottusk/vapi.git
cd vapi
docker-compose up -d
Online Postman
Generic University Vulnerable API
- Docker Hub
docker pull busk3r/genericuniversity:latest
docker run --name genericuniversity -itd --rm -p 80:8000 busk3r/genericuniversity && docker exec genericuniversity service mysql start && docker exec genericuniversity mysql -u root -p -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'password';”
docker exec genericuniversity php /root/Generic-University/artisan serve --host 0.0.0.0
- Browse http://localhost
- Docker Hub
Nodejs Vulnerable API #
- Damn Vulnerable Web Service
- Docker
git clone https://github.com/snoopysecurity/dvws-node.git
cd dvws-node
docker-compose up
- Browse http://localhost
- Manual
docker run -d -p 27017-27019:27017-27019 --name dvws-mongo mongo:4.0.4
docker run -p 3306:3306 --name dvws-mysql -e MYSQL_ROOT_PASSWORD=mysecretpassword -e MYSQL_DATABASE=dvws_sqldb -d mysql:8
git clone https://github.com/snoopysecurity/dvws-node.git
cd dvws-node
sudo apt-get install -y libxml2 libxml2-dev
npm install --build-from-source
node startup_script.js
sudo npm start
- Browse http://localhost
- Docker