Lucene search
K

SAP MaxDB <= 7.6.03.07 pre-auth Remote Command Execution Exploit

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

SAP MaxDB version 7.6.03 build 007 pre-auth remote command executio

Code

                                                #######################################################################

                             Luigi Auriemma

Application:  SAP MaxDB
              https://www.sdn.sap.com/irj/sdn/maxdb
              http://www.sap.com
Versions:     &#60;= 7.6.03 build 007
Platforms:    Windows, Linux and Solaris
Bug:          pre-auth remote commands execution
Exploitation: remote
Date:         09 Jan 2008
Author:       Luigi Auriemma
              e-mail: [email protected]
              web:    aluigi.org


#######################################################################


1) Introduction
2) Bug
3) The Code
4) Fix


#######################################################################

===============
1) Introduction
===============


SAP MaxDB is a commercial and widely known and used database.


#######################################################################

======
2) Bug
======


The MaxDB server executes &#34;cons.exe DATABASE COMMAND&#34; through system()
when some special commands are called by the user.
Some of these special commands are &#34;show&#34; and &#34;exec_sdbinfo&#34; and this
last one is just one of the small amount of commands which can be
executed by the unauthenticated users before logging in.

The usage of system() for executing the cons program allows an external
unauthenticated attacker to execute any command he wants on the target
SAP MaxDB server simply passing the &#34;&&&#34; or other patterns for the
execution of multiple commands in the shell.

So it&#39;s just enough to use the following SAP command to see the content
of C: on Windows (the bug is naturally exploitable on any other
platform supported by the server):

  exec_sdbinfo && echo dir c:\ | cmd.exe

Then the rest and all the other possibilities of exploiting this
vulnerability are in the fantasy of the attacker...


#######################################################################

===========
3) The Code
===========


http://aluigi.org/poc/sapone.zip
http://www.exploit-db.com/sploits/2008-sapone.zip


#######################################################################

======
4) Fix
======


No fix


#######################################################################

# milw0rm.com [2008-01-09]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
13