Skip links

[CVE-2021-44235] Code Injection vulnerability in utility class for SAP NetWeaver AS ABAP, SAP security note 3123196

Description

Symptom

Two methods of a utility class in SAP NetWeaver AS ABAP allows an attacker with high privileges and has direct access to SAP System, to inject code when executing with transaction (SE24 – Class Builder).

This could allow execution of arbitrary commands on the operating system, that could highly impact the Confidentiality, Integrity and Availability of the system.

Other Terms

Command Injection, OS command injection, CVE-2021-44235

Reason and Prerequisites

The following releases of component SAP_BASIS are affected

7.00 SP14-SP39 / 7.01 SP00-SP24 / 7.10 SP22-SP25 / 7.11 SP17-SP20 / 7.02 SP01-SP24 / 7.30 SP13-SP21 / 7.31 SP01-SP30 /
7.40 SP05-SP27 / 7.50 SP00-SP22 / 7.51 SP00-SP13 / 7.52 SP00-SP09 / 7.53 SP00-SP07 / 7.54 SP00-SP05 / 7.55 SP00-SP03 /
7.56 SP00-SP01

The user has permissions to use SE24/SE80 and execute development objects (authorization object = S_DEVELOP with fields OBJTYPE = CLAS and ACTVT = 16 ‘Execute’).

The compromised utility class is exclusively used for license bound SAP tool Post-Copy Automation (PCA) and has no impact on standard functionality.

With the fix the functionality is completely removed and directly integrated into the class where it is executed without the possibility to pass any parameter.

Solution

Option 1:

No action is needed when the user has no permission to execute development objects (authorization object = S_DEVELOP with fields OBJTYPE = CLAS and ACTVT = 16 ‘Execute’) through transactions SE24/SE80.

Option 2:

Implement the note with SNOTE to remove the coding. As the functionality is used for Post-Copy Automation (PCA) which is integated into SAP Basis for older releases/sps some dependent notes have to be implemented.

 
 

Available fix and Supported packages

SAP_BASIS|700|702| SAP_BASIS|710|711| SAP_BASIS|730|730| SAP_BASIS|731|731| SAP_BASIS|740|740| SAP_BASIS|750|756|

Affected component

SAP_BASIS

CVSS

Score:8.4
CVSS:3.0/AV:А/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Exploit


Detailed vulnerability information added to RedRays Security Platform. Contact [email protected] for details.

URL

https://launchpad.support.sap.com/#/notes/3123196

TAGS

Command Injection, OS command injection, CVE-2021-44235

Udemy SAP Security Course.

Join “SAP Security Core Concepts and Security Administration” which is part of the Blackhat course series. This course will help you master SAP security fundamentals, from securing SAP environments to managing user access and addressing vulnerabilities. It is ideal for IT professionals and SAP administrators, providing practical skills to safeguard critical business assets. Whether you’re a beginner or an expert looking to deepen your SAP security knowledge, this course is perfect for you.

More to explorer

SAP Hash Cracking Techniques

Understanding Hash Cracking Hashing is a one-way encryption technique employed to ensure data integrity, authenticate information, and secure passwords alongside other sensitive

SAP Security Patch Day – September 2024

As the second Tuesday of September 2024 approaches, SAP administrators and security professionals are preparing for another crucial event: SAP Security Patch

Special offer for SAP Security Udemy course!

$ 9.99

Join “SAP Security Core Concepts and Security Administration” which is part of the Blackhat course series.