bazz
02-02-2010, 02:47 AM
Hi,
I have the following sort of insert statement and I want to be sure I understand the security stuff.
pseudo code
[code]
insert into my_table
set (col2, col3)
values ( 'paragraph_heading', 'a_paragraph' )
where business_id = '1'
[code]
The 2nd and 3rd cols are filled with user inputted data. the WHERE is provided by the session or a scripted query with no user input.
So, my question is... can an injection be done in the text column or just in the where (or AND ) clauses? I need to allow nealry all characters to be insertable for the paragraph (text format) but I wonder if that could leave it open to an injection attack. something tells me the WHERE and AND clauses are where the attack could come from.
bazz
I have the following sort of insert statement and I want to be sure I understand the security stuff.
pseudo code
[code]
insert into my_table
set (col2, col3)
values ( 'paragraph_heading', 'a_paragraph' )
where business_id = '1'
[code]
The 2nd and 3rd cols are filled with user inputted data. the WHERE is provided by the session or a scripted query with no user input.
So, my question is... can an injection be done in the text column or just in the where (or AND ) clauses? I need to allow nealry all characters to be insertable for the paragraph (text format) but I wonder if that could leave it open to an injection attack. something tells me the WHERE and AND clauses are where the attack could come from.
bazz