J-Security Center

Title: Phorum PHP Configuration Disclosure Vulnerability

Severity: MODERATE

Description:

Phorum is a PHP based web forums package. Due to an error in the implementation of forum selection in administrative scripts, any user can view the any PHP script on the target host. This is due to user-supplied input being referenced as a filename in two locations in the file common.php. For example:

if($num || $f){
if($f) $num=$f;
if(file_exists("$admindir/forums/$num.php")){
include "$admindir/forums/$num.php";
}

where $f is read from user input via a form, and is meant to be the name of a selected forum. However, any value can be submitted as $f and the corresponding PHP file will be displayed to the browser. This could lead to disclosure of sensitive information, including the MySql server, database name, userid and password, which are kept in master.php.

Affected Products:

  • Phorum Phorum 3.1.0
  • Phorum Phorum 3.1.1
  • Phorum Phorum 3.1.1a
  • Phorum Phorum 3.1.1pre
  • Phorum Phorum 3.1.1rc2
  • Phorum Phorum 3.1.2
  • Phorum Phorum 3.2.0
  • Phorum Phorum 3.2.2
  • Phorum Phorum 3.2.3
  • Phorum Phorum 3.2.3a
  • Phorum Phorum 3.2.3b
  • Phorum Phorum 3.2.4
  • Phorum Phorum 3.2.5
  • Phorum Phorum 3.2.6
  • Phorum Phorum 3.2.7

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.