Get Free Synopsis PDF
We will prepare a detailed synopsis for your college submission. Includes problem statement, objectives, DFD, ER diagram, and more.
This project implements a middleware layer that inspects incoming web form and query parameters for SQL injection patterns using regex rules and a simple token-anomaly classifier. It is demonstrated against a deliberately vulnerable sample Flask/MySQL application built for the project so students can safely see attacks blocked in real time. Blocked attempts are logged with the suspicious payload for review.
Problem Statement
SQL injection remains a top web vulnerability, yet many students write vulnerable queries without realising it until shown a live demonstration. A detection-and-prevention middleware built around a sample vulnerable app teaches safe coding and defensive filtering together.
Objectives
Study common SQL injection patterns and parameterised query defences
Build a deliberately vulnerable sample Flask/MySQL application for testing
Implement regex and anomaly-based detection middleware for request parameters
Add automatic input sanitisation/parameterisation as a prevention layer
Log blocked attempts with payload details for later review
Modules
Vulnerable Demo App
A small Flask/MySQL app with intentionally unsafe queries used only for authorised testing.
Detection Middleware
Inspects request parameters against SQL injection signatures and anomaly heuristics.
Prevention Layer
Rewrites or blocks suspicious queries and enforces parameterised query usage.
Logging Module
Records every blocked attempt with timestamp, source, and payload for review.
Review Dashboard
Displays blocked attempt history and detection statistics to the student.
Expected Output
A middleware that successfully blocks common SQL injection payloads against the bundled demo application, with a log of all detected and prevented attempts.
Future Scope
The project could be generalised into a reusable Flask extension and extended to detect NoSQL injection patterns for broader applicability.