[UNIX] XSS Vulnerability Found in phpBB (Highlight)

From: support@securiteam.com
Date: 11/21/02

  • Next message: support@securiteam.com: "[NEWS] Cisco PIX Multiple Vulnerabilities"
    From: support@securiteam.com
    To: list@securiteam.com
    Date: 21 Nov 2002 11:31:46 +0200
    
    

    The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
    - - promotion

    Beyond Security would like to welcome Tiscali World Online
    to our service provider team.
    For more info on their service offering IP-Secure,
    please visit http://www.worldonline.co.za/services/work_ip.asp
    - - - - - - - - -

      XSS Vulnerability Found in phpBB (Highlight)
    ------------------------------------------------------------------------

    SUMMARY

    phpBB is one of popular PHP bulletin board systems. A vulnerability in the
    viewtopic.php allows remote attackers to insert malicious JavaScript code.

    DETAILS

    Exploit:
    http://phpbb/phpBB/viewtopic.php?t=17071&highlight<Scr*ipt>javascript:alert(document.cookie)</Scr*ipt>

    Possible workaround:
    Open viewtopic.php and put this code:

    $highlight = htmlspecialchars($highlight);
    $highlight = PREG_Replace("/[A-Z&.;:()~!@#$%^''*\{\}\/]/i", "",
    $highlight);

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:arabviersus@hotmail.com>
    Arab VieruZ.

    ========================================

    This bulletin is sent to members of the SecuriTeam mailing list.
    To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
    In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

    ====================
    ====================

    DISCLAIMER:
    The information in this bulletin is provided "AS IS" without warranty of any kind.
    In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



    Relevant Pages