If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Security Issue: SQL Injection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-21-06, 05:59
nishithshah nishithshah is offline
Registered User
 
Join Date: Aug 2006
Posts: 1
Question Security Issue: SQL Injection

I have gone through a terrible situation a week ago. One website was working fine since couple of years and suddenly it was hacked. I checked the entire code in all the pages and it was not at all modified.

When I checked the database, I found that javascript was inserted in it. As soon as a recordset was displaying it, javascript redirected that page to the hacker's site.. This was the mechanism was used by hacker.

I used PHP and MySQL for that site. Please tell me how to secure data in database? How to overcome it? Which database can be more secure compared to MySQL in such situations? Is is beneficial to use Oracle or MS SQL Server instead of MySQL?

Nishith Shah

Last edited by nishithshah; 08-21-06 at 06:16.
Reply With Quote
  #2 (permalink)  
Old 08-21-06, 07:31
dbmab dbmab is offline
Registered User
 
Join Date: Apr 2006
Location: Denver, Co. USA
Posts: 240
This problem is not due to the type of database. Switching to another one won't prevent the problem.

This problem is caused by data that can be entered by a user on your site and inserted into the database. If the data is not checked and validated before it is entered into the database, a hacker can insert his own data or run his own SQL commands (even ones which replace or alter a record containing a password with the hacker's own password) ...

See this link for more information about SQL Injection - http://www.php.net/manual/en/securit...-injection.php
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On