Ampache: Insecure temporary file usage

Security Team  Contact Address

Updated December 23, 2008

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200812-22 / ampache
Release Date December 23, 2008
Latest Revision December 23, 2008: 01
Impact normal
Exploitable local
Package Vulnerable versions Unaffected versions Architecture(s)
www-apps/ampache < 3.4.3 >= 3.4.3 All supported architectures

Related bugreports: #237483

Synopsis

An insecure temporary file usage has been reported in Ampache, allowing for symlink attacks.

2.  Impact Information

Background

Ampache is a PHP based tool for managing, updating and playing audio files via a web interface.

Description

Dmitry E. Oboukhov reported an insecure temporary file usage within the gather-messages.sh script.

Impact

A local attacker could perform symlink attacks to overwrite arbitrary files with the privileges of the user running the application.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All Ampache users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=www-apps/ampache-3.4.3"

4.  References