CVE Vulnerabilities

CVE-2023-40309

Incorrect Authorization

Published: Sep 12, 2023 | Modified: Sep 28, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

SAP CommonCryptoLib does not perform necessary authentication checks, which may result in missing or wrong authorization checks for an authenticated user, resulting in escalation of privileges. Depending on the application and the level of privileges acquired, an attacker could abuse functionality restricted to a particular user group as well as read, modify or delete restricted data.

Weakness

The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. This allows attackers to bypass intended access restrictions.

Affected Software

Name Vendor Start Version End Version
Commoncryptolib Sap 8.0.0 (including) 8.0.0 (including)
Content_server Sap 6.50 (including) 6.50 (including)
Content_server Sap 7.53 (including) 7.53 (including)
Content_server Sap 7.54 (including) 7.54 (including)
Extended_application_services_and_runtime Sap 1.0 (including) 1.0 (including)
Hana_database Sap 2.0 (including) 2.0 (including)
Host_agent Sap 722 (including) 722 (including)
Netweaver_application_server_abap Sap 7.22ext (including) 7.22ext (including)
Netweaver_application_server_abap Sap kernel_7.22 (including) kernel_7.22 (including)
Netweaver_application_server_abap Sap kernel_7.53 (including) kernel_7.53 (including)
Netweaver_application_server_abap Sap kernel_7.54 (including) kernel_7.54 (including)
Netweaver_application_server_abap Sap kernel_7.77 (including) kernel_7.77 (including)
Netweaver_application_server_abap Sap kernel_7.85 (including) kernel_7.85 (including)
Netweaver_application_server_abap Sap kernel_7.89 (including) kernel_7.89 (including)
Netweaver_application_server_abap Sap kernel_7.91 (including) kernel_7.91 (including)
Netweaver_application_server_abap Sap kernel_7.92 (including) kernel_7.92 (including)
Netweaver_application_server_abap Sap kernel_7.93 (including) kernel_7.93 (including)
Netweaver_application_server_abap Sap kernel_8.04 (including) kernel_8.04 (including)
Netweaver_application_server_abap Sap kernel64nuc_7.22 (including) kernel64nuc_7.22 (including)
Netweaver_application_server_abap Sap kernel64nuc_7.22ext (including) kernel64nuc_7.22ext (including)
Netweaver_application_server_abap Sap kernel64uc_7.22 (including) kernel64uc_7.22 (including)
Netweaver_application_server_abap Sap kernel64uc_7.22ext (including) kernel64uc_7.22ext (including)
Netweaver_application_server_abap Sap kernel64uc_7.53 (including) kernel64uc_7.53 (including)
Netweaver_application_server_abap Sap kernel64uc_8.04 (including) kernel64uc_8.04 (including)
Netweaver_application_server_java Sap kernel_7.22 (including) kernel_7.22 (including)
Netweaver_application_server_java Sap kernel_7.53 (including) kernel_7.53 (including)
Netweaver_application_server_java Sap kernel_7.54 (including) kernel_7.54 (including)
Netweaver_application_server_java Sap kernel_7.77 (including) kernel_7.77 (including)
Netweaver_application_server_java Sap kernel_7.85 (including) kernel_7.85 (including)
Netweaver_application_server_java Sap kernel_7.89 (including) kernel_7.89 (including)
Netweaver_application_server_java Sap kernel_7.91 (including) kernel_7.91 (including)
Netweaver_application_server_java Sap kernel_7.92 (including) kernel_7.92 (including)
Netweaver_application_server_java Sap kernel_7.93 (including) kernel_7.93 (including)
Netweaver_application_server_java Sap kernel_8.04 (including) kernel_8.04 (including)
Netweaver_application_server_java Sap kernel64nuc_7.22 (including) kernel64nuc_7.22 (including)
Netweaver_application_server_java Sap kernel64nuc_7.22ext (including) kernel64nuc_7.22ext (including)
Netweaver_application_server_java Sap kernel64uc_7.22 (including) kernel64uc_7.22 (including)
Netweaver_application_server_java Sap kernel64uc_7.22ext (including) kernel64uc_7.22ext (including)
Netweaver_application_server_java Sap kernel64uc_7.53 (including) kernel64uc_7.53 (including)
Netweaver_application_server_java Sap kernel64uc_8.04 (including) kernel64uc_8.04 (including)
Sapssoext Sap 17.0 (including) 17.0 (including)
Web_dispatcher Sap 7.22ext (including) 7.22ext (including)
Web_dispatcher Sap 7.53 (including) 7.53 (including)
Web_dispatcher Sap 7.54 (including) 7.54 (including)
Web_dispatcher Sap 7.77 (including) 7.77 (including)
Web_dispatcher Sap 7.85 (including) 7.85 (including)
Web_dispatcher Sap 7.89 (including) 7.89 (including)

Extended Description

Assuming a user with a given identity, authorization is the process of determining whether that user can access a given resource, based on the user’s privileges and any permissions or other access-control specifications that apply to the resource. When access control checks are incorrectly applied, users are able to access data or perform actions that they should not be allowed to perform. This can lead to a wide range of problems, including information exposures, denial of service, and arbitrary code execution.

Potential Mitigations

  • Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) [REF-229] to enforce the roles at the appropriate boundaries.
  • Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • For example, consider using authorization frameworks such as the JAAS Authorization Framework [REF-233] and the OWASP ESAPI Access Control feature [REF-45].
  • For web applications, make sure that the access control mechanism is enforced correctly at the server side on every page. Users should not be able to access any unauthorized functionality or information by simply requesting direct access to that page.
  • One way to do this is to ensure that all pages containing sensitive information are not cached, and that all such pages restrict access to requests that are accompanied by an active and authenticated session token associated with a user who has the required permissions to access that page.

References