SQLix is a hands-on, full-stack platform designed to demonstrate SQL Injection vulnerabilities and their mitigation techniques. Built with React, Spring Boot, MySQL, and Docker, SQLix allows users to experiment with a login system that can be toggled between vulnerable and secure modes, showcasing the stark differences in query behavior.
SQLix empowers developers, students, and security enthusiasts to learn about SQL Injection attacks and their prevention in a safe, interactive environment. Users can deliberately attempt SQL injection attacks on a sample login form, then switch to a secure mode to see how parameterized queries defend against such exploits.
- Frontend: React.js, Tailwind CSS
- Backend: Spring Boot (Java), RESTful APIs
- Database: MySQL
- Authentication: Simple session-based (for demonstration)
- Deployment: Frontend (Vercel), Backend (Render using Docker image)
- Vulnerable/Secure Toggle: Instantly switch between insecure (string concatenation) and secure (parameterized) SQL query modes.
- Login Demo: Try real SQL injection payloads against a sample login form.
- Educational UI: Explanations and feedback for each login attempt and toggle state.
- Containerized Backend: Easily deployable with Docker.
- Real-Time Results: Observe how the backend processes different inputs.
- Illustrated the dangers of SQL Injection with hands-on experimentation.
- Demonstrated the effectiveness of parameterized queries as a defense.
- Designed a toggle system to switch backend logic at runtime.
- Solved CORS and environment management for frontend-backend integration.
- Containerized the backend for seamless deployment.
git clone https://github.com/sreenand76/SQLiX.git
cd sqlix cd sqlix-frontend
npm install
npm run devcd sqlix-backend
mvn clean install
mvn spring-boot:run- User: [email protected] / demo123
- Add multi-step SQLi labs (e.g., data extraction, UNION-based attacks).
- Integrate explanations for common SQLi payloads.
- Add support for more databases (PostgreSQL, SQLite).
- Provide downloadable attack/defense logs for classroom use.
Feedback and collaboration are welcome!
Connect with me on LinkedIn or email at [email protected].