GLSA 200807-02: Motion: Execution of arbitrary code

Severity:normal
Title:Motion: Execution of arbitrary code
Date:07/01/2008
Bugs: #227053
ID:200807-02

Synopsis

Multiple vulnerabilities in Motion might result in the execution of arbitrary code.

Background

Motion is a program that monitors the video signal from one or more cameras and is able to detect motions.

Affected packages

Package Vulnerable Unaffected Architecture(s)
media-video/motion < 3.2.10.1 >= 3.2.10.1 All supported architectures

Description

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.

Resolution

All Motion users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=media-video/motion-3.2.10.1"

References

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-200807-02.xml

Concerns?

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!