Click here to Skip to main content
15,917,618 members
Home / Discussions / Database
   

Database

 
Questionmultiple rows output to one rows Pin
nmandaliya15-Dec-06 7:41
nmandaliya15-Dec-06 7:41 
Questiongetting "unsupported data" in the column when selected Price from table field Pin
yogita charhate15-Dec-06 4:33
yogita charhate15-Dec-06 4:33 
AnswerRe: getting "unsupported data" in the column when selected Price from table field Pin
Frank Kerrigan15-Dec-06 5:21
Frank Kerrigan15-Dec-06 5:21 
QuestionExecute a Command Line App from Stored Procedure Pin
Kevin Nicol15-Dec-06 1:40
Kevin Nicol15-Dec-06 1:40 
AnswerRe: Execute a Command Line App from Stored Procedure Pin
Colin Angus Mackay15-Dec-06 3:35
Colin Angus Mackay15-Dec-06 3:35 
GeneralRe: Execute a Command Line App from Stored Procedure Pin
Kevin Nicol15-Dec-06 5:16
Kevin Nicol15-Dec-06 5:16 
GeneralRe: Execute a Command Line App from Stored Procedure Pin
Frank Kerrigan15-Dec-06 5:23
Frank Kerrigan15-Dec-06 5:23 
GeneralRe: Execute a Command Line App from Stored Procedure Pin
Colin Angus Mackay15-Dec-06 6:15
Colin Angus Mackay15-Dec-06 6:15 
Kevin Nicol wrote:
Whats the security risk?


Allowing external commands to function outside of SQL Server opens some holes in a data based application. If a poorly written front appliction is attacked, or a firewall misconfigured, it is possible for an attacker to gain access to the SQL server and then from there launch commands on the server.

The problem is exacerbated by the fact that many SQL Server installations are runing in the System Account. (If I remember correctly, this was the default before Service Pack 3. After that Full SQL Server installations suggested you create a specific account for SQL Server process to run in, however they still kept a nice handy radio button to swap it back to the system account - many lazy DBAs install SQL Server to use the system account).

The system account has greater authority than the Admin account on the box. For example, did you ever notice in RegEdit that there are apparently empty folders called SECURITY in various locations? If you launch RegEdit in the system account you can see what's in there. But try it with an admin account and they look empty again.

In my SQL Injection Attack presentations I use xp_cmdshell to show how an attacker can go in through a web application and rip a full directory listing off the hard disk. I could continue the presentation and actually have it stream a file that has been routed through SQL Server into the web application then over HTTP. I don't go that far because the directory listing trick is enough to get people to sit up and consider security more seriously.


Upcoming Scottish Developers events:
* Glasgow: Tell us what you want to see in 2007


My: Website | Blog | Photos

QuestionArchiving Production database Pin
drequinox15-Dec-06 0:01
drequinox15-Dec-06 0:01 
AnswerRe: Archiving Production database Pin
Frank Kerrigan15-Dec-06 3:36
Frank Kerrigan15-Dec-06 3:36 
QuestionRed Gates's SQL Packager Vs Backup/Restore Pin
devvvy14-Dec-06 21:42
devvvy14-Dec-06 21:42 
AnswerRe: Red Gates's SQL Packager Vs Backup/Restore Pin
Frank Kerrigan14-Dec-06 23:58
Frank Kerrigan14-Dec-06 23:58 
QuestionDTS - SQL Server: Connection/memory leak? Transaction deadlocks? Pin
devvvy14-Dec-06 21:16
devvvy14-Dec-06 21:16 
AnswerRe: DTS - SQL Server: Connection/memory leak? Transaction deadlocks? Pin
Frank Kerrigan14-Dec-06 23:52
Frank Kerrigan14-Dec-06 23:52 
QuestionHow can I specify temp table as Source/Destination table for DTS "Transform Data Task"? Pin
devvvy14-Dec-06 21:10
devvvy14-Dec-06 21:10 
AnswerRe: How can I specify temp table as Source/Destination table for DTS "Transform Data Task"? Pin
Frank Kerrigan14-Dec-06 23:51
Frank Kerrigan14-Dec-06 23:51 
GeneralURGENT Re: How can I specify temp table as Source/Destination table for DTS "Transform Data Task"? Pin
devvvy17-Dec-06 17:09
devvvy17-Dec-06 17:09 
QuestionExporting and Import DTS packages? Pin
devvvy14-Dec-06 21:08
devvvy14-Dec-06 21:08 
AnswerRe: Exporting and Import DTS packages? Pin
Frank Kerrigan14-Dec-06 23:48
Frank Kerrigan14-Dec-06 23:48 
GeneralRe: Exporting and Import DTS packages? Pin
devvvy16-Dec-06 15:37
devvvy16-Dec-06 15:37 
QuestionCursor and set , execute Statement related Query Pin
param thaker14-Dec-06 19:47
param thaker14-Dec-06 19:47 
AnswerRe: Cursor and set , execute Statement related Query Pin
Frank Kerrigan14-Dec-06 23:54
Frank Kerrigan14-Dec-06 23:54 
QuestionOpening and Closing Conneciton for a loop Pin
Amrish Deep14-Dec-06 17:05
Amrish Deep14-Dec-06 17:05 
AnswerRe: Opening and Closing Conneciton for a loop Pin
Paul Conrad14-Dec-06 18:12
professionalPaul Conrad14-Dec-06 18:12 
AnswerRe: Opening and Closing Conneciton for a loop Pin
coolestCoder14-Dec-06 19:01
coolestCoder14-Dec-06 19:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.