Mensajeitor Input Validation Error in 'ip' Parameter Lets Remote Users Conduct Cross-Site Scripting Attacks
|
|
SecurityTracker Alert ID: 1014308
|
|
SecurityTracker URL: http://securitytracker.com/id?1014308
|
|
CVE Reference: GENERIC-MAP-NOMATCH
(Links to External Site)
|
Date: Jun 27 2005
|
Impact: Disclosure of authentication information, Disclosure of user information, Execution of arbitrary code via network, Modification of user information
|
Exploit Included: Yes
|
Version(s): 1.8.9
|
Description: Megabyte reported an input validation vulnerability in Mensajeitor. A remote user can conduct cross-site scripting attacks.
The script does not properly validate user-supplied input in the 'ip' parameter. A remote user can create a specially crafted URL
that, when loaded by a target user, will cause arbitrary scripting code to be executed by the target user's browser. The code will
originate from the site running the Mensajeitor software and will run in the security context of that site. As a result, the code
will be able to access the target user's cookies (including authentication cookies), if any, associated with the site, access data
recently submitted by the target user via web form to the site, or take actions on the site acting as the target user.
A demonstration
exploit URL is provided:
http://[target]/mensajeitor.php?nick=megabyte&url=http://mbytesecurity.org&actualizar=null
&titulo=aaa&ip='aa'%3E%3Ciframe%20src=http://mbyte
security.org/bukle.htm&enviar=Enviar
|
Impact: A remote user can access the target user's cookies (including authentication cookies), if any, associated with the site running the
Mensajeitor software, access data recently submitted by the target user via web form to the site, or take actions on the site acting
as the target user.
|
Solution: No solution was available at the time of this entry.
|
Vendor URL: mensajeitor.com/ (Links to External Site)
|
Cause: Input validation error
|
Underlying OS: Linux (Any), UNIX (Any), Windows (Any)
|
Reported By: "Megabyte" <megabyte58@earthlink.net>
|
Message History:
None.
|
Source Message Contents
|
Date: Sat, 25 Jun 2005 01:16:45 -0600
From: "Megabyte" <megabyte58@earthlink.net>
Subject: Mensajeitor html injection
|
#####################################################################
Advisory #1 "Mensajeitor 1.8.9 HTML injection"
$ Author: Megabyte
$ Contact: megabyte@gobiernofederal.com mbytesecurity@gmail.com
$ Date: May 5 2005
$ Website: http://mbytesecurity.org
$ Risk: High
$ Vendor URL: http://mensajeitor.com
$ Affected Software: Mensajeitor 1.8.9
$greetz Pandora Te amo BB
#####################################################################
-= Description =-
Mensajeitor is an online tag system for leaving your comments
---------------------------------------------------------------------------
-= Vulnerabilities =-
- | "HTML inyection" |
The mensajeitor software allows to inject html code in the "Ip" variable
$ip = $HTTP_SERVER_VARS['REMOTE_ADDR']; } <----here its the problem
the form for submiting the comments allows to modify the ip variable by changing the form method to G ET and
using simple quotes ' as shown on the exploit
- | Exploit |
http://victima.com/mensajeitor.php?nick=megabyte&url=http://mbytesecurity.org&actualizar=null& titulo=aaa&ip='aa'>%3Ciframe%20src=http://mbytesecurity.org/bukle.htm&enviar=Enviar
here we are injecting an iframe with the bukle.htm page if we use a code like this on boukle.htm
<SCRIPT TYPE="text/javascript" LANGUAGE=JAVASCRIPT>
<!--
if (top.frames.length!=0)
top.location=self.document.location;
// -->
</SCRIPT><h1>owned</h1>
The code will break all frames and the injected code will be visible in all the site.
------------------------------------------------------
-= How to FIX =-
Dont allow the GET method in the form,and filter the simple quotes for avoid php injecting
-= Contact =-
Megabyte
http://mbytesecurity.org
El Dios de la Red
Saludos a Pandora mi bb
Redpoint,x0p0x,Status-x,and all lame band
|
|