bliman, on Oct 12 2005, 11:54 AM, said:
The impact of SQL injection varies depending on what information is in the database to be grabbed, what privileges the database user has that the web site uses, and the patch level of the database system. Any database system that uses SQL can be exploited to varying degrees, such as SQL Server, Oracle, MySQL, Access and others. Depending on privileges, a classic way to get control of a host running SQL Server is to use xp_cmdshell to run system commands. Many database systems also allow arbitrary files to be read.
Very true. A point that u can notice ; u dont need to connect to Mssql DB through something like SQLExec with a SA login to execute xp_cmdshell. On many asp and cfm pages the request is built dynamically with the parameters u entered in the windows form. This request is sent to a stocked procedure and executed with Exec. U can trick those parameters to make xp_cmdshell to be executed after the dynamic request. Of course u will need that the asp account have execute rights on xp_cmdshell. In this case u just need an Internet browser (and a little bit of MSSQL Syntax) :)