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 > SQL security question

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-07, 05:00
pearl2 pearl2 is offline
Registered User
 
Join Date: Nov 2003
Location: Sinapore
Posts: 187
SQL security question

Hello,

I've two questions regarding SQL security in the context of web scripting.

Q1: Are there any characters that can possibly damage or corrupt a table's data?

My understanding is that there's no danger so any kinds of input can be inserted into a table. But when these characters are displayed on a web page, the characters need to be unescaped ( e.g. a double quote " becomes " ) or else they can mess up the page's display. Worse, malicious code can be injected to allow unauthorised viewing of files or access to the server's resources.

Q2: When an input (QUERY) is used in a query e.g. (SELECT * FROM users WHERE username=QUERY), the input needs to be checked to ensure that no no malicious code is injected.

Could anyone enlighten me on the above?

Thanks in anticipation
Reply With Quote
  #2 (permalink)  
Old 11-26-07, 04:50
gvee gvee is offline
www.gvee.co.uk
 
Join Date: Jan 2007
Location: UK
Posts: 10,156
Question 2 is not so much a question, more a statement of fact. So here's something for you to read on the subject.
__________________
George
Twitter | Blog
Reply With Quote
  #3 (permalink)  
Old 11-29-07, 11:07
Peak Consulting Peak Consulting is offline
Registered User
 
Join Date: Nov 2007
Posts: 20
SQL injection

Search for SQL injection on the web. there are some great movies on you tube about this
__________________
Peak Consulting - Business Intelligence Experts
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