Advisory
On 10.08.2021 a security relevant correction has been released by SAP SE. The manufacturer resolves an issue within ABAP.
SAP Note 3078312 addresses "[CVE-2021-33701] SQL Injection vulnerability in SAP NZDT Row Count Reconciliation" to prevent sql injection with a hot news risk for exploitation.
A workaround does 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
DMIS Mobile Plug-In or SAP S/4HANA allows an attacker with access to the highly privileged account to execute manipulated queries in the NZDT tool to gain access to Backend Database.Solution
An ASSERT statement will be added directly after the authorization check of function module IUUC_RECON_RC_COUNT_TABLE_BIG that enforces import parameter IT_WHERE_CLAUSE to be empty. If import parameter IT_WHERE_CLAUSE is not empty, the execution of the function module will fail with a short dump. Circumstances exist that prevent the timely installation of a patch provided by the manufacturer. In such cases, you may consider applying the suggested workaround as a temporary or compensating mitigation: "As a workaround for systems with software component version SAP_BASIS 740 or higher and active Unified Connectivity (UCON) runtime checks, the following steps described in the note.".
Affected System
The advisory 3078312 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
- DMIS 2011_1_620 4
- DMIS 2011_1_640 4
- DMIS 2011_1_700 4
- DMIS 2011_1_710 4
- DMIS 2011_1_730 4
- DMIS 2011_1_731 4
- DMIS 2018_1_752 4
- DMIS 2020 4
- SAPSCORE 125 3
- S4CORE 100 32
- S4CORE 101 43
- S4CORE 102 46
- S4CORE 103 49
- S4CORE 104 45
- S4CORE 105 33
- 9.9 [CVE-2021-38176] SQL Injection vulnerability in SAP NZDT Mapping Table Framework
- 9.9 [CVE-2023-0016] SQL Injection vulnerability in SAP Business Planning and Consolidation MS
- 9.8 [CVE-2023-37483] Multiple Vulnerabilities in SAP PowerDesigner
- 8.8 [CVE-2021-42064] SQL Injection vulnerability in SAP Commerce
- 7.2 SQL injection vulnerability in Database Monitors for Oracle