DotDotSlashRepo / vulnrestdocker

Vulnerable REST based PHP webservice deployed in Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vulnerable PHP REST Webservice built with Docker Compose

Landing Page

A basic Shopping application in LAMP stack environment built using Docker Compose. Application is configured to have vulnerabilities including:

  • SQL Injection
  • Cross Site Scripting
  • CORS Misconfiguration

Installation

Clone this repository on your local computer. Run the docker-compose up -d.

git clone https://github.com/DotDotSlashRepo/vulnrestdocker.git
cd vulnrestdocker/
cp sample.env .env
docker-compose up -d

Vulnerable webservice should be up and running now!! You can access it via http://localhost:8082. Note: Visit http://localhost:8082/db_operations/setup_database.php to initialize the database.

Testing the API

For testing the API end points you may use either of below:

  • Postman collection and environment variable in postman folder
  • Using the API test page

Credits

TODO

  • Add JWT support
  • Add SSRF vulnerability
  • Add list of APIs in this documentation. For now please refer the postman collection for endpoints.

About

Vulnerable REST based PHP webservice deployed in Docker

License:MIT License


Languages

Language:CSS 86.7%Language:PHP 9.4%Language:HTML 2.6%Language:Dockerfile 0.7%Language:JavaScript 0.5%Language:CoffeeScript 0.0%