Bug 456044 (CVE-2008-3333) - CVE-2008-3333 mantis: arbitrary file inclusion through user preferences page
Summary: CVE-2008-3333 mantis: arbitrary file inclusion through user preferences page
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2008-3333
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-07-21 07:43 UTC by Tomas Hoger
Modified: 2019-09-29 12:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-28 08:56:01 UTC
Embargoed:


Attachments (Terms of Use)

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.

  http://www.mantisbt.org/bugs/changelog_page.php

Upstream bug report:

  http://www.mantisbt.org/bugs/view.php?id=9154

  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
  preference.

  ---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:

  language=urdu.txt/../../../../etc/passwd%00

Fix in upstream SVN:
http://mantisbt.svn.sourceforge.net/viewvc/mantisbt?view=rev&revision=5270

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
CVE-2008-3333:
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
(account_prefs_update.php).

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

Fedora:
  https://admin.fedoraproject.org/updates/F8/FEDORA-2008-6657
  https://admin.fedoraproject.org/updates/F9/FEDORA-2008-6647




Note You need to log in before you can comment on or make changes to this bug.