Advisory
A note with CVSS 7.1 for component WP-WSR was released by SAP on 08.02.2022. The correction/advisory 3140587 was described with "[CVE-2022-22540] SQL Injection vulnerability in SAP NetWeaver AS ABAP (Workplace Server)" and affects the system type ABAP.
A workaround does not exist, according to SAP Security Advisory team. It is advisable to implement the correction as monthly patch process.
The vulnerability addressed is sql injection (read) within ABAP.
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
SAP NetWeaver ABAP does dynamically create an SQL statement where an attacker is able to change the query, allowing the attacker to read table content that would otherwise be restricted.Solution
The application no longer dynamically create the WHERE clause of the SQL statement and thus prevents this type of attack
Affected System
The advisory 3140587 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 66
- SAP_BASIS 710-711 21
- SAP_BASIS 731 78
- SAP_BASIS 740 81
- SAP_BASIS 750-756 12
- SAP_BASIS 787 5