SAP NetWeaver AS JAVA 7.5 Directory Traversal
Posted on 19 November 2016
Application: SAP NetWeaver AS JAVA Versions Affected: SAP NetWeaver AS JAVA 7.1 to 7.5 Vendor URL: http://SAP.com Bugs: Directory traversal Sent: 04.12.2015 Reported: 05.12.2015 Vendor response: 05.12.2015 Date of Public Advisory: 09.08.2016 Reference: SAP Security Note 2280371 Author: Mathieu Geli (ERPScan) Description 1. ADVISORY INFORMATION Title: [ERPSCAN-16-032] SAP Telnet Console a Directory traversal vulnerability Advisory ID:[ERPSCAN-16-032] Risk: high Advisory URL: https://erpscan.com/advisories/erpscan-16-032-sap-netweaver-telnet-console-file-disclosure/ Date published: 11.11.2016 Vendors contacted: SAP 2. VULNERABILITY INFORMATION Class: Directory traversal Impact: read file from system Remotely Exploitable: yes Locally Exploitable: yes CVSS Information CVSS Base Score v3: 3.4 / 10 CVSS Base Vector: AV : Attack Vector (Related exploit range) Adjacent (A) AC : Attack Complexity (Required attack complexity) Low (L) PR : Privileges Required (Level of privileges needed to exploit) High (H) UI : User Interaction (Required user participation) None (N) S : Scope (Change in scope due to impact caused to components beyond the vulnerable component) Changed (C) C : Impact to Confidentiality Low (L) I : Impact to Integrity None (N) A : Impact to Availability None (N) 3. VULNERABILITY DESCRIPTION An authenticated user can disclose file content outside of the JVM through the SAP Telnet Console service. 4. VULNERABLE PACKAGES J2EE ENGINE SERVERCORE 7.10 J2EE ENGINE SERVERCORE 7.11 J2EE ENGINE SERVERCORE 7.20 J2EE ENGINE SERVERCORE 7.30 J2EE ENGINE SERVERCORE 7.31 J2EE ENGINE SERVERCORE 7.40 J2EE ENGINE SERVERCORE 7.50 5. SOLUTIONS AND WORKAROUNDS To correct this vulnerability, install SAP Security Note 2280371 6. AUTHOR Mathieu Geli (ERPScan) 7. TECHNICAL DESCRIPTION SAP Netweaver Telnet Console File Disclosure via the GREP command of the SYSTEM admin group. 7.1. Proof of Concept GREP ":" /etc/passwd at:x:25:25:Batch jobs daemon:/var/spool/atjobs:/bin/bash bin:x:1:1:bin:/bin:/bin/bash daemon:x:2:2:Daemon:/sbin:/bin/bash [...] 8. REPORT TIMELINE Sent: 04.12.2015 Reported: 05.12.2015 Vendor response: 05.12.2015 Date of Public Advisory: 09.08.2016 9. REFERENCES https://erpscan.com/advisories/erpscan-16-032-sap-netweaver-telnet-console-file-disclosure/ 10. ABOUT ERPScan Research ERPScan research team specializes in vulnerability research and analysis of critical enterprise applications. It was acknowledged multiple times by the largest software vendors like SAP, Oracle, Microsoft, IBM, VMware, HP for discovering more than 400 vulnerabilities in their solutions (200 of them just in SAP!). ERPScan researchers are proud of discovering new types of vulnerabilities (TOP 10 Web Hacking Techniques 2012) and of the "The Best Server-Side Bug" nomination at BlackHat 2013. ERPScan experts participated as speakers, presenters, and trainers at 60+ prime international security conferences in 25+ countries across the continents ( e.g. BlackHat, RSA, HITB) and conducted private trainings for several Fortune 2000 companies. ERPScan researchers carry out the EAS-SEC project that is focused on enterprise application security awareness by issuing annual SAP security researches. ERPScan experts were interviewed in specialized info-sec resources and featured in major media worldwide. Among them there are Reuters, Yahoo, SC Magazine, The Register, CIO, PC World, DarkReading, Heise, Chinabyte, etc. Our team consists of highly-qualified researchers, specialized in various fields of cybersecurity (from web application to ICS/SCADA systems), gathering their experience to conduct the best SAP security research. 11. ABOUT ERPScan ERPScan is the most respected and credible Business Application Cybersecurity provider. Founded in 2010, the company operates globally and enables large Oil and Gas, Financial, Retail and other organizations to secure their mission-critical processes. Named as an aEmerging Vendora in Security by CRN, listed among aTOP 100 SAP Solution providersa and distinguished by 30+ other awards, ERPScan is the leading SAP SE partner in discovering and resolving security vulnerabilities. ERPScan consultants work with SAP SE in Walldorf to assist in improving the security of their latest solutions. ERPScanas primary mission is to close the gap between technical and business security and provide solutions for CISO's to evaluate and secure SAP and Oracle ERP systems and business-critical applications from both cyberattacks and internal fraud. As a rule, our clients are large enterprises, Fortune 2000 companies and MSPs, whose requirements are to actively monitor and manage security of vast SAP and Oracle landscapes on a global scale. We afollow the suna and have two hubs, located in Palo Alto and Amsterdam, to provide threat intelligence services, continuous support and to operate local offices and partner network spanning 20+ countries around the globe. Adress USA: 228 Hamilton Avenue, Fl. 3, Palo Alto, CA. 94301 Phone: 650.798.5255 Twitter: @erpscan