Bugtraq mailing list archives

[KAPDA::#53] MYBB XSS and Dir Traversal in usercp.php


From: roozbeh_afrasiabi () yahoo com
Date: 29 Jul 2006 06:41:46 -0000


Vulnerable products : MYBB 1.x
Vendor: http://www.mybboard.net
Risk: Low
Vulnerabilities: MYBB XSS and Dir Traversal in usercp.php 

Date :
--------------------
Found : Feb 22 2006
Vendor Contacted : N/A
Release Date : N/A

About :
--------------------
MyBB is a powerful, efficient and free forum package developed in PHP and MySQL.MyBB has been designed with the end 
users in mind, you and your subscribers. Full control over your discussion system is p resented right at the tip of 
your fingers, from multiple styles and themes to the ultimate customisation of your forums using the template system.



Vulnerability:
--------------------
Cross_Site_Scripting (XSS,CSS):

MYBB is affected by a cross-site scripting vulnerability. This issue is due to the failure of the application to 
properly sanitize user-
supplied input.

As a result of this vulnerability, it is possible for a remote attacker to create a malicious link containing script 
code that will be executed
in the browser of an unsuspecting user when followed.


Detail and PoC :
--------------------

Cross_Site_Scripting:

The application does not validate the "gallery" variable upon submission to the usercp.php script. 

POC:
/usercp.php?action=avatar&gallery=%22%3E%3Cscript%3Ealert(1)%3C/script%3E



Dir Traversal For images:

POC:
/usercp.php?action=avatar&gallery=../../uploads
usercp.php?action=do_avatar&gallery=../../../../../../..dir&avatar=myfile

Solution :
--------------------
N/A

Credit :
--------------------
Discoverd by : Roozbeh Afrasiabi
roozbeh_afrasiabi[at]yahoo[dot]com
black_death[at]kapda[dot]net

POC by : imei addmimistrator
addmimistrator[at]gmail[dot]com
imei[at]Kapda[dot]net


--------------------


Current thread: