MyBB MyTube plugin 'mytube. php' HTML Injection Vulnerability

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.