mailing list archives
Double clicking on MS Office documents from Windows Explorer may execute arbitrary programs in some cases
From: Georgi Guninski <guninski () GUNINSKI COM>
Date: Mon, 18 Sep 2000 16:49:10 +0300
Georgi Guninski security advisory #21, 2000
Double clicking on MS Office dpocuments from Windows Explorer may
execute arbitrary programs in some cases
MS Office 2000, Win98/Win2000 probably other applications
Date: 18 September 2000
This Advisory is Copyright (c) 2000 Georgi Guninski. You may distribute
it unmodified. You may not modify it and distribute it or distribute
parts of it without the author's written permission.
The opinions expressed in this advisory and program are my own and not
of any company.
The usual standard disclaimer applies, especially the fact that Georgi
is not liable for any damages caused by direct or indirect use of the
information or functionality provided by this advisory or program.
Georgi Guninski, bears no responsibility for content or misuse of this
advisory or program or any derivatives thereof.
If certain DLLs are present in the current direcotory and the user
double clicks on
a MS Office Document or launch the document from "Start | Run" then the
DLLs are executed.
This allows executing native code and may lead to taking full control
over user's computer.
It also works on remote UNC shares.
If either of the following files:
(other DLLs also may do, don't know)
are present in the current directory, double clicking on an Office
document in the current directory executes
the code in DllMain() of the above DLLs.
(Excel seems not to work with riched20.dll but works with msi.dll).
I could not make this work from HTML and IE, if you can, please let me
1) Download dll1.cpp from http://www.guninski.com/dll1.cpp and build it.
I discourage downloading native code from unknown site, but you may try
at your own risk
the compiled version: http://www.guninski.com/dll1.dll
2) Rename dll1.dll to riched20.dll
3) Place riched20.dll in a directory of your choice
4) Close all Office applications
5) From Windows Explorer double click on an Office document (preferably
MS Word document)
in the directory containg riched20.dll
Workaround: Do not double click on Office documents or use "Start | Run
Instead start the Office application from "Start Menu" and
then use "File | Open"
- Double clicking on MS Office documents from Windows Explorer may execute arbitrary programs in some cases Georgi Guninski (Sep 18)