Slashdot Mirror


How Do You Handle New MS Word Vulnerabilities?

chipperdog asks: "With yet another zero-day exploit of MS-Word document files, what are fellow system admins doing to protect themselves against these threats? I have been blocking all .doc and .dot at the mail and proxy servers until malware scanners have signatures to detect and block the malicious files. Of course, this caused a uproar with the users, as there were continuous calls like: 'When can I send and receive Word files again' and 'I can't get anything done if I can't send/receive Word files'. Any suggestion of sending documents in different formats (like rtf, html, txt, or pdf) results in even more creative user 'feedback'. Has anyone done anything creative in their handling of word files — like having qmail-scanner pipe all .doc attachments through something such as wv to convert them to a less exploitable format?"

28 of 157 comments (clear)

  1. You can't... by Otter · · Score: 5, Insightful

    You can't suddenly cut off the exchange of Word documents in any modern business. Unless you can justify bringing your company to a halt over some vulnerabilities with no real-world risk, you just can't do it.

    1. Re:You can't... by Todd+Knarr · · Score: 2, Insightful

      Why would banning Word documents bring your company to a halt? Word will open RTF files (for example) just as automatically as it will it's native format. It can save as RTF almost as easily as it's native format, it's at most 2-3 extra keystrokes once in the entire lifetime of the document. RTF handles all the text formatting, images and such that Word's native format does. The only things it doesn't support are the active content and such that malware uses, and I don't see that as a problem. So why should a block of Word documents have any effect whatsoever on a business?

    2. Re:You can't... by dwater · · Score: 2, Insightful

      "better"? Not from the point of view of the vulnerability, it isn't. Sure, it's better practice to do as you describe (saves on bandwidth), but it doesn't make any difference how they get an infected file - email, copy, http, ftp - all the same from the virus's point of view.

      --
      Max.
  2. At least for now we filter... by Jhon · · Score: 2, Informative

    All attached DOC files are filtered and placed in to a users quarnetine folder (which they have access via a web browser). Simple permissions keep them from accessing the file itself until it can be checked. Once checked, permissions are changed and the user can pull the document.

    It's frustrating for the end user as they don't have instant access to their attachment (sometimes there's a 4-hour delay before the file can be manually inspected -- still waiting for some def-files!) and it's taxing my staff time-wise to do this (we've got better things to do than check for any monkey-business in word documents). We've suggested everyone convert to PDFs and send THOSE and it's been working but it's still a disruption.

    1. Re:At least for now we filter... by CerebusUS · · Score: 2, Informative

      As I've noted elsewhere, if you think your filter is protecting you, you are wrong:

      "Do not rely on file-name extension filtering. In most cases, Windows will call Word to open a document even if the document has an unknown file extension. For example, if document.qwer contains the correct file header information, Windows will open document.qwer with Word. Filtering for common extensions such as .doc, and .dot will not detect all Word documents."

      source

  3. Open Office by Scott+Lockwood · · Score: 3, Interesting

    It's amazing how, we've been fighting this uphill battle to get our users to use Open Office, and now all of the sudden, managers are calling us to make sure all of their users have it. :-) Some days, I like my job. :-)

    --
    But this is slashdot. A slashdoter who didn't build his own computer is like a Jedi who didn't build his own lightsaber!
  4. Wow... glad you don't work for me. by everphilski · · Score: 4, Insightful

    Killing your company's productivity by not allowing the exchange of information? A big no-no. Plus it is all-to-easy to get around (rename the extention, zip the file, etc).

    A better solution is to educate the users - send out a mass email explaining the vulnurability, that you shouldn't be opening and doc's you aren't expecting. If you do it is your own damn fault and the timeliness of the fixing of your machine can not be guaranteed. There is no reason to choke business as you have and quite frankly the users have every reason to be upset.

    1. Re:Wow... glad you don't work for me. by Joe+The+Dragon · · Score: 3, Insightful

      So what to tell the people in HR that are expecting resumes?

    2. Re:Wow... glad you don't work for me. by MarcoAtWork · · Score: 2, Informative

      have one admin with vmware player and a vm that mounts read-only the quarantine folder on the network where any 'suspect' doc is dumped (resumes, attachments from untrusted sources, whatever), in the vm convert the .doc to .pdf and put it in a separate directory that is instead accessible from everybody. Of course the vmware image should be configured NOT to have access to absolutely anything but this one 'quarantine' host.

      Users then access the pdf files from the 'safe' area normally, if you want to just have the admin move files to separate subdirectories with appropriate user permissions.

      If you don't want to have a designated person doing this, you could mandate that your users can use email only from within VMs (that don't have any sort of network access besides receiving email) and must convert to a different format before saving it on a shared folder on their local disk.

      I think something along these lines (quarantine + conversion to a different format, whether centrally located on on everybody's box) should be mandatory for offices where they are expecting .docs from untrusted sources. After all if the HR person's desktop gets compromised you'll be in a LOT more pain than if somebody else's was, given the sensitivity of the information that generally is stored in there...

      --
      -- the cake is a lie
    3. Re:Wow... glad you don't work for me. by Todd+Knarr · · Score: 2, Interesting

      I like the position my ISP's HR people take: "The posting said "No Word documents accepted.". The job's as a senior network engineer. It's going to require lots of detective work to troubleshoot obscure and arcane problems. If you can't figure out how to use Word's "Save As" to save in RTF or HTML, you are not qualified for the position. If you can't figure out that "No Word Documents accepted." means we won't be accepting Word documents, you aren't qualified for any position.".

  5. Re:Rename the files by caserio · · Score: 2, Funny

    Your users are smart enough to do that? I want your job.

  6. Its pays to be thorough by PingSpike · · Score: 4, Funny

    We nuked the site from orbit. It was the only way to be sure.

  7. Re:Rename the files by Rob+T+Firefly · · Score: 4, Insightful

    I don't presume to know your job, but if your users need to subvert the protection scheme in order to use the system for its intended purpose and do their jobs, the protection scheme needs some serious work.

  8. The simplest way. by revxul · · Score: 4, Insightful

    OpenOffice.org.

    --
    Truth, Just Us, And Hatred For All Mankind!
  9. Re:Simple: by Anonymous Coward · · Score: 2, Funny

    Use Vim instead.

  10. Re:"Zero-day" by tchuladdiass · · Score: 2, Informative

    Actually, a zero-day exploit is an exploit (piece of attack code) that is making use of a previously-undiscovered/undisclosed security vulnerability. Contrast this to freshly discovered security holes that don't have any exploits written for them yet (which is most security announcements), and exploits that have been written to take advantage of previously known security holes.

  11. Quarantine by Knara · · Score: 2, Insightful

    When we have viruses exploiting Word files, part of our security team sends out a notice that says we're temporarily quarantining the files until we can have them cleared. But really, you can't indefinitely stop word files from coming in.

    I'll admit I'm too lazy to read the exact detail of the exploit, but shouldn't this whole situation be alleviated by good, layered network security anyway?

  12. Re:I don't by CerebusUS · · Score: 3, Interesting

    At least one of the three recent Word exploits affects Word for Mac as well.

    Also, to the original question:

    Scanning .doc and .dot files does little to no good for the most recent vulnerability. Windows is coded to open correctly formatted documents with unknown extensions with Word. So all I'd have to do to get around your filter is rename the document to: Exploit!.iamnotavir.us0 and if someone is silly enough to double-click it, they'll be subject to whatever maliciousness I can inflict on them.

    From the e-week article:
    "Do not rely on file-name extension filtering. In most cases, Windows will call Word to open a document even if the document has an unknown file extension. For example, if document.qwer contains the correct file header information, Windows will open document.qwer with Word. Filtering for common extensions such as .doc, and .dot will not detect all Word documents."

  13. Re:Simple: by CerebusUS · · Score: 2, Funny

    Reasonable or not, Microsoft's suggestion regarding the vulnerability is to "not open or save Word document files"

  14. MIMEDefang.. customize mimedefang-filter by jayjay_1978 · · Score: 5, Interesting

    Setup MIMEDefang to convert M$ word attachments to PDF using openoffice.
    Any attachments with a .doc extension or a mimetype of application/msword go through this process.
    Also to reduce the overhead, get the sha1sum for the word document, and save the pdf to .pdf
    Before any documents are converted with openoffice, get the sha1sum. if a .pdf already exists, use that file.

    This stills allows people to get the content, which is most of the time, all they want.

    There is also a program called antiword that will convert ms word documents to text, PDF, or PostScript.
    But openoffice does a better job.

  15. Re: Antiword or Catdoc by lky · · Score: 2, Informative

    Well I use Linux so I dont have MS Office but I extract the text from MS Word documents using Antiword or Catdoc and then read them in Vim.

    Antiword: http://www.winfield.demon.nl/
    Catdoc: http://www.45.free.net/~vitus/software/catdoc/

    Add this to your .vimrc to make it automagic:

    autocmd BufReadPre *.doc set filetype="msword"
    autocmd BufReadPost *.doc silent %!antiword "%"
    autocmd Filetype msword call s:MyMSWordSettings()

    function! s:MyMSWordSettings()
            set readonly
            set hlsearch!
    endfunction

    For RTF documents, check out UnRTF: http://www.gnu.org/software/unrtf/unrtf.html

  16. Re:Why not... by CerebusUS · · Score: 2, Informative

    The latest vulnerability doesn't require macros.

    "Data used by Microsoft Word to construct a destination address for a memory copy routine is embedded within a Word document itself. If an attacker constructs a Word document with a specially crafted value used to build this destination address, then that attacker may be able to overwrite arbitrary memory,"

    There's no way to protect from these documents via group policy, short of a group policy that disallows word from running.

  17. Re:I don't by Praedon · · Score: 2, Insightful

    Being an ex-network administrator, I have come to the conclusion that it is us who save the company tons of money by keeping it safe from exploits. By practicing good security measures, anti-virus installations, ad-ware remover, etc, it usually cuts down considerably on the amount of work it takes to keep the network infrastructure free of viruses and spyware, allowing time to focus on other important factors, such as Word exploits, migration from windows to a linux OS if all it requires is word processing, etc.

    Here's hoping Vista lives up to the hype that under good security measures, it will be somewhat secure. Otherwise, there are alternatives such as migration to linux and OpenOffice and such, which does not suffer from as many exploits that Windows and Office does.

    --
    Just me
  18. Re:Rename the files by bb5ch39t · · Score: 2, Insightful
    What amazes me is that companies continue to hire people like this that need to use computers constantly as part of their job, yet don't have even the most basic computer skills.

    The reason is simple. Such people can be hired for less money per hour. This increases profitability and thus directly affects management's bonuses. That is what matters to management. Any problems caused by this are obviously the technicians' fault .

  19. You should be limiting .DOC email exchange anyway by slamb · · Score: 3, Interesting
    Even ignoring viruses/worms altogether, it's not a good idea for users to be exchanging .DOC, .XLS, and .PPT files through email. People do this for two reasons:
    1. Exchanging finished documents for reading. PDF is better:
      1. It can reproduce the results exactly.
      2. It doesn't include Word's "change tracking" information which can cause embarrassing leaks.
      3. It's a standard with many interoperable implementations.
    2. Exchanging in-progress documents for revision. At least for stuff limited to your company, a version control server (like Subversion with friendly TortoiseSVN clients) is better:
      1. Doesn't cause email storage to grow enormously. Instead, a server actually meant for this kind of thing stores only deltas. And only one copy of each document - on most mailservers, the disk space consumed by an attachment is proportional to the number of recipients.
      2. Lets you easily find the latest version of a document. ("Did he send me another copy after this? I'm not sure.")
      3. Lets you easily retrieve any previous version, see changes/authors/checkin comments. (I don't trust Word's built-in change tracking, and you shouldn't either. Its security model is flawed, and I don't think it's reliable to begin with.)
      4. Supports locking/unlocking documents to prevent conflicting changes.
      5. With some setup, supports diffing and merging office documents. You can maintain branches!
      6. Supports searching - where I work, we've plugged in swish-e for full-text searching over our documentation repository.
    I wish my company would just block all .DOC and .XLS files sent from one employee to another. It'd force them to use the documentation repository and save us all a tremendous amount of pain trying to dig through email for the right version of some Product Requirements Document. It'd also stop the whining from people complaining about hitting their email storage limits all the time.
  20. MOD PARENT INFORMATIVE by iluvcapra · · Score: 2, Informative

    Thanks for the links. I know this problem isn't proven on OS X, but based on the executive summary I'd suppose it could be an issue, so to Mac OS X people, textutil(1) can read doc and convert to txt, html, rtf, or even webarchive, so you get all the images.

    Textutil is in /usr/bin on an install of OS X, and just acts as a wrapper for the OS X text word processing subsystem.

    --
    Don't blame me, I voted for Baltar.
  21. Remove the root cause by 6031769 · · Score: 2, Insightful

    We do not use Microsoft Word at my place of business. This is therefore no longer a concern. If any sysadmin thinks this is a problem, it's clearly time to approach the PHB with it in terms that they will understand. Something along the lines of, "Yes, I'd love to tackle that super-urgent issue of yours, but I'm too busy fighting these n MS Word vulnerabilities" where n is greater than zero. That ought to do it.

    --
    Burns: We're building a casino!
    McAllister: Arrr. Give me 5 minutes.
  22. Just use OpenOffice rather than cutting them off by leonbrooks · · Score: 2, Insightful

    OpenOffice allows you to read & write MS-Word docs without having MS-Word. This has worked well for many of my customers, & they enjoy the PDF document production & the ability to recover many broken MS-Office documents simply by opening them in OpenOffice.

    OpenOffice also runs on more platforms & is developing faster, & the docs are much easier to externally process (they’re basically ZIPped XHTML in a moderately sane format).

    Oh, yes, and it’s much cheaper ($0 per seat) & you don’t have to watch out for time-bombs in the registration or anything like them.

    And finally, I like it more. It’s not perfect, but things are generally arranged more sensibly, plus a lot more odd little corner cases are correctly (consistently) implemented.

    --
    Got time? Spend some of it coding or testing