Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Auditing and exploiting vulnerabilities with JexBoss

Leer en espanol
Auditing and exploiting vulnerabilities with JexBoss

Table of contents

exp vectors ===

JexBoss is a tool written in python that helps us audit and exploit vulnerabilities in JBoss Application Server and other Java platforms, Frameworks, Applications, etc.

Exploitation Vectors:

  • /admin-console
    • tested and working in JBoss versions 5 and 6
  • /jmx-console
    • tested and working in JBoss versions 4, 5 and 6
  • /web-console/Invoker
    • tested and working in JBoss versions 4, 5 and 6
  • /invoker/JMXInvokerServlet
    • tested and working in JBoss versions 4, 5 and 6
  • Application Deserialization
    • tested and working against multiple java applications, platforms, etc, via HTTP POST Parameters
  • Servlet Deserialization
    • tested and working against multiple java applications, platforms, etc, via servlets that process serialized objects (e.g. when you see an "Invoker" in a link)
  • Apache Struts2 CVE-2017-5638
    • tested in Apache Struts 2 applications
  • Others

Installing JexBoss

text
git clone https://github.com/joaomatosf/jexboss.git

cd jexboss

pip install -r requires.txt

We start…

To start the audit we simply execute the following command and it will begin to check the application:

text
python jexboss.py -u https://red-orbita.com

As we can see in this example, it exploits a web-console vulnerability and creates a reverse shell.

Jexboss01 1 Jexboss02

A very interesting option is –auto-exploit with which we can create a persistent reverse shell. In this example, as we can see, a jmxinvokerservlet bug explodes.

Jexboss03 Jexboss04

We can also perform a scan of an entire network and self-exploitation.

text
python jexboss.py -mode auto-scan -A -network 192.168.0.0/24 -ports 8080 -results results.txt

more information:

https://github.com/joaomatosf/jexboss

all the best.

:wq!

Comments