Piotr Makley said:
What version?
Configured how?
What service packs/security hotfixes, etc applied?
... to create an RTF document then would I avoid
including any viruses, worms and malicious stuff in my documents?
If you're really good at this stuff you can be pretty darn sure
that Word will produce "safe" .RTF files that are RTF format.
My "really good" hurdle is set pretty high though and only a few
dozen to a few hundred folk outside of AV would likely clear it...
(2) If I open an RTF document using MS Word then could any viruses,
macros or other malicious stuff in the document run on my PC?
What version of Word?
Configured how?
What service packs, etc??
Older/unpatched versions of Word will follow URL links in true RTF
format documents to offsite template files and _silently_ open them
and "appropriately" (i.e. by typically shoddy Redmond standards)
execute any "auto macros" therein and enable any system macros.
Older/unpatched version of Word (and several other of the Office
applications) have incomplete checks for the existence of macros in
their native document formats. Opening such documents will cause
the early "are there macros" tests to fail, thereby bypassing the
actual "macro security" mechanisms for that document and later
processes will go on to discover and enable macros in specially-
prepared documents. If these documents are renamed with the .RTF
extension, Word will still happily open them and treat just as if
they had .DOC extensions.
True RTF format documents can contain embedded objects that may be
able to launch "unsafe" code (not necessarily Word macros though)
just as native Word document files may.
Earlier versions of various RichEd* DLLs have exploitable buffer
overflows. These DLLs are intimately involved in processing RTF
format files whether they are opened by Word or Write (or Wordpad
or whatever the latter is called in your version of Windows).
Thus, depending on the version and service pack level of your OS
and/or version of Word, various arbitrary code execution exploits
may be possible against you, initiated by an "attacker" sending
you a specially prepared RTF file and you opening it in an
appropriately out-of-date version of Word/Write/etc.
There are probably other things I'm forgetting for now, but that's
a tidy list for you start from...