Slashdot Mirror


Microsoft Word Forms Passwords Hacked

An anonymous reader notes: "SecurityFocus has published a hack that can be used to unlock Microsoft Word documents that have been password protected. The 'secure' file can easily be edited and the original password re-inserted, removing any trace of the modification. A ZDNet UK article says Dell uses password protected Word files to send quotes, which could make for a messy legal battle." This feature, known as 'Password to Modify', is not the password protection on the document itself, just the protection that restricts unauthorized editing of the file. This hack allows someone to download such a file, edit it, and restore the password...effectively allowing changes to the file to go potentially unnoticed.

26 of 438 comments (clear)

  1. No messy Dell battle by MikeXpop · · Score: 4, Insightful
    This hack allows someone to download such a file, edit it, and restore the password...effectively allowing changes to the file to go potentially unnoticed.
    Basically meaning the submitters comments about Dell are wrong, as Dell wouldn't use that kind of protection.

    Come to think of it, I can't think of a real position where this could be a problem. What would someone do, host protected .doc's on a public server, and hope no one hacks into the server putting back the password-modified .doc? Anyone have a real world example?
    --
    Etiquette is etiquette. He kills his mother but he can't wear grey trousers.
    1. Re:No messy Dell battle by Anonymous Coward · · Score: 1, Insightful

      I receive my Dell quotes as an html attachment, with a quote reference number which is also available via their web site. So I think this whole Dell conspiracy thing is a dead subject.

      int27h

  2. hehe by NeoGeo64 · · Score: 3, Insightful

    Another case of "if you build it I'll break it"

    Anything built by man can be cracked by man.

    DRM is useless bloatware.

  3. Reasons for Digital Signatures by Dark+Paladin · · Score: 2, Insightful

    I've been playing around with some digital signatures solutions (like the one from arx.com) to deal with issues like these - documents that must be "signed" and verified beyond "reasonable doubt".

    What it comes down to isn't necessarily a "Microsoft Word" problem - it's an issue with verifying that data has its integrity. Probably doing an MD5/SHA1 hash on all documents and attaching that with the document would be good enough - which means you could just use text files instead.

  4. OMG MICROSFT IS TEH SUCK by Anonymous Coward · · Score: 1, Insightful



    I love coming to Slashdot to read tech news, and every third post is "Micro$oft sucks HAHAHAHAHA LOL."

    Jesus god, its like a gren AOL chat room these days.

  5. How dumb do you have to be? by p3d0 · · Score: 3, Insightful
    What kind of rank amateur would just put a hashed password in the file, and then rely on hostile software to obey that password? Good grief.

    The real solution is a digital signature. Anyone to whom that is not obvious shouldn't be putting security measures in commercial products.

    --
    Patrick Doyle
    I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
  6. And this is a good thing by Smack · · Score: 4, Insightful

    The fact that it can't determine your actual password is a good thing. Not for the security of that particular document, obviously, but for the security of other things you may have used the same password for.

  7. Re:Nothing New by pegr · · Score: 2, Insightful

    If your hack program only returns gobbledy-gook type passwords, how do you go about re-locking the document in such a way that your changes are undetected?

    um, if your bruted password gens the same hash, why wouldn't the original (and unknown) password unlock it as well?

  8. Messy by icemax · · Score: 3, Insightful

    This could become a very large legal problem for Word users that rely on this type of protection to (legally) prove that files have not been tampered with (think FDA submissions for pharmacuticals).
    I see this being a larger problem in the future, when MS Office DRM is used on most files assuming that these files will follow the orderes encoded into their DRM. Imagine a file that is supposed to self-destruct in 10 months as part of a document retention lifecycle. Two years from now, a tape backup of that file is subpoenad and the DRM is hacked so that the file is openable, leaving said company liable for its contents previously thought destroyed.
    I don't mean to rag on Microsoft or its protection schemes, more on those who use these weak means as a method of security in their infrastructure. A good server-based file protection model will always trump a good in-file-based protection model.

    --


    __________
    Love conquers all... except CANCER
  9. Re:Just how far should they go? by TwistedSquare · · Score: 4, Insightful
    It wasn't that long ago that the 128-bit encryption version of Internet Explorer couldn't be downloaded by anyone outside the US (even people in countries such as the UK) because that key length was longer than US export laws allowed at that time

    I saw a good point the other day that US export laws on cryptography were fairly stupid when you consider that other countries have the skills/intelligence to develop strong cryptography outside the US in the first place. For example, RSA was originally developed in the UK.

  10. Re: Just how far should they go? by Black+Parrot · · Score: 4, Insightful


    > OK, I'm not saying that Microsoft's totally without guilt here but just how far do people think they need to go with regards to securing passworded files? 48-bit encryption? 128-bit? 160-bit with triple DES? At what stage does the encryption become overkill?

    So long as we ride the Moore Curve, overkill degrades to underkill at a rate of about one bit per 18 months. So if you want your document to be secure in perpetuity, you'd better use a lot of bits.

    --
    Sheesh, evil *and* a jerk. -- Jade
  11. Re:RTFA... It's hilarious by Kevin+Stevens · · Score: 5, Insightful

    The locks on these files are very similar to locks found on standard filing cabinets. They are there to prevent tampering, keeping people out of places they really shouldnt be- sensitive, but not absolutely secret stuff. Secure they are not. I have used these things before, and I can tell you, its pretty clear they are not using any heavy duty security. I do not see how anyone intelligent could really see them as otherwise. You dont have to read a EULA to realize there is no watermarking, no digitial signature, no complex scheme of any sort behind it. I put last year's tax records in a filing cabinet, but I wouldnt keep the deed to my house or my the account number to my secret account in the cayman's in there, I would buy a safe. Same concept here.

  12. A little salt... by Aardpig · · Score: 2, Insightful

    My understanding of the hack is this: it is possible to unlock a word document or form (i.e., make read-only parts writeable), modify it, and then re-lock it with the original password, without ever having to know what the original password is.

    Which then raises the question: in the hashing algorithm Microsoft is using to scramble the password, why the hell aren't they adding in some cryptographic salt?. If they had made the scrambled password (which is leaked when a locked document is saved as HTML) depend not only on the cleartext password, but also on the read-only parts of the document, then they wouldn't have this problem: a hacked document re-locked with the same scrambled password would have a different salt, and therefore a different cleartext password. D'oh!

    --
    Tubal-Cain smokes the white owl.
  13. OpenOffice by tds67 · · Score: 3, Insightful

    I would like to see this hack become a feature in OpenOffice.

  14. 0% Security and 100% Trouble by dimss · · Score: 2, Insightful

    All password protection that Microsoft use in their products is an eternal source of inconvenience. There was at least three cases in last five years when we had to use (il)legal cracking tools to recover _our own_ data in MS Access and MS Words when employee forgot password.

  15. Re:Nothing New by Anonymous Coward · · Score: 1, Insightful

    Why would you store the hash of a password in an encrypted file? I can see why you would do that for /authentication/, but not for /encryption/.

  16. DRM in Office 2003 is unaffected by kylef · · Score: 5, Insightful

    First of all, if you read the article, you will understand that Microsoft has not been advertising these "Word document passwords" as true security mechanisms. Microsoft has been pushing its new DRM Features in Office 2003 as the Microsoft-approved method to secure Office documents.

    In fact, I doubt Microsoft really put much effort into making these document-modification passwords all that secure. They have been around for quite some time, and I doubt they have changed much or improved much over the years. I don't know anyone who was relying on these document passwords for their security, and Microsoft did not advertise this as a great feature of Word. In fact, the bug itself is limited in scope to protecting Word FORMS from being modified.

    In any case, the new DRM features in Office 2003 are much more sophisticated and will no doubt be much more difficult to crack. THESE are the security features that Microsoft is pushing today, and if you really want to lambast Microsoft Security, then you must point out a way to subvert these newer technologies that Microsoft is actually pushing.

    It would be very big news indeed if someone could succeed in copying an Outlook 2003 email marked with a "Do Not Forward" permissions flag. Indeed, if someone could even READ such an email on an unauthorized email client, Microsoft's newest security policies would be questionable. Until then, I'm not convinced this is anything more than FUD trying to convince people that Office is inherently insecure.

  17. Re:Nothing New by spanielrage · · Score: 2, Insightful

    The password is likely stored using a (weak) hash function.

  18. Much ado about nothing. by Anonymous Coward · · Score: 2, Insightful

    "A ZDNet UK article says Dell uses password protected Word files to send quotes, which could make for a messy legal battle."

    ZDNet overreats. All Dell has to do is digitally sign the word files with gpg. Better yet, screw Word files and distribute digitally signed PDF quotes.

    Word files are meant to be edited. This stupid password security is a bolt on hack to try to make Word files do something they were never intended to be in the first place: secure electronic documents. There are, and have been for a long time, much better solutions.

  19. Re:RTFA... It's hilarious by Skater · · Score: 4, Insightful

    Reminds me of an electrician I knew that always worked on wires live. That way, he claimed, he was certain to be careful.

    He was pretty old, too, so I guess it worked...

    --RJ

  20. Re:No biggie by Anonymous Coward · · Score: 1, Insightful

    So Dell, a huge corperation with hundreds of thousands of people working for it decided to adopt a method of sending information that qualifies this entire corperation to be labled as an idiot and should be burned according to you?

    Look, shrink wrapped software like MS Word is notorous for coming to the virge of lying to the end user just so they can increase sales. Shrink wrapped software, software designed for large (enourmous) client bases for a wide array of hardware profiles is only about shovling crap down people's throats. MS should have, any software company, should have placed a big fat notice stating that this is not a system that should be used to protect your data if you choose to send it of the current machine. It is no better/worse than flagging the file read only for a select number of users. But isntead of saying that they probably hid it in the EULA or some other obscure document and chose to probably put in big bold print on the box or thanks to Mr. Clippy that you can do such a thing to protect your document from being modified.

    No there is no excuse for this...the only excuse MS or any company that does this sort of thing is the excuse that they are greedy and interested in only selling features that are worthless to the end user. The same idea could be brought over to bind. There is no excuse for the horrible flaws it has seen...simply laying blame of a root attack on a system to the fault of the sys admin is stupid. This is the reason why software will always reamain buggy and hardly reaching the goals they aimed to achieve. We are all to overly concearned about implimenting new ways of raking in more mula (DRM) and being bed buddies with other companies instead of cranking out secure systems (TCPA), bug free systems (grsecurity) like the consumer has wanted for a long time now.

  21. Re:Come on now... by Kevin+Stevens · · Score: 3, Insightful

    its a dumb password scheme because it was meant to be a dumb password scheme. Its a simple one way hash. It is a document, a self contained, meant to be passed around entity. Even if they used some complex password scheme, it would still not be difficult to brute force it, and thus make it inherently insecure. So I bet they had a design meeting at some point and said, "hey, the customers want a feature to prevent snooping/tampering of docs, lets put a simple lock feature on them" knowing full well that it was not secure. Considering that a document is a passed around, meant to be distributed, entity without centralized tracking or control, it would be very difficult to put real security on them, and nowhere have I seen MS office targeted as the "secure way" to store data. A company using this for invoices and such is just plain crazy. Its like complaining about the insecurity of a soft top convertible. Or that the jack that came with your car wouldnt hold the weight of your friend's truck (I mean its a jack isnt it?, there is nothing on there that says it wont jack up a truck) You cant ever trust the client, ever. Thats a cardinal tenet of security. Thats why we have barcodes, and no longer just put little pricetag stickers on products and ring up whatever is on them. You also wouldnt trust the little tiny lock on a diary to hold the wild stories of your other life as a transexual gay man, at least not without hiding the thing damn well when your family is over to visit. Im getting offtopic here, but the point is, MS Word in no way shape or form tries to be a secure document system, and trusting your business or very secret information to it is just silly.
    sir, please read the fine post.

  22. Signed PDF by Qrlx · · Score: 4, Insightful

    This came up at work. What happens if: You send out a contract as a Word doc email attachment. Customer changes the language of the contract, signs it, prints it, then mails it back. We could easily sign that without noticing the difference.

    We decided to send out digitally signed PDFs instead.

    1. Re:Signed PDF by Chester+K · · Score: 2, Insightful

      What happens if: You send out a contract as a Word doc email attachment. Customer changes the language of the contract, signs it, prints it, then mails it back. We could easily sign that without noticing the difference. We decided to send out digitally signed PDFs instead.

      Unfortunately that doesn't close the "customer changes it, prints it, signs it, sends it back, and we sign it without noticing" hole.

      --

      NO CARRIER
  23. Can't have it both ways by CaptainSuperBoy · · Score: 3, Insightful

    I'm sure that some people here are laughing at Microsoft for its "lax security." Of course if you really wanted to protect a Word document you could use Office 2003's built-in encryption features, which rely on Windows Rights Management. Yet the people who criticize Microsoft for Word's "security hole" are also the most vocal opponents to anything having to do with trusted computing, including Windows Rights Management. You can't have it both ways, you know. You can either accept that Microsoft's WRM already has a solution to this issue, or you decide that the additional security that WRM provides isn't worth the imagined "privacy and freedom" implications. But don't say that MS should make their file formats more secure while at the same time dismissing WRM.

  24. Re:Now way for such a thing to be secure by dbIII · · Score: 2, Insightful
    Don't trust passwords on supposed read only documents as a general rule.
    That's what PDF and MD5 sums are for. If it's a read-only document it shouldn't be in a modifiable format, so why not PDF? I used to be very annoyed with employment agencies which required resumes to be in Word format - one honest person at an agency told me that was so they could modify the things so that they could pad some out and strip others down when they forwarded them on to potential employers. I've seen the modified resume that was submitted for my current position, and I'm very suprised I got the job - almost all relevant details were stripped out. It looked like the agent was pushing a paticular canditate, and that person was not me.

    If you have something important in text in final form you shouldn't let others have it in an easily modifyable format. That said, it's easy enough to modify PDF files in the gimp, but the file size changes dramaticly.

    The sooner business people understand these things, the sooner that we'll all see the benefits of a standardized, omnipresent public key infrastructure.
    It probably will happen, everyone accepts virus scanners as a necessity now. Passwords and keys are still a different story - I had a short term contract with a company that used its company name as the Admin password on nearly every workstation and on POS machines that it sold, and the clients never changed it. A new IT manager with a clue, and remote updates of software fixed all that. Very few of the office or helpdesk staff thought passwords were anything other than an annoyance in that place.