[UNIX] phpBB IP Spoofing Vulnerability

From: SecuriTeam (support_at_securiteam.com)
Date: 05/02/04

  • Next message: SecuriTeam: "[UNIX] ssmtp Insecure File Creation"
    To: list@securiteam.com
    Date: 2 May 2004 11:26:34 +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

    The SecuriTeam alerts list - Free, Accurate, Independent.

    Get your security news from a reliable source.
    http://www.securiteam.com/mailinglist.html

    - - - - - - - - -

      phpBB IP Spoofing Vulnerability
    ------------------------------------------------------------------------

    SUMMARY

     <http://www.securiteam.com/unixfocus/phpBB> phpBB is "a high powered,
    fully scalable, and highly customizable open-source bulletin board
    package. phpBB has a user-friendly interface, simple and straightforward
    administration panel, and helpful FAQ. Based on the powerful PHP server
    language and your choice of MySQL, MS-SQL, PostgreSQL or Access/ODBC
    database servers, phpBB is the ideal free community solution for all web
    sites."

    A vulnerability in the PHP code that comprises the system makes it
    possible for any user to effectively fool the system into believing their
    IP address is different than their actual IP address. It effectively
    enables users to forge their IP address.

    DETAILS

    Vulnerable Systems:
     * phpBB version 2.0.8a and prior

    The problematic code section lies in the `common.php' script. The code
    that obtains the IP address of the user connecting and posting on the
    board blindly trusts the information passed in the X-Forwarded-For HTTP
    header, which is generated by the browser (client side).

    Therefore, a user may forge a header with a false IP address and the phpBB
    system could never tell the difference. The direct consequences of this
    are that a user can post anonymously, impersonate another user if that
    user's IP is known, bypass restrictions on IP placed by the administrators
    and more.

    The code in common.php:
    //
    // Obtain and encode users IP
    //
    if( getenv('HTTP_X_FORWARDED_FOR') != '' )
    {
     $client_ip = ( !empty($HTTP_SERVER_VARS['REMOTE_ADDR']) )
    $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( (
    !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) $HTTP_ENV_VARS['REMOTE_ADDR'] :
    $REMOTE_ADDR );

    The code obtains the user's IP address. However, if the X-Forwarded-For
    HTTP header is present, the IP will be taken from there instead.

    ADDITIONAL INFORMATION

    The information has been provided by <mailto:wang@mod-x.co.uk> Ready
    Response.

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

    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.


  • Next message: SecuriTeam: "[UNIX] ssmtp Insecure File Creation"

    Relevant Pages

    • [UNIX] phpBB SQL Injection and Attachmodule Add-On Directory Traversal
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... phpBB is "a high powered, fully scalable, and ... able to inject any type of SQL query to the back-end database server. ...
      (Securiteam)
    • [EXPL] phpBB Multiple User Registeration DoS (Exploit)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... these users can be used to cause a DoS against the phpBB product. ... int Connection; ... Write_In(sock, Path, Pro_Sea, Host, x); ...
      (Securiteam)
    • [UNIX] phpBB u Variable SQL Injection
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... phpBB is "a high powered, fully scalable, and ... An SQL injection vulnerability exists in the uid field sent to phpBB, ...
      (Securiteam)
    • [UNIX] phpBB Full Path Disclosure and XSS Vulnerability (category_rows, faq, ranksrow)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... phpBB is "a high powered, fully scalable, and ... Fatal error: operator not supported for strings in ...
      (Securiteam)
    • [UNIX] PhpBB SQL Injection In Search Results Variable
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... phpBB is "a high powered, fully scalable, and ... This bulletin is sent to members of the SecuriTeam mailing list. ...
      (Securiteam)