Debian DSA-153-1 : mantis - cross site code execution and privilege escalation

critical Nessus Plugin ID 14990

Synopsis

The remote Debian host is missing a security-related update.

Description

Joao Gouveia discovered an uninitialized variable which was insecurely used with file inclusions in the mantis package, a php based bug tracking system. The Debian Security Team found even more similar problems. When these occasions are exploited, a remote user is able to execute arbitrary code under the webserver user id on the web server hosting the mantis system.

Jeroen Latour discovered that Mantis did not check all user input, especially if they do not come directly from form fields. This opens up a wide variety of SQL poisoning vulnerabilities on systems without magic_quotes_gpc enabled. Most of these vulnerabilities are only exploitable in a limited manner, since it is no longer possible to execute multiple queries using one call to mysql_query(). There is one query which can be tricked into changing an account's access level.

Jeroen Latour also reported that it is possible to instruct Mantis to show reporters only the bugs that they reported, by setting the limit_reporters option to ON. However, when formatting the output suitable for printing, the program did not check the limit_reporters option and thus allowed reporters to see the summaries of bugs they did not report.

Jeroen Latour discovered that the page responsible for displaying a list of bugs in a particular project, did not check whether the user actually has access to the project, which is transmitted by a cookie variable. It accidentally trusted the fact that only projects accessible to the user were listed in the drop-down menu. This provides a malicious user with an opportunity to display the bugs of a private project selected.

These problems have been fixed in version 0.17.1-2.2 for the current stable distribution (woody) and in version 0.17.4a-2 for the unstable distribution (sid). The old stable distribution (potato) is not affected, since it doesn't contain the mantis package.

Additional information :

- Mantis Advisory/2002-01
- Mantis Advisory/2002-02

- Mantis Advisory/2002-03

- Mantis Advisory/2002-04

- Mantis Advisory/2002-05

Solution

Upgrade the mantis packages immediately.

See Also

http://mantisbt.sourceforge.net/advisories/2002/2002-01.txt

http://mantisbt.sourceforge.net/advisories/2002/2002-02.txt

http://mantisbt.sourceforge.net/advisories/2002/2002-03.txt

http://mantisbt.sourceforge.net/advisories/2002/2002-04.txt

http://mantisbt.sourceforge.net/advisories/2002/2002-05.txt

http://www.debian.org/security/2002/dsa-153

Plugin Details

Severity: Critical

ID: 14990

File Name: debian_DSA-153.nasl

Version: 1.22

Type: local

Agent: unix

Published: 9/29/2004

Updated: 1/4/2021

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.1

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:mantis, cpe:/o:debian:debian_linux:3.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/14/2002

Vulnerability Publication Date: 8/13/2002

Reference Information

CVE: CVE-2002-1110, CVE-2002-1111, CVE-2002-1112, CVE-2002-1113, CVE-2002-1114

BID: 5504, 5509, 5510, 5514, 5515, 5563, 5565

DSA: 153