SAP NetWeaver — 2 vulnerability checks

noctis ships 2 vulnerability checks for SAP NetWeaver, covering 3 CVEs; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

SAP NetWeaver Visual Composer Unauthenticated Metadata Uploader

CVECVE-2025-31324
Severitycritical · CVSS 10.0
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, tcp_dialogue, match · highest QoD 75
Feedtests/vulnerabilities/sap-netweaver/CVE-2025-31324.yaml

Sends an unauthenticated POST to the Visual Composer /developmentserver/metadatauploader servlet with a small inert ZIP (one serialized .properties entry, nothing is written) and reports the host when the uploader processes it and answers its own FAILED/Cause status, which a system with SAP note 3594142 refuses before processing. Matched words never appear in the request, so pages that echo the request are not reported.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. TCP dialogue: one binary protocol frame
  3. Parses / computes the next value with a Rhai script
  4. Checks verdict.processed for ^true$ → finding QoD 75: Unauthenticated POST /developmentserver/metadatauploader?CONTENTTYPE=MODEL&CLIENT=1 was processed by the Visual Composer uploader (…): …

References:

Feed source — tests/vulnerabilities/sap-netweaver/CVE-2025-31324.yaml
# SAP NetWeaver Visual Composer Metadata Uploader — CVE-2025-31324 (SAP note 3594142)
#
# The /developmentserver/metadatauploader servlet of Visual Composer
# (VCFRAMEWORK) runs without an authorization check: an anonymous POST is
# unpacked and processed, which attackers turned into JSP web-shell uploads.
# The fix adds the authorization check, so a patched system refuses the
# anonymous upload before processing it.
#
# Proof (same request as the public Nuclei template, verified on real targets):
# an unauthenticated POST ?CONTENTTYPE=MODEL&CLIENT=1 whose body is a ZIP holding
# one `.properties` entry (a serialized java.util.Properties). Only a vulnerable
# uploader processes it and answers its own "FAILED ... Cause ..." status, two
# words the request never carries, so a page that merely echoes the request
# (honeypot, debug, WAF or error page) is not reported (#2369). The previous
# version matched the request path in the GET /developmentserver/ body, and its
# OOB step uploaded a URL in a plain-text "zip" that a real uploader never fetches.
#
# The serialized object is inert: a HashMap keyed by a java.net.URL whose host
# is under the reserved .invalid TLD, so at most the target attempts one DNS
# lookup that cannot resolve. Nothing is written to the target. The Nuclei
# template additionally confirms the deserialization through that DNS lookup
# (interactsh); the noctis OOB server records HTTP callbacks only (#2461), so
# this feed relies on the in-band status alone.
#
# The ZIP (stored, 684 bytes) is a fixed hex blob: the host is fixed because
# the Java string lengths and the ZIP CRC are baked into it. Regenerate with
# python zipfile (ZIP_STORED, entry ".properties") if the host changes; the
# host must stay 54 characters.
uid: 56f1e315-8805-4449-a14f-267b9b269078
name: "SAP NetWeaver Visual Composer Unauthenticated Metadata Uploader (CVE-2025-31324)"
description: "Sends an unauthenticated POST to the Visual Composer /developmentserver/metadatauploader servlet with a small inert ZIP (one serialized .properties entry, nothing is written) and reports the host when the uploader processes it and answers its own FAILED/Cause status, which a system with SAP note 3594142 refuses before processing. Matched words never appear in the request, so pages that echo the request are not reported."
cves: [CVE-2025-31324]
cvss: 10.0
severity: critical
category: rce
confidence_base: 0.30
tags: [java, sap, netweaver, rce, file-upload, deserialization, kev, intrusive]
services: [http, https]
author: noctis
version: "1.1.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2025-31324"
  - "https://me.sap.com/notes/3594142"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-31324.yaml"

