Skip to main content
Vulnerability Database/CVE-2024-22128

CVE-2024-22128: SAP NetWeaver Business Client XSS Vulnerability

CVE-2024-22128 is a cross-site scripting flaw in SAP NetWeaver Business Client for HTML that allows unauthenticated attackers to inject malicious scripts. This article covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-22128 Overview

SAP NetWeaver Business Client (NWBC) for HTML contains a reflected Cross-Site Scripting (XSS) vulnerability caused by insufficient encoding of user-controlled input. An unauthenticated attacker can craft a malicious URL that executes arbitrary JavaScript in the context of a victim's browser session when the user interacts with the link. Successful exploitation produces limited impact to the confidentiality and integrity of application data, with no direct impact on availability. The flaw is tracked under CWE-79 and affects multiple SAP_UI and SAP_BASIS release trains used across SAP NetWeaver deployments.

Critical Impact

An unauthenticated attacker can execute arbitrary JavaScript in a victim's authenticated SAP session, enabling data disclosure and session-scoped actions.

Affected Products

  • SAP NetWeaver Business Client for HTML — SAP_UI versions 754, 755, 756, 757
  • SAP NetWeaver Business Client for HTML — SAP_BASIS versions 700, 701, 702, 731
  • Related CPE entry also lists SAP_UI 758

Discovery Timeline

  • 2024-02-13 - CVE-2024-22128 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-22128

Vulnerability Analysis

The vulnerability resides in the HTML rendering layer of SAP NetWeaver Business Client. The component accepts user-supplied parameters and reflects them into HTTP responses without applying context-aware output encoding. An attacker can therefore inject HTML or JavaScript payloads through request parameters that the application returns inside the rendered page.

Exploitation requires user interaction, consistent with a reflected XSS pattern. A victim must click or load an attacker-crafted URL while authenticated to the SAP application. Because the vulnerability changes the security scope (S:C), injected script executes with access to data and actions beyond the vulnerable component's own origin boundary, affecting other application contexts the browser trusts.

The scored impact is limited to partial confidentiality and integrity loss. Realistic attack outcomes include theft of session tokens, exfiltration of displayed business data, forced actions in the SAP UI, and phishing overlays rendered inside a trusted SAP origin.

Root Cause

The root cause is missing or insufficient output encoding of user-controlled input, classified as CWE-79: Improper Neutralization of Input During Web Page Generation. Input reflected into HTML, attribute, or JavaScript contexts is not neutralized for context-specific metacharacters.

Attack Vector

The attack vector is network-based and requires no authentication. The attacker delivers a crafted link through email, chat, or a compromised web page. When an authenticated SAP user visits the link, the server reflects the payload and the browser executes the injected script inside the SAP origin. No valid credentials are required on the attacker side; the privilege for script execution derives from the victim's active session.

See the SAP Security Patch Day advisory and SAP Note 3396109 for vendor-specific technical details.

Detection Methods for CVE-2024-22128

Indicators of Compromise

  • HTTP requests to NWBC for HTML endpoints containing suspicious URL-encoded JavaScript payloads such as %3Cscript%3E, javascript:, onerror=, or onload= in query parameters.
  • Outbound requests from user browsers to attacker-controlled domains immediately following access to SAP NWBC URLs.
  • Unexpected SAP UI redirects or anomalous DOM content reported by end users after clicking external links.

Detection Strategies

  • Inspect SAP web dispatcher and reverse-proxy access logs for request parameters containing HTML/JavaScript control characters directed at NWBC URLs.
  • Deploy a Web Application Firewall ruleset tuned for reflected XSS patterns targeting the /sap/bc/nwbc/* URL space.
  • Correlate SAP authentication events with downstream browser telemetry to identify session use from unexpected geolocations after XSS delivery.

Monitoring Recommendations

  • Forward SAP NetWeaver, ICM, and reverse-proxy logs to a centralized SIEM or data lake for query-based hunting on NWBC URL parameters.
  • Alert on SAP_UI and SAP_BASIS component versions remaining at vulnerable release levels after the vendor patch window.
  • Monitor browser extension or EDR telemetry for script execution originating from SAP hostnames with network callouts to non-SAP destinations.

How to Mitigate CVE-2024-22128

Immediate Actions Required

  • Apply the fix referenced in SAP Note 3396109 to all affected SAP_UI and SAP_BASIS components.
  • Inventory SAP NetWeaver landscapes to identify systems running SAP_UI 754–758 and SAP_BASIS 700, 701, 702, or 731.
  • Instruct SAP users to avoid clicking NWBC links received from untrusted sources until patches are applied.

Patch Information

SAP addressed this issue through SAP Security Patch Day. Administrators should download and apply the corrections described in SAP Note 3396109 and consult the SAP Security Patch Day document for implementation notes and prerequisites. Validate the fix in a non-production tier before rolling to production SAP systems.

Workarounds

  • Restrict access to the NWBC for HTML interface to trusted networks via SAP Web Dispatcher or network ACLs where business workflows allow.
  • Enforce a strict Content Security Policy (CSP) at the reverse proxy to limit inline script execution for SAP origins.
  • Enable WAF signatures that block reflected XSS payloads targeting SAP URL patterns until patching completes.
bash
# Example WAF rule concept (ModSecurity-style) to block reflected XSS on NWBC endpoints
SecRule REQUEST_URI "@beginsWith /sap/bc/nwbc" \
    "id:1002201,phase:2,deny,log,status:403,\
    chain,msg:'Potential XSS targeting SAP NWBC (CVE-2024-22128)'"
    SecRule ARGS "@rx (?i)(<script|javascript:|onerror=|onload=|<svg|<iframe)" \
        "t:none,t:urlDecodeUni,t:htmlEntityDecode"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.