Core Security
info@coresecurity.com  | +1.617.399.6980 | Contact Us   Core Blog Core Blog Twitter LinkedIn youtube
Advisories
SHARE
StoneTrip S3DPlayers remote command injection

1. Advisory Information

Title: StoneTrip S3DPlayers remote command injection
Advisory Id: CORE-2009-0401
Advisory URL: http://www.coresecurity.com/content/StoneTrip-S3DPlayers
Date published: 2009-05-28
Date of last update: 2010-05-18
Vendors contacted: StoneTrip
Release mode: User release

2. Vulnerability Information

Class: OS Command Injection [CWE-78]
Impact: Code execution
Remotely Exploitable: Yes
Locally Exploitable: No
CVE Name: CVE-2009-1792
Bugtraq ID: 35105

3. Vulnerability Description

Ston3D is a cross-platform technology developed by StoneTrip [1], allowing applications developed with ShiVa product [2] to be run from various media. It is a platform for 3D real time development, specially designed to make games and other real time applications.

Ston3D players come in two flavors:

  1. Ston3D StandalonePlayer,
  2. and Ston3D WebPlayer, which runs like an extension or plug-in within most popular web browsers.
These players are vulnerable to a command injection vulnerability, which can be exploited by malicious remote attackers. The vulnerability is due to the Ston3D scripting language. It provides the function system.openURL() which does not properly sanitize the input before using it. This can be exploited to execute arbitrary commands with the privileges of the Stone3D player by opening a specially crafted file.

4. Vulnerable packages

4.1. Win32

  • S3DPlayer Web v1.6.0.0
  • S3DPlayer StandAlone v1.6.2.4
  • S3DPlayer StandAlone v1.7.0.1

4.2. MacOS

  • S3DPlayer Web v1.6.0.0
  • S3DPlayer StandAlone v1.6.2.4

4.3. Linux

  • S3DPlayer StandAlone v1.6.2.4

NOTE: Older versions are probably affected too, but they were not checked.

5. Non-vulnerable packages

The vulnerability has been fixed since 1.8 release (September 09). Please, contact StoneTrip for additional information.

6. Vendor Information, Solutions and Workarounds

The vendor did not provide this information. A possible mitigation action would be to enable MIME type filtering in your IDS/proxies and block S3DPlayer traffic:

[+ full code]

As a workaround, vulnerable users can also avoid this flaw by disabling the Ston3D Plugin in their web browsers:

6.1. Mozilla Firefox

  1. Go to the Tools menu, and select Options...
  2. Click on the Main tab
  3. Click on the Manage Add-ons...
  4. Disable Ston3D Plugin

6.2. Safari

  1. Go to the Safari menu within Safari, and select Preferences
  2. Click on the Security tab
  3. Deselect Enable plug-ins

6.3. Internet Explorer

Set the kill bit for control 7508D2BB-F085-45BF-8261-167C6DF4D477 (as explained in http://support.microsoft.com/kb/240797).

Please contact StoneTrip for further information, patches and workarounds.

7. Credits

This vulnerability was discovered and researched by Diego Juarez from Core Security Technologies.

8. Technical Description / Proof of Concept Code

Ston3D is a cross-platform technology allowing applications developed with ShiVa product [2] to be run from various media, such as a website, CD/DVD or interactive equipment. This technology provides a scripting interface [3] based on the Lua programming language, within this interface the function system.openURL is defined as follows:

[+ full code]

In the current implementation, the call system.openURL(sURL, sTarget) with the parameter sURL set as file://path/command will ultimately execute the equivalent of calling

[+ full code]

By using platform specific delimiter characters this could allow arbitrary code execution in the context of the player.

Find below the relevant code snippets from various platforms.

8.1. Windows

[+ full code]

8.2. Linux

[+ full code]

8.3. MacOSX (x86)

[+ full code]

8.4. MacOSX (PPC)

[+ full code]

9. Report Timeline

  • 2009-04-20: Core Security Technologies notifies the StoneTrip team of the vulnerability and announces its initial plan to publish the content on May 18th, 2009.
  • 2009-04-21: The vendor asks Core for a technical description of the vulnerability.
  • 2009-04-23: Technical details sent to StoneTrip team by Core.
  • 2009-04-24: In addition to the technical details, a Proof of Concept was sent to StoneTrip team.
  • 2009-04-28: Core asks the vendor to confirm the reception of the technical report.
  • 2009-04-28: StoneTrip team notifies that the technical report has been received and that a vulnerability report will be sent to Core soon.
  • 2009-05-07: Core requests a status update for this vulnerability and notifies its plan to publish the advisory on May 18th, 2009. No reply received.
  • 2009-05-15: Core requests an answer to the previous mail. No reply received.
  • 2009-05-18: Core Advisories Team does not release the advisory as originally planned. Core re-schedules the advisory publication date to 26th May 2009.
  • 2009-05-20: Core notifies StoneTrip that the advisory publication date was missed and that the last status requests were not replied. Core also notifies the vendor of the final release date (26th May 2009).
  • 2009-05-28: After trying to contact the StoneTrip team several times without success, the advisory CORE-2009-0401 is published as 'User Release'.
  • 2009-12-09: StoneTrip team notifies that the vulnerability has been fixed since 1.8 release (September 09).

10. References

[1] http://www.stonetrip.com.
[2] ShiVa, a platform for 3D real time development with focus in game development http://www.stonetrip.com/shiva/.
[3] http://stdn.stonetrip.com.

11. About CoreLabs

CoreLabs, the research center of Core Security Technologies, is charged with anticipating the future needs and requirements for information security technologies. We conduct our research in several important areas of computer security including system vulnerabilities, cyber attack planning and simulation, source code auditing, and cryptography. Our results include problem formalization, identification of vulnerabilities, novel solutions and prototypes for new technologies. CoreLabs regularly publishes security advisories, technical papers, project information and shared software tools for public use at: http://www.coresecurity.com/corelabs.

12. About Core Security Technologies

Core Security Technologies develops strategic solutions that help security-conscious organizations worldwide develop and maintain a proactive process for securing their networks. The company's flagship product, CORE IMPACT, is the most comprehensive product for performing enterprise security assurance testing. CORE IMPACT evaluates network, endpoint and end-user vulnerabilities and identifies what resources are exposed. It enables organizations to determine if current security investments are detecting and preventing attacks. Core Security Technologies augments its leading technology solution with world-class security consulting services, including penetration testing and software security auditing. Based in Boston, MA and Buenos Aires, Argentina, Core Security Technologies can be reached at 617-399-6980 or on the Web at http://www.coresecurity.com.

13. Disclaimer

The contents of this advisory are copyright (c) 2009 Core Security Technologies and (c) 2009 CoreLabs, and may be distributed freely provided that no fee is charged for this distribution and proper credit is given.

14. PGP/GPG Keys

This advisory has been signed with the GPG key of Core Security Technologies advisories team, which is available for download at http://www.coresecurity.com/files/attachments/core_security_advisories.asc.

Related Content