
Threaded scanner and two-stage PoC for CVE-2016-3088 in Apache ActiveMQ Fileserver, detecting arbitrary file write via PUT/GET matchers and chaining MOVE to JSP RCE.

Fast YAML-based vulnerability scanner with template-driven detection engine for automated security testing across web apps, APIs, networks, DNS, and cloud infrastructure.

Open-source web application security scanner for automated vulnerability detection, manual penetration testing, and API security testing with a proxy-based interception engine.

This repository contains the scanner component for Greenbone Community Edition.
Apache ActiveMQ Fileserver - Arbitrary File Write
| field | value |
|---|---|
| CVE | CVE-2016-3088 |
| severity | critical |
| CVSS | 9.8 (CVSS:3.0 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, EPSS 0.98518) |
| fixed in | Apache ActiveMQ 5.14.0 |
| class | arbitrary file write via PUT + MOVE on the Fileserver web app (CWE-20), CISA KEV listed |
| 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/CT5RXR
The Apache ActiveMQ 5.x web console (default port 8161) exposes a
Fileserver application backed by an embedded jetty handler set. In
5.x before 5.14.0 the handler implements PUT (store the request body
under the webapps root, answer 204 No Content) and MOVE (copy via
the Destination header, answer 204). The nuclei template scores
the observable with two requests: PUT /fileserver/<name>.txt with an
8-digit numeric body must answer status_code_1==204, then
GET /fileserver/<name>.txt must answer status_code_2==200 with a
body containing that same value (contains(body_2, rand1),
condition: and). All three dsl matchers holding means the writable
file server is live, i.e. vulnerable. Because MOVE copies the file
into the /api context (and a .jsp body is executed by the JSP
servlet), the chain yields remote code execution.
Apache ActiveMQ 5.x before 5.14.0 allows remote attackers to upload
and execute arbitrary files via an HTTP PUT followed by an HTTP MOVE
request via the Fileserver web application. The classic chain: PUT a
JSP one-liner (or a marker value) to /fileserver/test.txt (204),
MOVE it with Destination: <base>/api/test.jsp into the executed
context, then GET the copied path and the server-side interpreter
runs the injected body. No authentication is required on the default
install. Remediation is to upgrade to ActiveMQ 5.14.0 or later, where
the file server handler set was reworked (assembly jetty.xml moves the
static contexts to explicit ResourceHandler beans and the put/move
handlers are constrained). NVD keeps the record critical at 9.8 and
the entry is in the CISA KEV catalog.
max-request: 2:
PUT /fileserver/test.txt with body rand1 (integer in
11111111..99999999), then GET /fileserver/test.txt on the same
host; redirects are not followed and the direct answers are scored.204
(status_code_1==204).200
(status_code_2==200).rand1 value
(contains(body_2, rand1)).condition: and - check() returns True only when all three hold;
any missing element yields False, never a partial pass.error, not not-vuln.--json sidecar mirrors the same rows for tooling.Scanner:
python scanner/CVE-2016-3088/scanner.py urls.txt [threads] [out.csv] [--json out.json]
urls.txt takes one target per line (# comments skipped, scheme
auto-prepended when missing), e.g. broker.local:8161 or
http://broker.local:8161.
python exploit/CVE-2016-3088/exploit.py http://broker.local:8161 [--csv out.csv] [--json out.json] [--verbose]
It replays the template chain (PUT /fileserver/test.txt body
PWNED-CVE-2016-3088, GET /fileserver/test.txt), then the MOVE
follow-up (Destination: <base>/api/test.txt, GET /api/test.txt),
prints numbered checks 1 to 5, the result dict (stage1 = PUT answer,
stage2 = GET/MOVE answers, token = md5 over the probe value), and the
final verdict line.
RCE POC SUITE
scanner : CVE-2016-3088 v1.0.0 (Apache ActiveMQ Fileserver, fixed in 5.14.0)
endpoint: PUT /fileserver/<name>.txt then GET /fileserver/<name>.txt (web console, default port 8161)
matchers: status_code_1==204 AND status_code_2==200 AND contains(body_2, rand1) (and)
threads : 2 | csv: scan3088.csv | json: scan3088.json
[2026-12-03 16:23:58] loaded 1 target(s) from urls3088.txt
[2026-12-03 16:23:58] summary total=1 answered=1 vulnerable=1 errors=0
[2026-12-03 16:23:58] timing wall=3ms avg=1ms max=1ms
[2026-12-03 16:23:58] wrote scan3088.csv (1 row(s)) and scan3088.json
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided (scheme auto-prepended if missing) |
| status | ok if the HTTP layer answered, error otherwise |
| vulnerable | True/False verdict from check() (all three dsl matchers) |
| elapsed_ms | per-target timing |
| token | 12-char md5 over `url |
| result_b64 | base64(JSON) full details (per-matcher evidence, observed statuses, probe value) |
scanner/CVE-2016-3088/scanner.py - threaded black-box scanner.scanner/CVE-2016-3088/README.md - this document.scanner/CVE-2016-3088/DESCRIPTION.md - architecture and probe plan.exploit/CVE-2016-3088/exploit.py - two-stage POC (PUT store + GET
read-back, MOVE copy into /api).0 - completed and at least one target scored vulnerable.2 - completed with no vulnerable target (or no targets loaded).http/cves/2016/CVE-2016-3088.yaml