Gentoo: Opera Command-line URL shell command injection
Posted by Benjamin D. Thomas   
Gentoo Lack of URL validation in Opera command-line wrapper could be abused to execute arbitrary commands.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200512-10
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: Opera: Command-line URL shell command injection
      Date: December 18, 2005
      Bugs: #113239
        ID: 200512-10

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

Synopsis
========

Lack of URL validation in Opera command-line wrapper could be abused to
execute arbitrary commands.

Background
==========

Opera is a multi-platform web browser.

Affected packages
=================

    -------------------------------------------------------------------
     Package           /  Vulnerable  /                     Unaffected
    -------------------------------------------------------------------
  1  www-client/opera       < 8.51                             >= 8.51

Description
===========

Peter Zelezny discovered that the shell script used to launch Opera
parses shell commands that are enclosed within backticks in the URL
provided via the command line.

Impact
======

A remote attacker could exploit this vulnerability by enticing a user
to follow a specially crafted URL from a tool that uses Opera to open
URLs, resulting in the execution of arbitrary commands on the targeted
machine.

Workaround
==========

There is no known workaround at this time.

Resolution
==========

All Opera users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=www-client/opera-8.51"

References
==========

  [ 1 ] CVE-2005-3750
        http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-3750
  [ 2 ] Opera 8.51 Changelog
        http://www.opera.com/docs/changelogs/linux/851/

Availability
============

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

  http://security.gentoo.org/glsa/glsa-200512-10.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
http://bugs.gentoo.org.

License
=======

Copyright 2005 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.0