Results 1 to 7 of 7

Thread: vBulletin 3.8.4 PL2 & 4.0.3 PL1 - Insecure Custom BBCode

  1. #1
    MaXe's Avatar
    MaXe is offline Founder of InterN0T
    Join Date
    Jun 2008
    Location
    Denmark
    Posts
    4,140
    Blog Entries
    41
    Reputation
    270
    Rep Power
    10

    vBulletin 3.8.4 PL2 & 4.0.3 PL1 - Insecure Custom BBCode

    vBulletin - Insecure Custom BBCode Tags


    Versions Affected: 3.8.4 PL2 (Most likely all versions)

    Info:
    Content publishing, search, security, and more—vBulletin has it all. Whether
    it’s available features, support, or ease-of-use, vBulletin offers the most for
    your money. Learn more about what makes vBulletin the choice for people
    who are serious about creating thriving online communities.

    External Links:
    http://www.vbulletin.com/


    -:: The Advisory ::-
    A vulnerability exists within vBulletin which makes an attacker able to inject
    code such as HTML or Javascript via custom BBCode Tags IF they follow certain
    conditions which are described below.

    Requirements:
    - User-input must be located inside a variable in a HTML-tag.
    - Apostrophes or nothing must be used for encapsulation.


    Insecure Implementations:

    - Example 1 (src is insecure)
    <img src='{param}' style='border-width:5px;border-color:red;border-style:outset;' />

    - Example 2 (href is insecure)
    <a href={option} style=border-width:5px;border-color:red;border-style:outset;>{param}</a>


    Exploitation of Above Implementations:

    - Example 1 (PoC)
    [BadTag]x:x' onerror=alert(0) foo='[/BadTag]

    - Example 2 (PoC)
    [BadTag2=fail onmouseover=alert(0)]Link[/BadTag2]

    -:: Solution ::-

    Sanitize BBCode with htmlentities($var, ENT_QUOTES); or htmlspecialchars($var, ENT_QUOTES);
    in the PHP files and never allow user-input inside variables with no encapsulation.
    Update: This may never get fixed due to it is almost impossible to fix.
    The only way to secure against these attacks are to securely implement custom BBCode.

    Alternatively don't use BBCode with apostrophes where user-input is inside a variable.

    Examples of "Secure Implementation":
    <img src="{param}" style='border-width:5px;border-color:red;border-style:outset;' />
    [ + ] Note that src's value is encapsulated with quotes.

    <a href="{option}" style=border-width:5px;border-color:red;border-style:outset; />{param}</a>
    [ + ] Note that href's value is encapsulated with quotes.

    Disclosure Information:
    - Vulnerability found the 29th April 2010
    - Vendor and Buqtraq (SecurityFocus) was contacted the 29th April
    - Disclosed on InterN0T the 29th April

    Reference:
    http://forum.intern0t.net/intern0t-a...om-bbcode.html


    All of the best,
    MaXe


  2. #2
    Join Date
    Mar 2009
    Location
    in your machine....
    Posts
    129
    Reputation
    142
    Rep Power
    7

    Re: vBulletin 3.8.4 PL2 - Insecure Custom BBCode

    Excellent, god job¡¡ +rep
    Err@tum s@ys:
    43 6f 67 69 74 6f 20 45 72 67 6f 20 53 75 6d and maybe,
    <-.-- --- ..- > <.-- .. .-.. .-..> <-... .> <.... .- -.-. -.- . -..>

  3. #3
    Join Date
    Jan 2010
    Posts
    6
    Reputation
    29
    Rep Power
    5

    Re: vBulletin 3.8.4 PL2 - Insecure Custom BBCode

    Sweet Maxe . n1ce found ...

    btw the external links is wrong, i think ???





    - one23

  4. #4
    Join Date
    Feb 2009
    Posts
    4
    Reputation
    1
    Rep Power
    7

    Re: vBulletin 3.8.4 PL2 - Insecure Custom BBCode

    Thanks for your advisor, i will path my forum now :D
    Training...

  5. #5
    Join Date
    Sep 2009
    Posts
    85
    Reputation
    1
    Rep Power
    6

    Re: vBulletin 3.8.4 PL2 - Insecure Custom BBCode

    haha MaXe :D
    I love InterN0T

  6. #6
    MaXe's Avatar
    MaXe is offline Founder of InterN0T
    Join Date
    Jun 2008
    Location
    Denmark
    Posts
    4,140
    Blog Entries
    41
    Reputation
    270
    Rep Power
    10

    Re: vBulletin 3.8.4 PL2 - Insecure Custom BBCode

    Thanks guys

    Quote Originally Posted by one23 View Post
    Sweet Maxe . n1ce found ...

    btw the external links is wrong, i think ???
    and yeah, I used a template to create it (fixed now)


  7. #7
    MaXe's Avatar
    MaXe is offline Founder of InterN0T
    Join Date
    Jun 2008
    Location
    Denmark
    Posts
    4,140
    Blog Entries
    41
    Reputation
    270
    Rep Power
    10

    Re: vBulletin 3.8.4 PL2 - Insecure Custom BBCode

    /Advisory Update. (Misinformation on the Solution part.)


LinkBacks (?)


Similar Threads

  1. [Guide] Insecure Download.php
    By Starwiz in forum Web Hacking & War Games
    Replies: 14
    Last Post: 16th February 2012, 18:59
  2. [Guide] Insecure Upload.php
    By Starwiz in forum Web Hacking & War Games
    Replies: 3
    Last Post: 22nd November 2010, 13:04
  3. [Guide] Insecure Cookie Handeling
    By Starwiz in forum Web Hacking & War Games
    Replies: 1
    Last Post: 13th August 2010, 10:05
  4. [Guide] Insecure Permission
    By Starwiz in forum Web Hacking & War Games
    Replies: 0
    Last Post: 12th August 2010, 19:25
  5. Custom Form GUI look
    By Tsukasa in forum C# // .NET
    Replies: 0
    Last Post: 24th January 2009, 17:50

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
EvilZone py1337 SoldierX.com TheXero Get-Root HackTalk
PenTest Magazine

HatForce