a8ae17b50c2c2dc4bfa816bd85a0532306dc3f4a
THSVWA 🛡️
The Hacksmith Shop Vulnerable Web Application
🎯 Overview
A modern, deliberately vulnerable web application designed for cybersecurity education and CTF challenges. Features a professional blacksmithing e-commerce theme with realistic security vulnerabilities for hands-on learning.
🚀 Quick Start
# Using Docker (Recommended)
git clone https://github.com/s41r4j/THSVWA.git
cd THSVWA
docker build -t thsvwa .
docker run -d -p 80:80 --name thsvwa-container thsvwa
open http://localhost
# Development Setup
npm install && npm run dev
🔐 Vulnerabilities & Features
| Type | Location | Educational Focus |
|---|---|---|
| XSS | Homepage Search | DOM manipulation, script injection |
| SQL Injection | Login Form | Database security, authentication bypass |
| IDOR | Product Pages | Access control, URL manipulation |
| LFI | Purchase Flow | File inclusion, path traversal |
| Price Manipulation | Purchase Page | Business logic flaws |
🗺️ Application Structure
Core Pages
/- Homepage with 8-product catalog and search/login- Authentication with SQL injection/profile- User dashboard (auth required)/flag- CTF flag submission system/terms- Legal framework and guidelines/purchase- Checkout with LFI and price manipulation/product/[id]- Product details with IDOR (IDs 1-8, hidden: 0, 999)
Key Features
- Professional UI: Dark theme with hacksmith branding
- Hint System: Toggle hints with ◉/◎ button
- Flag Tracking: Cookie-based progress with 8-hour expiration
- Notification System: Professional SVG-based alerts
- Terms & Conditions: Comprehensive educational permissions
🎮 Getting Started
Default Credentials
- User:
user/u53r - Admin:
admin/4dm1n
CTF Exploration
- Enable Hints: Click the hint toggle (◉) in navigation
- Test Search: Try XSS payloads in homepage search
- Login Bypass: Attempt SQL injection on login form
- Product Access: Change product IDs (try 0, 999, negative numbers)
- File Inclusion: Explore
?file=parameter in purchase flow - Price Manipulation: Modify prices during checkout
🔑 Hidden Flags & Challenges
- XSS Flags: Search-based script execution
- SQL Flags: Authentication bypass techniques
- IDOR Flags: Unauthorized product access
- LFI Flags: File system exploration
- Price Manipulation: Business logic exploitation
🐳 Docker Details
- Port: 80 (standard HTTP)
- Base:
node:20-alpine - User: Non-root security
- Build: Multi-stage optimization
🛡️ Security Notes
⚠️ Educational Use Only
- Contains intentional vulnerabilities
- Deploy in isolated environments only
- Never expose to public networks
- For authorized learning/testing only
📊 Technical Stack
- Next.js 14 with TypeScript
- Tailwind CSS for styling
- React Context for state management
- Cookie-based session persistence
- SVG icons with professional animations
🤝 Contributing
- Fork repository
- Create feature branch
- Implement security challenges
- Submit pull request
📄 License
MIT License - Educational use encouraged
🔥 Start your security journey at http://localhost after Docker deployment!
Description
GitHub account backup: https://github.com/s41r4j/THSVWA | Snapshot: 2026-11-06
147 MiB
0 Stars
1 Watchers
0 Forks
Languages
JavaScript
98.6%
TypeScript
1.3%