The Artima Developer Community
Sponsored Link

Java Answers Forum
SQL Injection

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

SQL Injection Posted: Aug 26, 2003 4:35 AM
Reply to this message Reply
Advertisement
Hi Guys,

This is for the web application developers out there who have not heard about the SQL Injection attack. I am sure most of you would be already familiar with these types of attacks; however I thought I might post some information I have so it might be useful for people who have not heard about it.

There are four types of SQL Injection type of attacks.

1. SQL Manipulation
2. Code Injection
3. Function Call Injection
4. Buffer Overflows

A simple example of a SQL manipulation is the login page in most of the application.

And most of the time the back end SQL will be something like this.


"SELECT * FROM users WHERE username = '" + loginName + "' and PASSWORD = '"+ password + "'"


where loginName and passwords are String variables.

in the login for the user can enter

Administrator for the Login Name and 123' or 'a' = 'a for password field and gain access to the system if proper defenses are not made against this attack. When these are typed, the resulting SQL will look like

SELECT * FROM users WHERE username = 'Administrator' and PASSWORD = '123' or 'a' = 'a'

for more information refer

http://www.integrigy.com/info/IntegrigyIntrotoSQLInjectionAttacks.pdf

http://www.nextgenss.com/papers/advanced_sql_injection.pdf

if you guys have any other meterial please make a post..

Topic: Help please! coding problem Previous Topic   Next Topic Topic: Array vs. ArrayList (or whatelse choice I have?)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use