Directory traversal in RealPlayer allows code execution

From: Jouko Pynnonen (jouko_at_iki.fi)
Date: 02/10/04

  • Next message: Bartosz Kwitkowski: "Re: HelpCtr - allow open any page or run"
    Date: Tue, 10 Feb 2004 17:08:37 +0200
    To: bugtraq@securityfocus.com
    
    

    OVERVIEW
    ========

    RealPlayer is a popular multimedia player developed by RealNetworks.
    One of its features are RMP files, RealJukebox Metadata Packages. These
    are XML formatted files which may contain e.g. playlists, references
    to skin files (*.rjs), and information about related web pages.

    A directory traversal vulnerability exists in the player allowing
    an attacker to craft an RMP file which may upload files to arbitrary
    locations on the victim system. This leads to arbitrary code execution
    with the currently logged in user's privileges.

    RMP files are opened without confirmation if a web page uses e.g.
    JavaScript or an IFRAME tag to reference them, so it is possible to
    carry out the attack without further user interaction when the victim
    visits such web page.

    DETAILS
    =======

    The RMP file may contain references to a number of files as <TRACK>
    tags. The file extension determines how RealPlayer handles the file,
    ie. as audio, video, or a skin file. If the filename ends with ".rjs",
    it's assumed to be a skin file and downloaded to a location under the
    current user's profile folder. For RealOne Player the exact location is

      %USERPROFILE%\Application Data\Real\RealOne Player\skins\file.rjs

    An attacker may use "..\" sequences in the file name to cause the skin
    file to be placed outside this folder. With a specially crafted
    filename, an attacker can place an arbitrarily named file with
    arbitrary contents anywhere on the victim system. Overwriting files
    isn't possible as RealPlayer asks for confirmation.

    To run a desired program, an attacker can for instance place an HTML
    and EXE file on the victim system by using a single RMP file. The
    "related info" feature of RealPlayer can be used to automatically open
    the HTML file, which can then use JavaScript to launch the EXE file. A
    proof of concept RMP file was created to do this. Use of some unpatched
    Internet Explorer flaws are required for this exploit.

    Another way is simply to place an EXE or other program in the current
    user's Startup folder to be launched during the next login. The
    attacker needn't know the login name; a relative path can be used
    because the default folder for skins is already under the user's
    profile folder.

    AFFECTED VERSIONS
    =================

    According to RealNetworks the flaw affects RealOne Player, RealOne
    Player v2, RealOne Enterprise Desktop, RealPlayer Enterprise.

    SOLUTION
    ========

    RealNetworks was contacted on November 24, 2003. The vendor has
    produced updates to correct the flaw. Some unrelated vulnerabilities
    found by Mark Litchfield are also fixed. Information about downloading
    and applying the updates can be found here:

    http://service.real.com/help/faq/security/040123_player/EN/

    CREDITS
    =======

    The vulnerability was discovered by Jouko Pynnönen, Finland.

    -- 
    Jouko Pynnönen          Web: http://iki.fi/jouko/
    jouko@iki.fi            GSM: +358 41 5504555
    

  • Next message: Bartosz Kwitkowski: "Re: HelpCtr - allow open any page or run"

    Relevant Pages

    • [Full-Disclosure] Directory traversal in RealPlayer allows code execution
      ... RealPlayer is a popular multimedia player developed by RealNetworks. ... The RMP file may contain references to a number of files as ... An attacker may use "..\" sequences in the file name to cause the skin ...
      (Full-Disclosure)
    • [NT] Directory Traversal In RealPlayer Allows Code Execution
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... * RealPlayer 10 Beta ... The RMP file may contain references to a number of files as tags. ... An attacker may use "..\" sequences in the file name to cause the skin ...
      (Securiteam)
    • February 05, CNET News - RealPlayer flaws open PCs up to hijackers.
      ... CNET News - RealPlayer flaws open PCs up to hijackers. ... acknowledged on Wednesday that three flaws affecting different versions of its media player ... The flaws can affect RealNetworks' RealOne Player, ...
      (microsoft.public.security.virus)
    • Re: Get REAL ONE PLAYER instead!
      ... Who's to say RealPlayer doesn't have problems? ... I could care less if "you" want to use WMP or not. ... > on your own darling player. ... >> To all of you having problems with Windows Media Player, ...
      (microsoft.public.windowsmedia.player)
    • Re: Sound - Real Player kills WMP audio & XP sounds
      ... an alternate player is something I hadn't thought of. ... FYI, after I uninstalled RealPlayer and it didn't fix it, I opened Volume ... >> affect Cyberlink Power DVD or ATI TV, those remain in tact with audio. ...
      (microsoft.public.windowsxp.help_and_support)