Java-Deserialization-Scanner – BurpSuite JAVA deserialization vulnerability scanning plug-in – Penetration Testing

Java Deserialization Scanner is a Burp Suite plugin aimed at detect and exploit Java deserialization vulnerabilities. It was written by Federico Dotta, a Security Advisor at @ Mediaservice.net.

The plugin is made up of three different components:

Integration with Burp Suite active and passive scanner

Manual tester, for the detection of Java deserialization vulnerabilities on custom insertion points

Exploiter, that allow to actively exploit Java deserialization vulnerabilies, using frohoff ysoserial (http://ift.tt/1MlRZLw)

Integration with Burp Suite active and passive scanner

Java Deserialization Scanner uses custom payloads generated with a modified version of “ysoserial”, tool created by frohoff and gebl, to detect Java deserialization vulnerabilities. The original tool (http://ift.tt/1MlRZLw) generate payloads for the execution of commands on the system, using the Runtime.exec function. Usually, however, it is not possible to see the output of the command and consequently it is not simple to write a scanner based on this kind of function. For this reason, a modified version of ysoserial is used to generate different types of payloads, usefull for the detection of the issue instead of the exploitation:

Payloads that execute a syncronous sleep function, in order to verify the presence of the issue depending on the time of the response

Payloads that execute a DNS resolution, in order to verify the presence of the issue using the Burp Suite Collaborator integrated in Burp Suite

Currently, the passive checks of the Java Deserialiation Scanner reported the presence of serialized Java objects in the HTTP requests and the active checks actively scan for the presence of weak deserialization functions in conjuction with the presence of the following weak libraries:

Apache Commons Collections 3 (up to 3.2.1), with four different chains

Apache Commons Collections 4 (up to 4.4.0), with two different chains

Spring (up to 4.2.2), with two different chains

Java 6 and Java 7 (up to Jdk7u21) without any weak library

Hibernate 5

JSON

Rome

Java 8 (up to Jdk8u20) without any weak library

Apache Commons BeanUtils

All the components of the plugin supports the following encodings:

Raw

Base64

Ascii Hex

GZIP

Base64 GZIP

In the test folder there are some simple Java server applications that can be used to test the plugin. Every application employ a different vulnerable Java library.

Manual tester

The plugin offer a dedicated tab to launch the detection with the sleep and DNS payloads on custom insertion points, in order to check the Java deserialization vulnerabilities in particular situations in which strange entry points do not allow the detection with the scanner. The results of the manual tester can be inserted between Burp Suite scanner results.

The manual tester offers an extra detection method: CPU detection. The CPU detection method is based on Wouter Coekaerts’ SerialDOS work (http://ift.tt/2dNTfiA) and it is able to detect deserialization issues without the presence of any vulnerable library, using an object that employs many CPU cycles for the deserialization task and checking the time of the response. The CPU detection method is not included by default in the active scan checks, because it must be used with caution: sending a huge number of “light” SerialDOS payloads may still cause problems on old or highly-loaded systems.

Exploiter

After that a Java deserialization vulnerability has been found, it is possible to actively exploit the issue with the Exploiting dedicated tab. The “Exploiting” tab offers a comfortable interface to exploit deserialization vulnerabilities. This tab uses the ysoserial tool to generate exploitation vectors and includes the generated payload in a HTTP request. ysoserial takes as argument a vulnerable library and a command and generates a serialized object in binary form that can be sent to the vulnerable application to execute the command on the target system (obviously if the target application is vulnerable). The Exploiting tab supports the same encoding formats as the detection sections of the plugin.

Installation

Download Burp Suite: http://ift.tt/1l6Vwk5

Install Java Deserialization Scanner from the BApp Store or follow these steps:

Download the last release of Java Deserialization Scanner

Open Burp -> Extender -> Extensions -> Add -> Choose JavaDeserializationScannerXX.jar file

User Guide

After installation, the Java Deserialization Scanner active and passive checks will be added to the Burp Suite scanner (it is possible to disable the checks in the options tab)

Simply run the active or passive scanner in order to check also for weak Java deserialization

With the dedicated tab “Manual testing” it is possible to set the injection point and executing the attack with all the payloads

With the dedicated tab “Exploiting” it is possibile to actively exploit Java deserialization vulnerabilites

The “Configuration” contains all the needed configuration for the correct working of the plugin

Source: Github

The post Java-Deserialization-Scanner – BurpSuite JAVA deserialization vulnerability scanning plug-in appeared first on Penetration Testing.

Anúncios

Deixe um comentário

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s