Bug 456044 (CVE-2008-3333)

Summary: CVE-2008-3333 mantis: arbitrary file inclusion through user preferences page
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: giallu, rh-bugzilla
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-07-28 08:56:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomas Hoger 2008-07-21 07:43:51 UTC
New upstream Mantis version 1.1.2 fixes following security issue:

- 0009154: [security] arbitrary file inclusion through user preferences page
(giallu) - closed.


Upstream bug report:


  Vulnerability overview:
  Due to unchecked user input, arbitrary files can be included within a PHP
  require_once() statement. Input length is limited to 32 characters. This
  vulnerability allows for reading arbitrary files on the affected webserver,
  as well as code execution if the attacker can put php code in any includable
  file (which is possible in most scenarios).

  Vulnerability description:
  Vulnerable files/objects: core/lang_api.php, account_prefs_update.php

  Line 37 (in "core/lang_api.php") loads text file with user-supplied language

  ---cut here---
  require_once( $t_lang_dir . 'strings_' . $p_lang . '.txt' );
  ---cut here---

  Proof of concept:
  Use account_prefs_update.php to set language to something like:


Fix in upstream SVN:

Comment 1 Fedora Update System 2008-07-23 07:20:12 UTC
mantis-1.1.2-1.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 2 Fedora Update System 2008-07-23 07:21:42 UTC
mantis-1.1.2-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 3 Tomas Hoger 2008-07-28 08:54:00 UTC
Directory traversal vulnerability in core/lang_api.php in Mantis
before 1.1.2 allows remote attackers to read and include arbitrary
files via the language parameter to the user preferences page

Comment 4 Red Hat Product Security 2008-07-28 08:56:01 UTC
This issue was addressed in: