what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

iDEFENSE Security Advisory 2004-05-12.t

iDEFENSE Security Advisory 2004-05-12.t
Posted May 13, 2004
Authored by Karol Wiesek, iDefense Labs, Greg MacManus | Site idefense.com

iDEFENSE Security Advisory 05.12.04: Exploitation of an input validation vulnerability within Opera Software ASA.'s Opera Web Browser could allow remote attackers to create or truncate arbitrary files. The problem specifically exists within the telnet URI handler. Opera does not check for '-' at the beginning of hostname passed through the handler, which lets options pass to the telnet program, allowing file creation or overwriting.

tags | advisory, remote, web, arbitrary
SHA-256 | 88a3986f22d8cc48d56d3b3bad13399d7e191cf92cee76f2c337819dcbe15f61

iDEFENSE Security Advisory 2004-05-12.t

Change Mirror Download
Opera Telnet URI Handler File Creation/Truncation Vulnerability

iDEFENSE Security Advisory 05.12.04:

*I. BACKGROUND*

Opera is a cross-platform web browser. More information is available
from http://www.opera.com/

*II. DESCRIPTION*

Exploitation of an input validation vulnerability within Opera Software
ASA.'s Opera Web Browser could allow remote attackers to create or
truncate arbitrary files.

The problem specifically exists within the telnet URI handler. Opera
does not check for '-' at the beginning of hostname passed through the
handler, which lets options pass to the telnet program, allowing file
creation or overwriting. Under Windows XP, when telnet.exe is executed
with the '-f' option, the remainder of the argument is used as a
filename for logging the connection. Under Linux, the '-n' option
creates a 'tracefile' for the connection. These options create a file if
it does not exist, or truncates it if it does.

If a telnet: URI with the appropriate option is opened, a file will be
created in the current working directory of the Opera process if the
user has permission. In Windows, this defaults to the directory Opera
was installed in. Under Linux, the default is the user's home directory.

Examples:

Windows XP: Creates or overwrites 'Filename' in Opera directory.

telnet://-fFileName

Under Linux: Creates or overwrites 'Filename' in user's home directory.

telnet://-nFilename

Under some previous versions of Opera, it was possible to create a file
anywhere on the filesystem, by hex encoding an absolute path in the
filename portion of the URI.

*III. ANALYSIS*

In Windows, depending on the privileges, it may be possible to make
Opera unavailable by overwriting files. Under Linux it is possible to
overwrite files in the current user's home directory (e.g. .bashrc,
mbox)

Some versions or configurations of Windows may not be vulnerable, due to
the absence of the '-f' command line switch.

*IV. DETECTION*

Opera 7.23 has been confirmed vulnerable, as have a variety of earlier
versions on multiple platforms. It is suspected that all earlier
versions are also vulnerable.

*V. WORKAROUNDS*

Disable the telnet URI handler from within Opera.

Click on the 'File' menu, then the 'Preferences...' item choose
'Programs and paths' from the view on the left. Select on 'telnet' from
the Protocols box and press the delete key. Do the same with the tn3270
handler.

*VI. VENDOR RESPONSE*

The vulnerability has been addressed in Opera 7.50 (Windows, Mac, Linux).

Windows version downloadable from
http://www.opera.com/download/index.dml?opsys=Windows&platform=Windows&lng=en&ver=7.50

Mac version downloadable from
http://www.opera.com/download/index.dml?step=3&opsys=MacOS&lng=en&platform=MacOS

Linux i386 version downloadable from
http://www.opera.com/download/index.dml?step=3&opsys=Linux%20i386&lng=en&platform=Linux%20i386

*VII. CVE INFORMATION*

A Mitre Corp. Common Vulnerabilities and Exposures (CVE) number has not
been assigned yet.

*VIII. DISCLOSURE TIMELINE*

April 2, 2003 Exploit acquired by iDEFENSE
April 7, 2004 Initial vendor notification
April 7, 2004 iDEFENSE clients notified
April 14, 2004 Initial vendor response
May 12, 2004 Coordinated public disclosure

*IX. CREDIT*

Karol Wiesek and Greg MacManus are credited with this discovery.

Get paid for vulnerability research
http://www.idefense.com/poi/teams/vcp.jsp

*X. LEGAL NOTICES*

Copyright © 2004 iDEFENSE, Inc.

Permission is granted for the redistribution of this alert
electronically. It may not be edited in any way without the express
written consent of iDEFENSE. If you wish to reprint the whole or any
part of this alert in any other medium other than electronically, please
email customerservice@idefense.com <mailto:customerservice@idefense.com>
for permission.

Disclaimer: The information in the advisory is believed to be accurate
at the time of publishing based on currently available information. Use
of the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on,
this information.
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close