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
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.
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
- Docker Lamp environment - https://github.com/sprintcube/docker-compose-lamp
- Original API Code - https://github.com/sambhavsharma/RESTful-API-PHP
- Add JWT support
- Add SSRF vulnerability
- Add list of APIs in this documentation. For now please refer the postman collection for endpoints.