Advisory
On 23.03.2021 a security relevant correction has been released by SAP SE. The manufacturer resolves an issue within ABAP.
SAP Note 3005802 addresses "Cross-Site Request Forgery (CSRF) vulnerability in S/4HANA Finance for advanced payment management" to prevent cross-site request forgery (xsrf) with a medium risk for exploitation.
A workaround does exist, according to SAP Security Advisory team. It is advisable to implement the correction as part of maintenance, 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
S/4HANA Finance for advanced payment management allows an attacker to send an unintended request to the webserver with an authenticated user cookie. This vulnerability is due to insufficient CSRF protectionSolution
The fix changes any function import HTTP requests from GET to POST allowing for CSRF protection. 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: "Cross-site scripting/request forgery filter engine on IDS/IPS/firewall systems. ".
Affected System
The advisory 3005802 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
- ECC-SE 803
- S4CORE 105 33
- S4COREOP 104 2
- 9.9 [CVE-2021-33690] Server Side Request Forgery vulnerability in SAP NetWeaver Development Infrastructure (Component Build Service)
- 7.6 [CVE-2020-6275] Server Side Request Forgery vulnerability in SAP NetWeaver AS ABAP
- 6.3 Cross-Site Request Forgery (CSRF) vulnerability in multiple SAP Sybase products
- 5.5 Cross-Site Request Forgery (CSRF) vulnerability in Cash Management
- 5.4 Cross-Site Request Forgery (CSRF) vulnerability in S/4HANA OP2020, OP1909 in Import Financial Plan Data