steps:
  # 1 — build the raw request: HTTP head (Host templated) + the fixed ZIP body.
  - id: build-request
    action: script
    store_as: req
    code: |
      let zip = "504b03041400000000000000985a928fc41d34020000340200000b0000002e70726f70657274696573aced0005737200146a6176612e7574696c2e50726f706572746965733912d07a70363e980200014c000864656661756c74737400164c6a6176612f7574696c2f50726f706572746965733b787200136a6176612e7574696c2e486173687461626c6513bb0f25214ae4b803000246000a6c6f6164466163746f724900097468726573686f6c6478703f400000000000037708000000050000000274000e70726f6a6563742d6e6174757265737200116a6176612e7574696c2e486173684d61700507dac1c31660d103000246000a6c6f6164466163746f724900097468726573686f6c6478703f4000000000000c770800000010000000017372000c6a6176612e6e65742e55524c962537361afce47203000749000868617368436f6465490004706f72744c0009617574686f726974797400124c6a6176612f6c616e672f537472696e673b4c000466696c6571007e00084c0004686f737471007e00084c000870726f746f636f6c71007e00084c000372656671007e00087870ffffffffffffffff7400366161616161616161616161616161616161616161616161616161616161616161616161616161612e6e6f637469732e696e76616c696474000071007e000a74000468747470707874003d687474703a2f2f6161616161616161616161616161616161616161616161616161616161616161616161616161612e6e6f637469732e696e76616c69647874000b4558504f52542d4e414d45740013736f6d655f70726f6a6563745f6e616d6578787870504b010214031400000000000000985a928fc41d34020000340200000b00000000000000000000008001000000002e70726f70657274696573504b05060000000001000100390000005d0200000000";
      let head = "POST /developmentserver/metadatauploader?CONTENTTYPE=MODEL&CLIENT=1 HTTP/1.1\r\n"
        + "Host: " + target_host + "\r\n"
        + "User-Agent: Mozilla/5.0\r\n"
        + "Content-Type: multipart/form-data\r\n"
        + "Content-Length: " + (strlen(zip) / 2).to_string() + "\r\n"
        + "Connection: close\r\n\r\n";
      #{ hex: hexstr(head) + zip }

  # 2 — send it verbatim (binary body; TLS follows the https scheme).
  - id: upload
    action: tcp_dialogue
    port: "{{port}}"
    read_banner: false
    timeout_secs: 15
    send_hex: "{{req.hex}}"
    store_as: upload

  # 3 — only the uploader's own processing status counts: an HTTP reply carrying
  #     both "FAILED" and "Cause", words absent from the request.
  - id: parse-reply
    action: script
    condition: "upload.connected == true"
    store_as: verdict
    code: |
      let txt = "";
      if type_of(upload.responses) == "array" && upload.responses.len() > 0 && type_of(upload.responses[0]) == "string" {
        txt = upload.responses[0];
      }
      let status = split(txt, "\r\n")[0];
      // Whole words only: a stack trace's "Caused by" or an "UPLOAD_FAILED"
      // token from another Java app does not count.
      let processed = txt.starts_with("HTTP/") && ereg("\\bFAILED\\b", txt) && ereg("\\bCause\\b", txt);
      let i = stridx(txt, "FAILED");
      let snippet = if i >= 0 { substr(txt, i, i + 119) } else { "" };
      #{ processed: processed, status: status, snippet: snippet }

  - id: uploader-processed
    action: match
    source: verdict.processed
    pattern: "^true$"
    condition: "upload.connected == true"
    on_match:
      finding:
        confidence_delta: 0.50
        qod: 75
        evidence: "Unauthenticated POST /developmentserver/metadatauploader?CONTENTTYPE=MODEL&CLIENT=1 was processed by the Visual Composer uploader ({{verdict.status}}): {{verdict.snippet}}"

SAP NetWeaver AS Java Unauthenticated Web Dynpro User Disclosure (RTC Chat / Universal Worklist)

CVECVE-2016-2388, CVE-2016-3973
Severitymedium · CVSS 5.3
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectionhttp_request, match · highest QoD 75
Feedtests/vulnerabilities/sap-netweaver/webdynpro-unauth-user-disclosure.yaml

Detects SAP NetWeaver AS Java 7.10-7.50 systems missing SAP notes 2255990/2256846 by opening the Real-Time Collaboration chat and the Universal Worklist JWFTestAddAssignees Web Dynpro applications without authentication (CVE-2016-3973, CVE-2016-2388).

