Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

59 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CTF-HUB Banner

CTF-HUB | Vulnerable Coffee Shop Web App β˜•

A deliberately vulnerable multi-page e-commerce web application for learning web security, penetration testing, and CTF practice.


πŸ“Œ Overview

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

πŸ“Έ Screenshots


✨ Features

πŸ‘€ Authentication

  • Login / Signup / Logout
  • Session-based user handling
  • Profile update support

πŸ›’ E-Commerce System

  • Product listing
  • Add to cart
  • Order placement
  • Order history tracking

πŸ§‘β€πŸ’Ό Admin Panel

  • Admin login portal
  • Admin dashboard

🏁 CTF System

  • 4 hidden flags embedded in vulnerabilities
  • Gamified exploitation flow

🚨 Vulnerabilities (Intentionally Introduced)

⚠️ 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)

βš™οΈ Setup & Installation

πŸ“¦ Prerequisites

  • Docker
  • Docker Compose

πŸš€ Run Project

# Clone repository
git clone https://github.com/pevinkumar10/CTF-HUB.git
cd CTF-HUB

# Start services
docker-compose up -d

πŸ›‘ Stop services

docker-compose down

🌐 Access Application

http://localhost:5555

πŸ“‚ Project Structure

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/

🏴 Flags & Challenges

Vulnerability Flag Location
IDOR User ID 1010
Admin Credential Leak OSINT sources
Command Injection dev-notes.txt
LFI ma1nta1nanc3_n0t3s.js

⚠️ Legal Disclaimer

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.


πŸ“œ License

Licensed under the MIT License.


Made with ❀️ for cybersecurity learning & CTF practice

About

A Dockerized vulnerable web application designed as a Capture The Flag (CTF) challenge. Includes multiple real-world inspired security flaws for practicing web exploitation and learning secure coding practices.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages