Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2017-12149 — Scanner and two-stage exploit for CVE-2017-12149, the JBoss EAP/AS 5.x HTTP Invoker deserialization RCE, probing /invoker/* endpoints with CSV/JSON reporting. | Kitploit
Tools/GitHubGitHub/jonathan1010/cve-2017-12149
ReconnaissanceVulnerability ScannersWeb Vulnerability ScannersExploitationWeb Application ExploitationPenetration Testing
GitHubjonathan1010/cve-2017-12149

CVE-2017-12149

Scanner and two-stage exploit for CVE-2017-12149, the JBoss EAP/AS 5.x HTTP Invoker deserialization RCE, probing /invoker/* endpoints with CSV/JSON reporting.

View Repository
Dec 4, 2026Not yet reviewed
Share

CVE-2017-12149

Jboss Application Server - Remote Code Execution (HTTP Invoker unrestricted deserialization)

Metadata

fieldvalue
CVECVE-2017-12149
severitycritical
CVSS9.8 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; NVD CVSS:3.1 also 9.8)
fixed in5.2.0-24.ep5 (RHSA-2018:1607 / RHSA-2018:1608, May 2018)
classdeserialization RCE (CWE-502), CISA KEV listed 2021-12-10
scanner version1.0.0
python3.8+ stdlib only, no third-party deps

Exploit

If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RZh

Summary

In Red Hat JBoss EAP/AS 5.x the HTTP Invoker component (shipped as http-invoker.sar) exposes /invoker/JMXInvokerServlet/, /invoker/EJBInvokerServlet/ and /invoker/readonly. The doFilter method of the ReadOnlyAccessFilter (and the invoker servlets that follow it) calls ObjectInputStream.readObject() on the raw request body with no class restriction, so any gadget chain present on the server classpath is instantiated during the cast to org.jboss.invocation.ObjectParameter. The nuclei template probes each endpoint with a serialized java.util.ArrayList holding the strings "element 1" and "element 2" and reads the marker text back. EAP 6 and 7 do not ship the http invoker and are not affected.

Full description

ReadOnlyAccessFilter.doFilter opens an ObjectInputStream over ServletRequest.getInputStream(), deserializes the object, and casts it to ObjectParameter to dispatch a JMX or EJB invocation. Because readObject() runs with no ObjectInputFilter / class allowlist, the first class token in the stream drives instantiation: ysoserial-style chains (CommonsCollections5, URLDNS, ...) execute their readObject hooks during that first read. For the plain template probe the stream holds an ArrayList, so the cast yields a visible ClassCastException: java.util.ArrayList cannot be cast to ... plus the JBoss server banner in the response body, which is exactly what the template matches. Remediation per the vendor: apply RHSA-2018:1607 / RHSA-2018:1608, or secure the http-invoker context by adding <url-pattern>/*</url-pattern> security-constraints in the http-invoker.sar web.xml, or remove http-invoker.sar if the HTTP invoker is unused.

Detection model

  • Mirrors the nuclei template http/cves/2017/CVE-2017-12149.yaml exactly: max-request: 3 = the three raw POST shapes below.
  • Raw shapes: POST /invoker/JMXInvokerServlet/, POST /invoker/EJBInvokerServlet/ and POST /invoker/readonly, each with Content-Type: application/octet-stream and the base64 body rO0ABXNyABNqYXZhLnV0aWwuQXJyYXlMaXN0... (serialized ArrayList["element 1", "element 2"]).
  • Matchers, ANDed per the template DSL: case-insensitive word matcher requiring both JBoss and ClassCastException in the response body, and status code in {200, 500}. check(url) is True when any of the three endpoints satisfies both.
  • fetch/post retry twice with linear backoff; HTTPError bodies are read because 500 is an accepted matcher status.
  • Scheme-less hosts in urls.txt (tagger output such as host:8080/path) are auto-prefixed with http://.
  • Details dict keeps per-endpoint status, hit, matched words and a 200-char snippet plus request_count (3), so a row is auditable offline from result_b64.

Usage

# scanner: streamed CSV + optional JSON sidecar
python scanner/CVE-2017-12149/scanner.py urls.txt 8 CVE-2017-12149.csv --json CVE-2017-12149.json

# exploit: result dict + optional CSV/JSON dumps
python exploit/CVE-2017-12149/exploit.py http://target:8080 --csv CVE-2017-12149.csv --json CVE-2017-12149.json --verbose

urls.txt is a plain file, one target per line, # for comments.

Example scanner output

[*] JBoss EAP 5.x CVE-2017-12149 scanner (HTTP invoker deserialization /invoker/* endpoints)
 scanner : CVE-2017-12149 v1.0.0
 threads : 8 | csv: CVE-2017-12149.csv | json: CVE-2017-12149.json
[*] JBoss EAP 5.x CVE-2017-12149 scanner (HTTP invoker deserialization /invoker/* endpoints)
[2026-12-03 11:37:11] loaded 2 target(s) from urls.txt
[2026-12-03 11:37:12] [1/2] http://jboss-host:8080 -> VULNERABLE
[2026-12-03 11:37:12] [2/2] http://other-host:8080 -> not-vuln
[2026-12-03 11:37:12] summary: total=2 vulnerable=1 not-vuln=1 errors=0
[2026-12-03 11:37:12] timing : avg=640ms max=910ms wall=1.28s
[2026-12-03 11:37:12] report saved: CVE-2017-12149.csv

Scanner report columns

columnmeaning
n1-based row number
urltarget as provided
statusok / error
vulnerableverdict
elapsed_msper-target timing
token12-char md5 over the row details
result_b64base64(JSON) full details

Files

  • scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.
  • README.md - this file.
  • DESCRIPTION.md - deeper technical notes.
  • ../../exploit/CVE-2017-12149/exploit.py - two-stage POC.

Exit codes

codemeaning
0at least one target answered
2every target errored or no targets loaded

References

  • Nuclei template: http/cves/2017/CVE-2017-12149.yaml
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2017-12149
  • Red Hat errata: https://access.redhat.com/errata/RHSA-2018:1607 and https://access.redhat.com/errata/RHSA-2018:1608
  • Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1486220
  • Vulhub lab: https://github.com/vulhub/vulhub/tree/master/jboss/CVE-2017-12149
Download Tool

Related Tools

  • amass

    In-depth attack surface mapping and asset discovery

  • subfinder

    Fast passive subdomain enumeration tool.

  • reconftw

    reconFTW is a tool designed to perform automated recon on a target domain by running the best set of tools to perform scanning and finding out vulnerabilities

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    721
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    535
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    419

Explore all tools

Browse our collection of tools

View all tools →