How noctis detects it

  1. HTTP(S) request GET /webdynpro/resources/sap.com/tc~rtc~coll.appl.rtc~wd_chat/Chat
  2. Checks chat.body for Add Participant → finding QoD 75: Instant Messaging Web Dynpro app rendered without authentication (GET /webdynpro/resources/sap.com/tc~rtc~coll.appl.rtc~wd_chat/Chat -> 200…
  3. HTTP(S) request GET /webdynpro/resources/sap.com/tc~eu~jwf~wdgp/JWFTestAddAssignees
  4. Checks jwf.body for JWFTestAddAssignees|Add Assignees → finding QoD 75: Universal Worklist JWFTestAddAssignees Web Dynpro app rendered without authentication (GET /webdynpro/resources/sap.com/tc~eu~jwf~wdgp/JWFT…
  5. HTTP(S) request GET /webdynpro/dispatcher/sap.com/tc~eu~jwf~wdgp/com.sap.workflow.wdgp.general.test.JWFTe…
  6. Checks jwfd.body for JWFTestAddAssignees|Add Assignees → finding QoD 75: Universal Worklist JWFTestAddAssignees Web Dynpro app rendered without authentication (GET /webdynpro/dispatcher/sap.com/tc~eu~jwf~wdgp/com…

References:

Feed source — tests/vulnerabilities/sap-netweaver/webdynpro-unauth-user-disclosure.yaml
# SAP NetWeaver AS Java — unauthenticated access to Web Dynpro applications
# that disclose SAP user information:
#   - CVE-2016-3973 (SAP note 2255990, ERPSCAN-16-016): the Real-Time
#     Collaboration chat app .../tc~rtc~coll.appl.rtc~wd_chat/Chat opens without
#     a logon; its "Add users" search lists SAP users, groups and roles.
#   - CVE-2016-2388 (SAP note 2256846, KEV): the Universal Worklist
#     Configuration test app JWFTestAddAssignees opens without a logon and
#     discloses user information.
#
# Ported from OpenVAS/Greenbone NVT
#   2016/gb_sap_netweaver_as_java_2191290_2101079_2256846.nasl
#   (OID 1.3.6.1.4.1.25623.1.0.106083, GPL-2.0-only)
# which requests the chat app with an old Firefox User-Agent and reports the host
# when the page renders ("<title>Instant Messaging</title>" + "Add Participant")
# instead of the logon screen. Rendering a protected app without a session IS
# the missing-authorization flaw, so the probe exercises the primitive itself.
# It is read-only and benign: it opens the app's start page and submits nothing
# (no user search is run, no user data lands in evidence).
#
# Improvements over the NASL:
#   - CVE mapping corrected. The NASL lists CVE-2016-1910 (note 2191290, UME
#     data decryption) and CVE-2016-2386 (note 2101079, UDDI SQL injection) —
#     neither is exercised by a request to the chat app — and omits
#     CVE-2016-3973, the CVE the chat app actually carries (per the MITRE record
#     and the ERPSCAN-16-016 advisory). This feed claims only what it tests.
#   - Also probes JWFTestAddAssignees (CVE-2016-2388; resources/ and
#     dispatcher/ paths from the Nuclei template), so a host where the chat
#     component is not deployed is no longer missed.
#   - A page carrying the SAP logon markers (sap-system-login / logon_preview)
#     is never reported, even when it echoes the app URL.
# Not covered: the Nuclei template's .../wd_chat/Messages path (the chat app's
# start page above is the advisory's own entry point).
# The JWF match "JWFTestAddAssignees|Add Assignees" also matches a page that
# merely echoes the request URL; the 200 + Web Dynpro window (sap-wd-cltwndid)
# + no-logon-marker guards are what keep a patched system clean (same strength
# as the Nuclei template).
uid: 397c605e-3aa3-4ea6-8111-d45176f8dc0a
name: "SAP NetWeaver AS Java Unauthenticated Web Dynpro User Disclosure (RTC Chat / Universal Worklist)"
description: "Detects SAP NetWeaver AS Java 7.10-7.50 systems missing SAP notes 2255990/2256846 by opening the Real-Time Collaboration chat and the Universal Worklist JWFTestAddAssignees Web Dynpro applications without authentication (CVE-2016-3973, CVE-2016-2388)."
cves: [CVE-2016-2388, CVE-2016-3973]
cvss: 5.3
severity: medium
category: auth-bypass
confidence_base: 0.30
tags: [sap, netweaver, java, webdynpro, auth-bypass, information-disclosure, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2016-2388"
  - "https://nvd.nist.gov/vuln/detail/CVE-2016-3973"
  - "https://lists.openwall.net/bugtraq/2016/06/21/4"
  - "https://github.com/vah13/SAP_exploit"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2016/CVE-2016-2388.yaml"

steps:
  # ── 1. NASL-faithful probe: RTC chat application (CVE-2016-3973) ──────────────
  - id: chat-probe
    action: http_request
    method: GET
    path: "/webdynpro/resources/sap.com/tc~rtc~coll.appl.rtc~wd_chat/Chat"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      # NetWeaver sometimes checks the User-Agent (comment in the NASL).
      User-Agent: "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.19) Gecko/20110420 Firefox/3.5.19"
    store_as: chat

  - id: chat-rendered
    action: match
    source: chat.body
    pattern: "Add Participant"
    condition: "chat.status == 200 && chat.body.contains(\"<title>Instant Messaging</title>\") && !chat.body.contains(\"sap-system-login\") && !chat.body.contains(\"logon_preview\")"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "Instant Messaging Web Dynpro app rendered without authentication (GET /webdynpro/resources/sap.com/tc~rtc~coll.appl.rtc~wd_chat/Chat -> 200, 'Instant Messaging' + 'Add Participant', no logon page) — CVE-2016-3973 user information disclosure (SAP note 2255990 missing)"
      stop: true

  # ── 2. Universal Worklist Configuration (CVE-2016-2388) ─────────────────────
  - id: jwf-probe
    action: http_request
    method: GET
    path: "/webdynpro/resources/sap.com/tc~eu~jwf~wdgp/JWFTestAddAssignees"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      User-Agent: "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.19) Gecko/20110420 Firefox/3.5.19"
    store_as: jwf

  - id: jwf-rendered
    action: match
    source: jwf.body
    pattern: "JWFTestAddAssignees|Add Assignees"
    condition: "jwf.status == 200 && jwf.body.contains(\"sap-wd-cltwndid\") && !jwf.body.contains(\"sap-system-login\") && !jwf.body.contains(\"logon_preview\")"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "Universal Worklist JWFTestAddAssignees Web Dynpro app rendered without authentication (GET /webdynpro/resources/sap.com/tc~eu~jwf~wdgp/JWFTestAddAssignees -> 200, Web Dynpro window, no logon page) — CVE-2016-2388 user information disclosure"
      stop: true

  - id: jwf-dispatcher-probe
    action: http_request
    method: GET
    path: "/webdynpro/dispatcher/sap.com/tc~eu~jwf~wdgp/com.sap.workflow.wdgp.general.test.JWFTestAddAssignees"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      User-Agent: "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.19) Gecko/20110420 Firefox/3.5.19"
    store_as: jwfd

  - id: jwf-dispatcher-rendered
    action: match
    source: jwfd.body
    pattern: "JWFTestAddAssignees|Add Assignees"
    condition: "jwfd.status == 200 && jwfd.body.contains(\"sap-wd-cltwndid\") && !jwfd.body.contains(\"sap-system-login\") && !jwfd.body.contains(\"logon_preview\")"
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "Universal Worklist JWFTestAddAssignees Web Dynpro app rendered without authentication (GET /webdynpro/dispatcher/sap.com/tc~eu~jwf~wdgp/com.sap.workflow.wdgp.general.test.JWFTestAddAssignees -> 200, Web Dynpro window, no logon page) — CVE-2016-2388 user information disclosure"
      stop: true

View these feeds on GitHub