|
|
|
UDP Broadcaster
      
Group: General Forum Members
Last Login: Saturday, February 28, 2009 6:51 AM
Points: 1,489,
Visits: 7
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Today @ 2:46 AM
Points: 2,750,
Visits: 1,409
|
|
I think this also illustrates why DBA's need to included in development and why code must be vetted by someone competent to do so. If you are going to use the command object then you can go one better and wrap it all up in a DLL. In addition to the SQL Injection attack protection you are running compiled code. I have seen cases where tweaking IIS caused ASP to start spewing out either hacker friendly error messages or in one case ASP source code complete with connection strings .
LinkedIn Profile
|
|
|
|
|
Keeper of the Duck
Group: Moderators
Last Login: 2 days ago @ 1:55 PM
Points: 6,584,
Visits: 1,789
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 8:38 AM
Points: 1,032,
Visits: 390
|
|
Good information, thank you Chris. As a DBA SQL Injection is one of my big concerns. My biggest problem usually lies in getting our developers to appreciate that it's a real problem that they need to be constantly aware of. By limiting (eliminating) all direct grants at the table level and forcing all access through stored procedures, we can go quite a long way to safeguard our data. As Chris points out, stored procs, by themselves, don't eliminate the threat, but if all access is controlled through them, an attacker will not be able to do, or see, anything in the database that isn't specifically allowed anyway.
/*****************
If most people are not willing to see the difficulty, this is mainly because, consciously or unconsciously, they assume that it will be they who will settle these questions for the others, and because they are convinced of their own capacity to do this. -Friedrich August von Hayek
*****************/
|
|
|
|
|
Keeper of the Duck
Group: Moderators
Last Login: 2 days ago @ 1:55 PM
Points: 6,584,
Visits: 1,789
|
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 8:38 AM
Points: 1,032,
Visits: 390
|
|
True enough, but as a rule we don't allow cross-database ownership chaining. That, combined with locking down master as much as possible helps mitigate that threat. I was not implying that forcing the use of sp's eliminates the risk, but as a DBA I'm not willing to just leave it all in the developer's hands either... The problem should be attacked at both ends.
/*****************
If most people are not willing to see the difficulty, this is mainly because, consciously or unconsciously, they assume that it will be they who will settle these questions for the others, and because they are convinced of their own capacity to do this. -Friedrich August von Hayek
*****************/
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Tuesday, January 05, 2010 5:53 AM
Points: 383,
Visits: 47
|
|
Database Administrators should also be invloved in the development of organisational standards for software development. In my organisation we have a document that details the programming standards, and this includes standards for accessing databases. Code reviews help ensure that developers adhere to these standards. We also have a library which all user-input is passed through and casted to the correct data type. All developers are obliged to use this library.
Keith
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Tuesday, January 05, 2010 5:53 AM
Points: 383,
Visits: 47
|
|
Database Administrators should also be invloved in the development of organisational standards for software development. In my organisation we have a document that details the programming standards, and this includes standards for accessing databases. Code reviews help ensure that developers adhere to these standards. We also have a library which all user-input is passed through and casted to the correct data type. All developers are obliged to use this library.
Keith
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Tuesday, January 05, 2010 5:53 AM
Points: 383,
Visits: 47
|
|
Database Administrators should also be invloved in the development of organisational standards for software development. In my organisation we have a document that details the programming standards, and this includes standards for accessing databases. Code reviews help ensure that developers adhere to these standards. We also have a library which all end-user input is passed through and casted to the correct data type. All developers are obliged to use this library. Sorry about the multiple posts - I kept on getting an error message each time I posted saying there was a problem casting from DBNull to a string - didn't realise that the post was succeeding each time.
Keith
|
|
|
|
|
Keeper of the Duck
Group: Moderators
Last Login: 2 days ago @ 1:55 PM
Points: 6,584,
Visits: 1,789
|
|
|
|
|