Release date:
Updated on:
Affected Systems:
MyBB mytcube 1.0
Description:
--------------------------------------------------------------------------------
Bugtraq id: 56974
The MyBB MyTube plug-in allows users to add youtube videos to personal information.
MyTube 1.0 and other versions do not correctly verify the validity of the Youtube ID field. Attackers can exploit this vulnerability to inject and run arbitrary HTML or JS code in the affected site.
The problem code exists in mytube. php, as follows:
--------------------------------------------------------------
Function mytube_activate () {... <embed src = "http://www.youtube.com/v/?#tubeid=#autoplay}" type = "application/x-
Shockwave-flash "wmode =" transparent "width =" 425 "height =" 344 "> </embed> </object> </td> </tr>}
--------------------------------------------------------------
For details, see test methods.
<* Source: Kim Kun Bum
Link: http://www.exploit-db.com/exploits/23470/
*>
Test method:
--------------------------------------------------------------------------------
Alert
The following procedures (methods) may be offensive and are intended only for security research and teaching. Users are at your own risk!
Kim Kun Bum () provides the following test methods:
# Exploit Title: MyTube MyBB Plugin Stored XSS
# Date: 18/12/2012
# Exploit Author: Kim Kun Bum
# Vendor:
# Software Link: http://mods.mybb.com/view/mytube
# Version: 1.0
# Category: Web Security
# Tested on: Windows7
Reason: Lack of input validation in Youtube ID field
+ -------------------------------------------------------------------------- +
Stored XSS-vulnerabilities
0. install & Activate plugin
1. go to Usercp> Edit Profile> Youtube:
2. inject following code
"Http://www.youtube.com? V = "</embed> <script> alert (document. cookie) </script>
3. This code will be stored as profile content.
4. Visit your profile and Can see the execution of injected script
Vulnerable code in mytube. php soucre:
Function mytube_activate () {... <embed src = "http://www.youtube.com/v/?#tubeid=#autoplay}" type = "application/x-
Shockwave-flash "wmode =" transparent "width =" 425 "height =" 344 "> </embed> </object> </td> </tr>}
For the original link, see
Http://www.exploit-db.com/exploits/23470/
Suggestion:
--------------------------------------------------------------------------------
Temporary solution:
If you cannot install or upgrade the patch immediately, NSFOCUS recommends that you take the following measures to reduce the threat:
* Disable the MyTube plug-in.
Vendor patch:
MyBB
----
Currently, the vendor does not provide patches or upgrade programs. We recommend that users who use the software follow the vendor's homepage to obtain the latest version:
Http://mods.mybb.com/view/mytube