#1 Middle East & Africa Trusted Cybersecurity News & Magazine |

28 C
Dubai
Tuesday, June 3, 2025
HomeTopics 1Application SecurityCritical SAP NetWeaver Vulnerability Uncovered: How ReliaQuest Exposed CVE-2025-31324 and What It...

Critical SAP NetWeaver Vulnerability Uncovered: How ReliaQuest Exposed CVE-2025-31324 and What It Means for Enterprises

Date:

Related stories

spot_imgspot_imgspot_imgspot_img

A Looming Threat to Critical Business Systems. On April 22, 2025, cybersecurity firm ReliaQuest revealed an active exploitation campaign targeting SAP NetWeaver, the backbone of enterprise resource planning (ERP) systems used by governments and Fortune 500 companies. The vulnerability, later assigned CVE-2025-31324 (CVSS 10.0), allows attackers to upload malicious files and execute arbitrary code potentially compromising sensitive financial, logistics, and personnel data.

This article breaks down:

  • How the exploit works (with technical analysis of the JSP webshell attacks).
  • ReliaQuest’s proactive detection methods that identified the threat.
  • 10 critical mitigation steps for SAP customers.
  • Why this flaw makes SAP systems prime targets for nation-state actors and ransomware groups.

The Vulnerability: From Metadata Uploader to Malicious Execution

1. Exploit Overview

  • CVE ID: CVE-2025-31324
  • Type: Unrestricted file upload → Remote Code Execution (RCE)
  • Affected Component: SAP NetWeaver’s /developmentserver/metadatauploader endpoint.
  • Attack Vector: Attackers upload JSP webshells (e.g., helper.jsp, cache.jsp) to:
  j2ee/cluster/apps/sap.com/irj/servlet_jsp/irj/root/  


These files enable full system control via HTTP GET requests.

2. Attack Workflow

  1. Initial Access: Exploit the metadatauploader endpoint to upload a webshell.
  2. Persistence: Use the webshell to execute commands (e.g., deploy Brute Ratel C2).
  3. Evasion: Leverage Heaven’s Gate technique to bypass EDR in 64-bit systems.
  4. Lateral Movement: Steal credentials or exploit other SAP services.

Figure 1: Malicious POST request uploading a webshell (source: ReliaQuest)
![Exploit chain diagram showing webshell upload and command execution]

Why SAP NetWeaver? High-Value Targets

  1. Government Reliance: 90% of G2000 companies and 40+ national governments use SAP.
  2. Patch Lag: 60% of SAP systems run outdated versions (ERP Scan, 2024).
  3. Critical Data: SAP systems often house financial records, HR data, and supply chain info.

ReliaQuest’s Proactive Defense

Before SAP’s patch (April 24, 2025), ReliaQuest:

  • Deployed Detections: Flagged JSP files written to servlet_jsp/irj/root/.
  • Threat Hunts: Identified Brute Ratel and Heaven’s Gate in customer environments.
  • Shared IOCs: Published hashes of malicious JSP files (see Indicators of Compromise below).

10 Critical Mitigations for SAP Customers

1. Immediate Patching

  • Apply SAP’s Security Note #XXXXXX (requires customer login).

2. Disable Visual Composer

  • This deprecated feature is a common attack vector:
    “`abap
    TRANSLATION_TOOL_DISABLE = TRUE

3. Restrict MetadataUploader Access

– Block `/developmentserver/metadatauploader` at the firewall/WAF.

4. Hunt for Webshells

– Scan for files in:

j2ee/cluster/apps/sap.com/irj/servlet_jsp/irj/root/
“`

  • Use ReliaQuest’s IOCs (below).

5. Monitor for Brute Ratel

  • Detect MSBuild compiling C# code (e.g., msbuild.exe /t:Clean /p:Configuration=Debug).

6. Enable SAP Audit Logs

  • Forward logs to a SIEM (e.g., Splunk, Microsoft Sentinel).

7. Segment SAP Networks

  • Isolate SAP systems from OT networks and internet-facing servers.

8. Enforce Least Privilege

  • Restrict SAP_* users to minimal permissions.

9. Block Heaven’s Gate Syscalls

  • Use EDR rules to flag NtSetContextThread abuse.

10. Train SAP Basis Teams

  • Educate on webshell detection and emergency patching.

Indicators of Compromise (IOCs)

FileSHA-256 Hash
helper.jsp1f72bd2643995fab4ecf7150b6367fa1…
cache.jsp794cb0a92f51e1387a6b316b8b5ff83d…

Conclusion: SAP Security Can’t Wait

CVE-2025-31324 is a wake-up call for delayed SAP patching cycles. With ReliaQuest confirming active exploitation, organizations must:

  1. Patch immediately—especially governments and critical infrastructure.
  2. Assume compromise: Hunt for webshells and C2 beacons.
  3. Adopt Zero Trust: Segment SAP systems and enforce strict access controls.

🔗 Resources:

Ouaissou DEMBELE
Ouaissou DEMBELEhttp://cybercory.com
Ouaissou DEMBELE is a seasoned cybersecurity expert with over 12 years of experience, specializing in purple teaming, governance, risk management, and compliance (GRC). He currently serves as Co-founder & Group CEO of Sainttly Group, a UAE-based conglomerate comprising Saintynet Cybersecurity, Cybercory.com, and CISO Paradise. At Saintynet, where he also acts as General Manager, Ouaissou leads the company’s cybersecurity vision—developing long-term strategies, ensuring regulatory compliance, and guiding clients in identifying and mitigating evolving threats. As CEO, his mission is to empower organizations with resilient, future-ready cybersecurity frameworks while driving innovation, trust, and strategic value across Sainttly Group’s divisions. Before founding Saintynet, Ouaissou held various consulting roles across the MEA region, collaborating with global organizations on security architecture, operations, and compliance programs. He is also an experienced speaker and trainer, frequently sharing his insights at industry conferences and professional events. Ouaissou holds and teaches multiple certifications, including CCNP Security, CEH, CISSP, CISM, CCSP, Security+, ITILv4, PMP, and ISO 27001, in addition to a Master’s Diploma in Network Security (2013). Through his deep expertise and leadership, Ouaissou plays a pivotal role at Cybercory.com as Editor-in-Chief, and remains a trusted advisor to organizations seeking to elevate their cybersecurity posture and resilience in an increasingly complex threat landscape.

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories

spot_imgspot_imgspot_imgspot_img

LEAVE A REPLY

Please enter your comment!
Please enter your name here