A deliberately vulnerable multi-page e-commerce web application for learning web security, penetration testing, and CTF practice.
CTF-HUB is a vulnerable coffee/tea shop web application designed for:
- π Web security learning
- π§ͺ Penetration testing practice
- π CTF-style challenges
- π Understanding real-world misconfigurations
The project is fully containerized using Docker Compose, with isolated services for:
- Web application
- Database layer
- Login / Signup / Logout
- Session-based user handling
- Profile update support
- Product listing
- Add to cart
- Order placement
- Order history tracking
- Admin login portal
- Admin dashboard
- 4 hidden flags embedded in vulnerabilities
- Gamified exploitation flow
β οΈ This application is insecure by design. Do NOT deploy publicly.
- π§© IDOR (Insecure Direct Object Reference)
- π Admin credentials disclosure
- π» Command Injection
- π Local File Inclusion (LFI)
- π§ͺ SQL Injection (via missing validation & sanitization)
- Docker
- Docker Compose
# Clone repository
git clone https://github.com/pevinkumar10/CTF-HUB.git
cd CTF-HUB
# Start services
docker-compose up -ddocker-compose downhttp://localhost:5555
ctf-hub/
βββ database/ # DB container setup
βββ web/ # Web application container
β βββ config/
β βββ flags/
β βββ scripts/
β βββ src/
β β βββ classes/
β β βββ css/
β β βββ img/
β β βββ js/
β β βββ libs/
β β βββ products/
β β βββ templates/
β β βββ j0hn-th3-05int3r/ # Hidden admin panel
βββ docker-compose.yaml
βββ pentest/ # Pentest reports
βββ WALKTHROUGH.md # Challenge walkthrough
βββ LICENSE
βββ imgs/
| Vulnerability | Flag Location |
|---|---|
| IDOR | User ID 1010 |
| Admin Credential Leak | OSINT sources |
| Command Injection | dev-notes.txt |
| LFI | ma1nta1nanc3_n0t3s.js |
This project is intended strictly for educational purposes.
- Do not deploy in production
- Do not expose to public networks
- Use only in controlled environments
The author assumes no responsibility for misuse.
Licensed under the MIT License.
Made with β€οΈ for cybersecurity learning & CTF practice