Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

How Do You Handle New MS Word Vulnerabilities?

Posted by Cliff on Fri Dec 15, 2006 03:35 PM
from the it-maybe-time-to-look-into-a-new-word-processor dept.
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?"
+ -
story
This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • You can't... (Score:5, Insightful)

    by Otter (3800) on Friday December 15 2006, @03:39PM (#17260856) Journal
    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.
    • And why is that?

      Because MS's proprietary formats mean that the vulnerabilities in their code preclude easy backup plans should a new exploit like this come out.

      I would say that MORE businesses need to be crippled by the threat of infection via Word. Maybe then the powers-that-be in those companies will start looking long and hard at alternatives to Word and software with other proprietary formats. Advise the PHBs: "Well, look, you can either take the risk of $HORRIBLE_WORM_ATTACK or you can deal with no
    • with no real-world risk

      I question your use of the word "no" here. I think you are incorrect. Proof of concept exploits are out there and I think it's a matter of time before something nasty gets released.

      I'll agree that at least for now the risk is low, but I think that's going to change over time. Further, one needs to assess risk vs. loss. Our shop is a mid-sized lab. We can afford to spend a few hours a week of our IT staff sifting manually through filtered DOC attachments. The consequences of a

    • Re: (Score:3, 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

        • Re: (Score:3, 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.
    • 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) &
  • by Jhon (241832) * on Friday December 15 2006, @03:40PM (#17260874) Homepage Journal
    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.

    • Re: (Score:3, 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 [eweek.com]
  • % strings $1 | less

    (I'm almost serious).
  • Tell the users to rename the files to .dat. That's what we do for sending files around that our mail server blocks. The content of the e-mail would tell the user to rename the file back to .doc. We often send vbs scripts around that we rename to .txt to get around our mail server.
    • Your users are smart enough to do that? I want your job.

    • by Rob T Firefly (844560) on Friday December 15 2006, @03:53PM (#17261084) Homepage Journal
      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.
    • That solution does tend to work, and IMHO is fine. The problem isn't Visual Basic or Word itself, it's the fscking email client that auto executes everything, and clueless users that will open every single email attachment no matter who it's from.

      Clueless users can't be trained. IT people have been trying to train them for years, but the malware problem keeps getting worse because these users can't grasp very simplistic concepts. What amazes me is that companies continue to hire people like this that need t
  • Open Office (Score:4, Interesting)

    by Scott Lockwood (218839) * on Friday December 15 2006, @03:43PM (#17260932) Homepage Journal
    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. :-)
    • If you can't install programs on your work computer, there's always...

      (1) Portable Open Office: http://portableapps.com/apps/office/openoffice_por table [portableapps.com]

      It is "no-install" in the sense that the file you download just unzips OO into a folder for you.

      If the download size is a big deal, (2) Portable Abiword [portableapps.com] is much smaller, but only does basic word processing stuff.
      • Excellent! Fortunately, we have very liberal install policies - we in IT control who gets what. Those are very good resources though - I really like the idea of a portable open office that I could have on a key fob or whatever.
  • Coworker of mine has a sawed off hoe handle, which he maintains was useful for maintenance on an obscure now-obsolete color proofer. Routine application of this to users is beneficial in stopping the spread of these documents.

    Heh.

    The bulk of our traffic here is excel and powerpoint, so limiting word documents hasn't been a real problem. Additionally, corporate used to require stupidly high end router hardware in all parts of the building which was abusive on the budget, but, at times like this, comes in han
  • by everphilski (877346) on Friday December 15 2006, @03:43PM (#17260940) Journal
    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.
    • by Joe The Dragon (967727) on Friday December 15 2006, @03:46PM (#17260994)
      So what to tell the people in HR that are expecting resumes?
      • Tell them not to open the doc if the resume wasn't in good English. It might help them do their job better at the same time, as a bonus.
        • Tell them not to open the doc if the resume wasn't in good English. It might help them do their job better at the same time, as a bonus.

          Too bad the resume is the .doc file. We'll put you down under a list of "people who just don't get it". Unless you were trying to be funny. Then we can put you down on the list of "people with no sense of humor".

          • Oy, 1 word wrong and you flip out. Replace resume with 'email body' and poof, it makes sense. I'm sure most people could handle that. I've been here near 10 hours, and it IS funny, if you 'get it'.
      • Re: (Score:3, 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 ha
      • Re: (Score:3, 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.".

    • Clueless users can not be trained, and HR insists on hiring the clueless. So while 99% of your users will get the memo, only 50% will read it, and only 50% of those will actually understand what they are reading. 25% of those that understand will abide by your new "email rules." What are we down to now???

      Welcome to corporate, employee number 877346...

  • Any suggestion of sending documents in different formats (like rtf, html, txt, or pdf) results in even more creative user 'feedback'.
    Then tell them to zip the files and then they'll get through the filter. Problem solved.
    • Some of us - like basically everyone who cares - have filters that will scan the contents of common archive formats like zip, rar, ace, zoo, lha, lhz, .tar.{gz,bz2,Z} files, etc.
  • by PingSpike (947548) on Friday December 15 2006, @03:51PM (#17261050)
    We nuked the site from orbit. It was the only way to be sure.
  • The simplest way. (Score:4, Insightful)

    by revxul (463513) <morpheus@@@digitalucifer...net> on Friday December 15 2006, @03:55PM (#17261098) Homepage
    OpenOffice.org.
  • Quarantine (Score:3, Insightful)

    by Knara (9377) on Friday December 15 2006, @04:01PM (#17261182)

    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?

    • 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?

      Well, the latest vulnerability allows a malicious word doc to run code on the users machine. Assuming I wrote a userspace piece of malware, I could easy start sending stuff (anything the user has access to, theoretically) out port 80 to a collection point. Since windows will open documents with unknown extension but proper Word headers in word, filterin
  • We keep the AV scanner at the gateway up. We keep the spam filter at the gateway up. We keep the AV on the desktop up-to-date.

    Right now there's no good RPC-exploitable worm for Windows. Any word-based infection is going to be localized to a single machine (or, at most, to those machines a user has remote local administrative rights on). So, we watch. We stay at yellow allert, and we don't panic. Because right now, there's nothing to panic about. The ability to spread a virus/worm/mal* to a single mac
  • Wouldn't it be possible to automatically strip all macros from the documents? Of course, some documents wouldn't survive the alteration unscathed, but for most of the documents I don't think the end users would even notice a difference.
  • by jayjay_1978 (1040480) on Friday December 15 2006, @04:18PM (#17261446)
    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.

  • 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/ [demon.nl]
    Catdoc: http://www.45.free.net/~vitus/software/catdoc/ [free.net]

    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
    • 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.

  • With yet another zero-day exploit of MS-Word document files, what are fellow system admins doing to protect themselves against these threats?

    Yet more evidence of the truth and beauty of the Church of Emacs [dina.kvl.dk].

    Or, if one is into truly antediluvian forms of worship, Ed, man! !man ed [gnu.org].
  • by slamb (119285) * on Friday December 15 2006, @05:38PM (#17262540) Homepage
    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 [tigris.org] with friendly TortoiseSVN [tigris.org] 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 [tigris.org] office documents. You can maintain branches!
      6. Supports searching - where I work, we've plugged in swish-e [swish-e.org] 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.
  • by 6031769 (829845) on Friday December 15 2006, @07:20PM (#17263552) Homepage Journal
    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.
    • Re: (Score:3, 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.
      • You'll have to excuse the grandparent poster - he's confusing his "0-day warez" scene slang with real language.
      • Re:I don't (Score:4, Interesting)

        by CerebusUS (21051) on Friday December 15 2006, @04:14PM (#17261372)
        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."
    • Re: (Score:3, 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.