
Scanner and exploit POC for CVE-2015-7450, the IBM WebSphere SOAP Connector Java deserialization RCE, using a CommonsCollections1 gadget with OAST-based verification.
IBM WebSphere Java Object Deserialization - Remote Code Execution
| field | value |
|---|---|
| CVE | CVE-2015-7450 |
| severity | critical |
| CVSS | 9.8 (template CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; NVD 3.1 same base score) |
| fixed in | Interim Fix PI52103; fix packs 7.0.0.41 (7.0), 8.0.0.12 (8.0), 8.5.5.8 (8.5/8.5.5, Liberty; Liberty developer extras wlp-extras-17.0.0.4); IBM i PTFs SI58494/SI58495/SI58496 (6.1/7.1/7.2) |
| class | deserialization RCE (NVD CWE-502, template cwe-id CWE-94), unsafe readObject on the SOAP Connector |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RVC
IBM WebSphere Application Server 7, 8, and 8.5 have a deserialization
vulnerability in the SOAP Connector (port 8880 by default). The
connector readObject()s the base64 Java blobs carried in the
urn:AdminService envelope without any schema restriction, so a
remote, unauthenticated attacker reaches arbitrary code execution
through the Apache Commons Collections InvokerTransformer chain
(CommonsCollections1). The template issues exactly one request,
POST / with SOAPAction: "urn:AdminService", and matches the fault
answer: HTTP 500 plus the two word strings SOAP-ENV:Server and
<faultcode>, together with the interactsh DNS interaction triggered
by the params gadget. NVD: EPSS 0.97764 (percentile 0.99903), CISA
KEV added 2022-01-10, action due 2022-07-10.
The SOAP Connector listens on TCP 8880 by default and speaks a small document/literal-plus-encoded SOAP dialect over plain HTTP. The single template request is
POST / HTTP/1.1
Host: {{Hostname}}
Content-Type: text/xml; charset=utf-8
SOAPAction: "urn:AdminService"
with an envelope that carries three base64 Java-serialized fields and one gadget:
SOAP-ENV:Header ns0:JMXConnectorContext="..." - serialized
java.util.Stack of com.ibm.ws.management.connector.JMXConnectorContextElement
(cell Lap39013, 42-frame stack trace).objectname - serialized javax.management.ObjectName
(WebSphere:name=ConfigService,...,spec=1.0).operationname - plain string getUnsavedChanges.params - the CommonsCollections1 gadget
(generate_java_gadget("dns", "{{interactsh-url}}", "base64-raw")),
whose InvokerTransformer chain fires the DNS callback.signature - serialized String[] holding
com.ibm.websphere.management.Session.matchers-condition: and requires all of: HTTP status 500, the body
containing SOAP-ENV:Server and <faultcode> (case-insensitive word
matchers), and a dns interaction on the interactsh protocol. A
patched connector still answers with the same fault shape but no
longer deserializes the gadget, so the DNS interaction is the stage
that separates the two levels. NVD lists the CPE set around
cpe:2.3:a:ibm:tivoli_common_reporting:2.1, 2.1.1, Sterling B2B
Integrator 5.2 and Sterling Integrator 5.1 in addition to WebSphere
Application Server / Hypervisor Edition 7.0 (up to 7.0.0.39), 8.0 (up
to 8.0.0.11) and 8.5/8.5.5 including Liberty (up to 8.5.5.7).
max-request: 1), mirroring the template.POST / on the SOAP Connector port (8880 by default) with
Content-Type: text/xml; charset=utf-8 and
SOAPAction: "urn:AdminService", body = the template envelope
(JMX header, ObjectName, getUnsavedChanges, CC1 params, signature).matchers-condition: and):
status 500 and both word strings SOAP-ENV:Server and
<faultcode> present in the decoded body (case-insensitive
substring tests, nuclei word-matcher default). The interactsh
matcher is transcribed as the oast note in details (stdlib has
no interactsh server; the CC1 params gadget carries the probe
command nslookup localhost).check(url) returns (True, details) only when status is 500 and
both word hits hold; details keeps status, content type, per-word
flags (word1/word2), a 200-char snippet and the extractor string
soap connector fault: words=N/2 status=S match=B.token is computed over the JSON result so a merely
reflected page is distinguishable from a real connector fault.urls.txt are auto-prefixed with http://.# scanner (GitHub side): streamed CSV + optional JSON sidecar
python scanner/CVE-2015-7450/scanner.py urls.txt 8 CVE-2015-7450.csv --json CVE-2015-7450.json
# exploit (satoshidisk side): result dict + optional CSV/JSON dumps
python exploit/CVE-2015-7450/exploit.py http://was-host:8880 --csv CVE-2015-7450.csv --json CVE-2015-7450.json --verbose
urls.txt is a plain file, one target per line, # for comments.
Lines may omit the scheme (127.0.0.1:8880 works, http:// is
prepended). The SOAP Connector usually lives on port 8880; the HTTP
transport port (9080/9443) answers the same envelope on /.
RCE POC SUITE
scanner : CVE-2015-7450 v1.0.0
threads : 4 | csv: CVE-2015-7450.csv | json: CVE-2015-7450.json
RCE POC SUITE
[..] loaded 2 target(s) from urls.txt
[..] [1/2] http://127.0.0.1:8899 -> VULNERABLE
[..] [2/2] http://127.0.0.1:8899 -> VULNERABLE
[..] json sidecar saved: CVE-2015-7450.json
[..] summary: total=2 vulnerable=2 not-vuln=0 errors=0
[..] timing : avg=7ms max=7ms wall=0.01s
[..] report saved: CVE-2015-7450.csv
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided |
| status | ok / error |
| vulnerable | verdict |
| elapsed_ms | per-target timing |
| token | md5 proof-of-match (12 chars) |
| result_b64 | base64(JSON) full details |
scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.README.md - this file.DESCRIPTION.md - deeper technical notes.../../exploit/CVE-2015-7450/exploit.py - two-stage POC.| code | meaning |
|---|---|
| 0 | at least one target answered |
| 2 | every target errored (or no targets loaded) |
The POC returns 0 when its token verification passes and 2 on
verification failed.