Gentoo: fvwm fvwm-menu-directory fvwm command injection
Posted by Benjamin D. Thomas   
Gentoo A flaw in fvwm-menu-directory may permit a local attacker to execute arbitrary commands with the privileges of another user.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200611-17
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: fvwm: fvwm-menu-directory fvwm command injection
      Date: November 23, 2006
      Bugs: #155078
        ID: 200611-17

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
=3D=3D=3D=3D=3D=3D=3D=3D

A flaw in fvwm-menu-directory may permit a local attacker to execute
arbitrary commands with the privileges of another user.

Background
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

fvwm is a highly configurable virtual window manager for X11 desktops.
fvwm-menu-directory allows fvwm users to browse directories from within
fvwm.

Affected packages
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

    -------------------------------------------------------------------
     Package      /   Vulnerable   /                        Unaffected
    -------------------------------------------------------------------
  1  x11-wm/fvwm      < 2.5.18-r1                         >=3D 2.5.18-r1

Description
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Tavis Ormandy of the Gentoo Linux Security Audit Team discovered that
fvwm-menu-directory does not sufficiently sanitise directory names
prior to generating menus.

Impact
=3D=3D=3D=3D=3D=3D

A local attacker who can convince an fvwm-menu-directory user to browse
a directory they control could cause fvwm commands to be executed with
the privileges of the fvwm user. Fvwm commands can be used to execute
arbitrary shell commands.

Workaround
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

There is no known workaround at this time.

Resolution
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

All fvwm users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=3Dx11-wm/fvwm-2.5.18-r1"

References
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

  [ 1 ] CVE-2006-5969
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCVE-2006-5969

Availability
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200611-17.xml

Concerns?
=3D=3D=3D=3D=3D=3D=3D=3D=3D

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
http://bugs.gentoo.org.

License
=3D=3D=3D=3D=3D=3D=3D

Copyright 2006 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.

http://creativecommons.org/licenses/by-sa/2.5