Skip to content
KitploitKITPLOIT
OutilsExploitsBlog
Log in
Soumettre
OutilsExploitsBlog
Soumettre

Outils de Hacking, PenTest et Cybersécurité pour votre Arsenal de Sécurité !

Kitploit est un répertoire d'outils de hacking, de cybersécurité et de pentesting. Découvrez les dernières mises à jour des projets pour trouver des vulnérabilités, analyser des systèmes, automatiser les tests et renforcer votre sécurité.

FluxContactConfidentialité© 2026 Kitploit

Répertoire d'outils

Catégories

Voir toutes les catégories
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
Outils/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.

Voir le dépôt
4 déc. 2026Pas encore vérifié
Partager
Contenu non disponible dans la langue demandée. Affichage de la version anglaise.

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
Télécharger l’outil

Outils similaires

  • amass

    Cartographie approfondie de la surface d'attaque et découverte d'actifs

  • subfinder

    Outil rapide d'énumération passive de sous-domaines.

  • reconftw

    reconFTW est un outil conçu pour effectuer des reconnaissances automatisées sur un domaine cible en exécutant le meilleur ensemble d'outils pour réaliser des scans et découvrir des vulnérabilités.

Populaires

Voir tout →

Découvrez les outils les plus utilisés par notre communauté.

  • 1

    Callisto

    jetp1ane/callisto

    Outil automatisé d'analyse de vulnérabilités binaires qui décompile des exécutables via Ghidra, analyse du pseudo-code C avec Semgrep, et valide les résultats en utilisant GPT-3.5-Turbo pour réduire les faux positifs.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # Application d'exécution en un clic GhostLock (CVE-2026-43499)

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    Plateforme IMSI Catcher qui déploie une cellule GSM frauduleuse pour intercepter les SMS, injecter des messages et suivre les appareils mobiles

    721
  • 4

    opencti

    opencti-platform/opencti

    Plateforme ouverte de renseignement sur les cybermenaces

    535
  • 5

    ARTEX

    baarai/artex

    Plateforme autonome de tests d'intrusion multi-agents basée sur des LLM, avec agents planificateur/ouvrier, graphes d'actifs et d'exploration, enregistrement du trafic MITM et retest des vulnérabilités.

    424
  • 6

    DFRoot

    a2333c/dfroot

    Outil de root Android pour Samsung Galaxy S25 Ultra (SM-S938B) qui enchaîne DirtyFrag CVE-2026-43284 et CVE-2026-43499 pour obtenir le root automatiquement au démarrage via KernelSU.

    419

Explorer tous les outils

Parcourez notre collection d'outils

Voir tous les outils →