Advisory
On 14.03.2017 a security relevant correction has been released by SAP SE. The manufacturer resolves an issue within ABAP.
SAP Note 2418823 addresses "Update 1 to Note 2319506" to prevent sql injection (read/write) with a high risk for exploitation.
A workaround does not exist, according to SAP Security Advisory team. It is advisable to implement the correction as monthly patch process, the team suggests.
Missing authority checks are still the most common security defect related to authorizations in custom code. Since SAP uses an explicit authorization model, an authority checks must be coded in order to be executed. If an explicit check is not coded, all users have access. This type of vulnerability not only exists in SAP standard it also exists in customer coding. Check your custom developments for vulnerabilities that pose a risk to your systems. SecurityBridge helps detect code vulnerabilities before they are implemented in production.
Risk specification
The function modules STUO_GET_ORA_SYS_TABLE and STUO_GET_ORA_SYS_TABLE_2 allow an authenticated attacker to inject arbitrary SQL statements which may lead to sensitive data being leaked or data being improperly manipulated or the system brought to standstill.Solution
Additional checks have been added before executing the SQL statements to prohibit exploiting the vulnerability.
Affected System
The advisory 2418823 describes a problem within an ABAP based systems of a specific version. Affected versions are described below. ABAP software is deployed in various software components and is widely used within the SAP product portfolio.
SAP NetWeaver Application Server (formally known as SAP Web Application Server) is a building block of SAP NetWeaver. It is the foundation for most software products developed by SAP SE. SAP NetWeaver systems exist with Java and/or ABAP stacks. The advisory could be relevant for single and dual-stack ABAP installations.
The advisory is valid for
- SAP_BASIS 700-702 64
- SAP_BASIS 710-711 21
- SAP_BASIS 730 34
- SAP_BASIS 731 75
- SAP_BASIS 740 78
- SAP_BASIS 750-751
- 8.8 [CVE-2020-6241] SQL Injection vulnerability in SAP Adaptive Server Enterprise
- 7.2 [CVE-2020-6253] SQL Injection vulnerability in SAP Adaptive Server Enterprise (Web Services)
- 7.2 [CVE-2018-2450] SQL Injection Vulnerability in SAP MaxDB/liveCache
- 5.4 SQL Injection in SAF-T Portugal
- 4.1 [CVE-2023-49581] SQL Injection vulnerability in SAP NetWeaver Application Server ABAP and ABAP Platform