Skip to content
File upload Write-up Intermediate

Technical Analysis of SAP Exploit Script Used in JLR, Harrods Hacks

The SAP NetWeaver Visual Composer Metadata Uploader endpoint lacked an authorization check, so an unauthenticated attacker could upload arbitrary files such as a JSP web shell and then request it to run commands on the server. The analysed script automates this upload and optionally drops a persistent shell.

detect.fyi

Published on detect.fyi

This script targets a critical zero-day vulnerability (now identified as CVE-2025–31324) in SAP NetWeaver’s Visual Composer Metadata Uploader component. The vulnerability is a missing authorization check on the HTTP endpoint /developmentserver/metadatauploader, allowing unauthenticated file uploads to the server’s…

SIMKRA, on detect.fyi

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the metadata uploader servlet performed no authentication or file-type validation before writing uploaded files into a web-accessible directory.

Impact

An unauthenticated attacker could upload a web shell and run operating system commands with the privileges of the SAP service account, potentially leading to full compromise of the server.

What the attacker needed

Network access to the SAP server; no credentials required

How it was found

  1. Send an HTTP POST to the metadata uploader endpoint on the SAP server.
  2. Format the request as multipart form data with a part named file containing the payload.
  3. The server writes the uploaded file into a web-accessible directory.
  4. Request the uploaded file over HTTP to trigger execution of the payload.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A part of SAP's web software accepted files from anyone, without asking them to log in first. Because the server would later run certain uploaded files, an attacker could put a small program on the server and then ask the server to run it, effectively controlling the machine. This is called remote code execution.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.