Skip to content

DotDotSlashRepo/vulnrestdocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published