Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
vgr.raju
Yak Posting Veteran
95 Posts |
Posted - 2005-08-24 : 22:00:02
|
| I would like to know about sql injections in stored procedures?I would appreciate quick response..Thanks |
|
|
Kristen
Test
22859 Posts |
|
|
vgr.raju
Yak Posting Veteran
95 Posts |
Posted - 2005-08-26 : 02:39:42
|
Hi kristen, Thank you for your reply.I have been assigned some stored procedures to test against the sql injection.In those stored procedures,we are passing the input parameters through the function.That function takes care of the sql injection.I would like to find some way to get away those functions and send sql queries to the stored procedures. The following is the function we use against the sql injection.for example we send the parameter as a string to the function and get the value from the function. SELECT @String = REPLACE (@String, '''''', '''') SELECT @String = REPLACE (@String, '''', '''''') SELECT @String = REPLACE (@String, '--', '') SELECT @String = REPLACE (@String, '[', '') SELECT @String = REPLACE (@String, ']', '') SELECT @String = REPLACE (@String, '%', '[%]') SELECT @String = REPLACE (@String, '_', '[_]')Is it possible to get away this function ,if so ,pls let me know.Thanks. |
 |
|
|
|
|
|
|
|