GLSA-200807-02 : Motion: Execution of arbitrary code

critical Nessus Plugin ID 33422

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200807-02 (Motion: Execution of arbitrary code)

Nico Golde reported an off-by-one error within the read_client() function in the webhttpd.c file, leading to a stack-based buffer overflow. Stefan Cornelius (Secunia Research) reported a boundary error within the same function, also leading to a stack-based buffer overflow. Both vulnerabilities require that the HTTP Control interface is enabled.
Impact :

A remote attacker could exploit these vulnerabilities by sending an overly long or specially crafted request to a vulnerable Motion HTTP control interface, possibly resulting in the execution of arbitrary code with the privileges of the motion user.
Workaround :

There is no known workaround at this time.

Solution

All Motion users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=media-video/motion-3.2.10.1'

See Also

https://security.gentoo.org/glsa/200807-02

Plugin Details

Severity: Critical

ID: 33422

File Name: gentoo_GLSA-200807-02.nasl

Version: 1.15

Type: local

Published: 7/8/2008

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:motion, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 7/1/2008

Reference Information

CVE: CVE-2008-2654

CWE: 189

GLSA: 200807-02