The OpenNET Project
 
Search (keywords):  SOFT ARTICLES TIPS & TRICKS SECURITY
LINKS NEWS MAN DOCUMENTATION


[ GLSA 200411-32 ] phpBB: Remote command execution


<< Previous INDEX Search src Set bookmark Go to bookmark Next >>
Date: Wed, 24 Nov 2004 09:58:15 +0100
From: Sune Kloppenborg Jeppesen <jaervosz@gentoo.org.>
To: [email protected]
Subject: [ GLSA 200411-32 ] phpBB: Remote command execution
Cc: [email protected], [email protected],
 [email protected]

--nextPart1145612.xJ6igLBbPT
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

=2D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200411-32
=2D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
=2D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: High
     Title: phpBB: Remote command execution
      Date: November 24, 2004
      Bugs: #71681
        ID: 200411-32

=2D - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
=3D=3D=3D=3D=3D=3D=3D=3D

phpBB contains a vulnerability which allows a remote attacker to
execute arbitrary commands with the rights of the web server user.

Background
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

phpBB is an Open Source bulletin board package.

Affected packages
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

    -------------------------------------------------------------------
     Package         /  Vulnerable  /                       Unaffected
    -------------------------------------------------------------------
  1  www-apps/phpbb      < 2.0.10                            >=3D 2.0.11

Description
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

phpBB contains a vulnerability in the highlighting code and several
vulnerabilities in the username handling code.

Impact
=3D=3D=3D=3D=3D=3D

An attacker can exploit the highlighting vulnerability to access the
PHP exec() function without restriction, allowing them to run arbitrary
commands with the rights of the web server user (for example the apache
user). Furthermore, the username handling vulnerability might be abused
to execute SQL statements on the phpBB database.

Workaround
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

There is a one-line patch which will remediate the remote execution
vulnerability.

Locate the following block of code in viewtopic.php:

    //
    // Was a highlight request part of the URI?
    //
    $highlight_match =3D $highlight =3D '';
    if (isset($HTTP_GET_VARS['highlight']))
    {
       // Split words and phrases
       $words =3D explode(' ',=20
trim(htmlspecialchars(urldecode($HTTP_GET_VARS['highlight']))));
   =20
       for($i =3D 0; $i < sizeof($words); $i++)
       {

Replace with the following:

    //
    // Was a highlight request part of the URI?
    //
    $highlight_match =3D $highlight =3D '';
    if (isset($HTTP_GET_VARS['highlight']))
    {
       // Split words and phrases
       $words =3D explode(' ',=20
trim(htmlspecialchars($HTTP_GET_VARS['highlight'])));
   =20
       for($i =3D 0; $i < sizeof($words); $i++)
       {

Resolution
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

All phpBB users should upgrade to the latest version to fix all known
vulnerabilities:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=3Dwww-apps/phpbb-2.0.11"

References
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

  [ 1 ] phpBB.com Announcement
        http://www.phpbb.com/phpBB/viewtopic.php?t=3D240513

Availability
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200411-32.xml

Concerns?
=3D=3D=3D=3D=3D=3D=3D=3D=3D

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
[email protected] or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=3D=3D=3D=3D=3D=3D=3D

Copyright 2004 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.0

--nextPart1145612.xJ6igLBbPT
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQBBpE0qzKC5hMHO6rkRAu5MAJ0bG3y1RY3w1USsFTKbfz6z0U+/OwCffe8g
tJHXwAlVo3/IjCJPe1eFI5g=
=I8l6
-----END PGP SIGNATURE-----

--nextPart1145612.xJ6igLBbPT--


<< Previous INDEX Search src Set bookmark Go to bookmark Next >>



Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру