Download presentation
Presentation is loading. Please wait.
Published byRandall Dorsey Modified over 9 years ago
1
Analysis of SQL injection prevention using a proxy server By: David Rowe Supervisor: Barry Irwin
2
Presentation Outline What SQL injection is Example Project Objectives Design and Implementation Expected Results Current Status Possible Extensions Questions
3
SQL injection SQL Injection is a method by which the parameters of a Web-based application are modified in order to change the SQL statements that are passed to a database. An attacker is able to insert a series of SQL statements into a 'query' by manipulating data input.
4
SQL injection
5
Example Vulnerable web page
6
In ASP, a critical vulnerability is the way in which the query string is created. example: var SQL = "select * from users where username = ' "+ username +" ' and password = ' "+ password +" '"; Example
7
Username: ‘;drop table users-- the 'users' table will be deleted, denying access to the application for all users
8
Example Query executed: select * from users where username = “ drop table users
9
Example
10
Project Goals Analyse the structure of SQL query commands Build a parser that will check allowable patterns of SQL statements Create a proxy server that will filter SQL commands. Prevent a SQL injection attack to a database using this proxy server. Prove that SQL injection can be prevented using the filter developed to work on the proxy server.
11
Development Environment Microsoft Windows XP Microsoft Visual Studio.net - C Sharp Microsoft Visual Source Safe Microsoft SQL Server 2000
12
Implementation Step
13
Expected Results Prevention of a SQL injection attack by filtering the queries using the proxy server List of best practices for –Web design –Database administration
14
Current Status Working proxy server –Extracts the SQL from a TDS packet –Logs that SQL query to a separate log file Work in progress: –Log to the database –Prevent a SQL injection attack White listing Black listing
15
Possible Extensions Handle other databases examples: Oracle, MySQL and Postgres Other operating systems example: Linux
16
Questions
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.