FreeBSD : portaudit -- auditfile remote code execution (6d329b64-6bbb-11e1-9166-001e4f0fb9b1)

high Nessus Plugin ID 58314

Synopsis

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

Description

Michael Gmelin and Jorg Scheinert has reported a remote command execution vulnerability in portaudit.

An attacker who can get the user to use a specially crafted audit file will be able to run commands on the users system, with the privileges of the user running running portaudit (often root).

The attack could e.g. happen through DNS hijacking or a man in the middle attack.

Note that if the user has set up portaudit to run from periodic this attack could happen without direct user interaction.

In the FreeBSD Ports Collection (bsd.port.mk) the check for vulnerable ports at install-time directly operates on the auditfile and has the same vulnerability as portaudit. As the Ports Collection infrastructure does not have a version number just be sure to have a Ports Collection new enough to contain the fix for portaudit. Note that this is only a problem for users which has portaudit installed, as they will not have the audit database installed or downloaded otherwise.

Solution

Update the affected package.

See Also

http://www.nessus.org/u?f9f49be2

https://svnweb.freebsd.org/ports/head/Mk/bsd.port.mk#rev1.707

http://www.nessus.org/u?3845f2c6

Plugin Details

Severity: High

ID: 58314

File Name: freebsd_pkg_6d329b646bbb11e19166001e4f0fb9b1.nasl

Version: 1.7

Type: local

Published: 3/12/2012

Updated: 1/6/2021

Supported Sensors: Nessus

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:portaudit, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Patch Publication Date: 3/11/2012

Vulnerability Publication Date: 3/11/2012