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.
Forms. What is it all about... is it good, or is it whack?
There have been utilities to obtain Word passwords for quite a while. I've tested mine on Office 2000 and XP protected documents and had great success.
What's odd: The password returned by my tool of choice is not the same as the one actually stored - but when I enter this new password OR the original password into Word, the document is successfully unprotected. Some sort of odd math that makes more than one password work?
Example - I protected both a Word 2000 and Word 2002 document with the password "test" then ran them through my cracker. The cracker returned the password "QFQDOBCTGLHGEE" virtually instantly for both documents. Oddly enough, this new unusual password successfully unlocked both Word documents using Tools > Unprotect Document. Subsequent testing reveals that the original password will also unprotect the document.
So, if such passwords can easily be bypassed anyway - what does this really change?
I should note that I'm using a Passware product called Office Key.
This crack just takes what has been commercially available for quite some time and moves it into the public arena.
Josh
How many roads must a man walk down? 42.
Is this a dupe? I could swear I've read this one before.
it is not a problem, it is a feature!
No trees were harmed in the composition of this; however, numerous electrons were inconvenienced.
There'll be a patch for this coming sometime this year, I'm sure. Maybe by March.
I wonder if Microsoft was warned about this before this information was posted.
You are in error. No-one is screaming. Thank you for your cooperation.
According to Microsoft, the password protection feature on Word is not intended to be secure, but should be regarded as a means to protect documents against accidental modification. I use Word and don't ever recall being advised of this, but then I suppose the EULA does warn users never to actually rely on the software for anything important.
I never expected the protection in Word to be anything special, but sometimes (as shown here by Dell) it's better to have no security than false security because that way you take greater care.
But for those of you who never RTA, here is what was the highlight for me:
Aide-toi, le Ciel t'aidera - Jeanne D'Arc.
I swear, you guys gave me a quote of $6.35 for a new Latitude.
If I recall, openoffice/staroffice can open "encrypted" Word and Excel documents without the requirement of a password. I know this used to work for older versions...
-- Minds are like parachutes... they work best when open.
Wanna bet?
"God fights on the side with the best artillery." - Napoleon, Marshal of France - speaking truth to power
Anyone that passes around "confidential" stuff w/o putting it through GPG or equivalent is an idiot and deserver to be burned anyway.
Save your wrists today - switch to Dvorak
How could password to modify work? Couldn't you just use something like OpenOffice (maybe modifyied) to get around it? Their scheme seems to assume everyone will play nice and respect their password setting.
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
Etiquette is etiquette. He kills his mother but he can't wear grey trousers.
As SF.com is located in the US, isn't this exactly something covered under the DMCA: publishing a method to circumvent a protect mechanism.
In that case, what are the chances of them getting into trouble?
If an experiment works, something has gone wrong.
Another case of "if you build it I'll break it"
Anything built by man can be cracked by man.
DRM is useless bloatware.
... or not
Passwords can use a one way function.
Take the source string, do a bunch of 'stuff' to it, stuff that isn't easy to undo.
You can throw out some data too.
You end up with a new string, but since you threw out some information, you end up unable to reverse it.
Even if you know the end result, and the formula, you can't guess the password. You'd have to brute force it.
With slow computers, this was a very good obstacle. Now we use fancier algorithms, and it is still okay.
I'm not a math guy, go read crypto books if you want the 'real' explanation
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.
52 Weeks, 52 Religions with John Hummel
Does OO.org have a similar feature? All of you are quick to jump Microsoft's case about this, so how does your Office Suite of choice stack up against Microsoft Office?
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.
Without some type of private/public digital signature system, you're going to see problems like this. Don't trust passwords on supposed read only documents as a general rule.
The sooner business people understand these things, the sooner that we'll all see the benefits of a standardized, omnipresent public key infrastructure. Make sure to educate the nontechnical people in your office so that they demand better security for their data.
Why are you letting these clowns ruin our country?
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....
If you use this feature and expect it to be secure in my opinion you're just asking for trouble. Of course this is M$'s fault, but really! Is this a surprise to anyone. I mean, anything can be hacked in time, but a password-protected word document? I've forgotten passwords myself in the past and decrypted the file in about a half-hour, and I'm hardly what you'd call a l33t d00d! I mean FFS! It's a word processor. Two answers to this. A) Don't let anyone but you have access to the file. Protect your PC and it's harddrive. B) Use something like steganos, or something better to securely encrypt your files. Don't trust in the MS. Anyway, everyone should be using AbiWord.
Sign the FSF's Anti-DMCA petit
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.
I work with Dell for our workstation and laptop purchases and not once in the last 3 years have they sent me a quote in a Word document.
They have a system that links the quote with your customer ID and gets generated as an HTML file which gets emailed to you. All automagically.
To whom ever that thought they could change a word document quote and expect to get that price, I got some beach front property to sell you in Kansas. Silly fool.
It's old news -- that's why Microsoft prefers PDF for the really important stuff.
that I noticed my customer was a 12 foot tall monster from the crustacious period! He looked me right in the eye and said, 'My quote for the dell says about Tree-Fitty!' and I said GOD DAMN YOU LOCHNESS MONSTER!
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?
And what about the consequences of selling Office (or even emailing a file) around the world with such strong encryption? 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. So where do you draw the line between too weak (to be of any use to anyone at all) and too strong (to be of use to anyone who needs to deal with anyone based outside the US)?
"Accept that some days you are the pigeon, and some days you are the statue." - David Brent, Wernham Hogg
Actually it doesn't need a possessive. "Microsoft Word" is a noun functioning as an adjective, describing the noun 'forms'. You need to brush up, Nazi.
Was this ever really meant to be really truly secure? "security" features like that have always been lame at best and equivalent to luggage locks. These passwords have always been susceptible to brute force attacks. Anyone really serious about keeping documents safe puts them into a source control program. There are many ways to pick at MS's security, this is not one of them. But if you are trusting these measures for really secure documents, I highly suggest you get your valuables out of the pink plastic safe you won at the county fair last year.
No more than the password on ZIP files isn't solid protection.
One line blog. I hear that they're called Twitters now.
Didn't RTFA.
C:\>
Great more yacking about security. Try to keep your drool from short circuiting your Dvorak keyboards.
/etc/passwd, eh? How long you you think those'll be secure? In 2 years most Unix sites in the world will be forced to change to something more secure - we'll see who's laughing when that scramble happens.
1. Word password protection is semi-advisory, and it's not intended for serious content protection, and never has been.
2. How about those crypt passwords in
To: BugTraq /tdk :-)
Subject: Microsoft Word Protection Bypass
Date: Jan 2 2004 10:51AM
Author: Thorsten Delbrouck-Konetzko
Hi all,
Microsoft Word provides an option to protect "forms" by password. This is
used to ensure that unauthorized users cannot manipulate the contents of
documents except within specially designed "form" areas. This feature is
also often used to protect documents which do not even have form areas
(quotations/offers etc.).
This form protection can easily be removed without any additional tools
(apart from a hex-editor).
Please find the full advisory attached.
best regards,
Thorsten Delbrouck
Chief Information Officer
Guardeonic Solutions AG
Rosenheimer Str. 116
D-81669 Munich
Security Advisory #01-2004
Advisory Name: Microsoft Word Form Protection Bypass
Release Date: 2004-01-02
Affected Product: Microsoft Word
Platform: Microsoft Windows, probably Apple Mac OS
Version: tested on 2000, 2002 (XP), 2003,probably other versions vulnerable as well
Severity:Document ("Form") protection can be easily removed
Author:Thorsten Delbrouck
Vendor Communication:2003-11-27, 10:30 UTC Microsoft notified to: secure microsoft com
2003-11-27 confirmed receipt
from: secure microsoft com
2003-12-03 Note from Microsoft, Form
protection "is not intended as a full-proof protection for tampering or spoofing, this is
merely a functionality to prevent accidental
changes of a document", request additional
time to update Microsoft Knowledge Base
article. Targetting beginning of January 2004 for release of this advisory.
from: "Magnus"
2003-12-08 Microsoft has already released the KB article (or added a warning to an existing article). Read the KB article at http://support.microsoft.com/?id=822924
from: "Magnus"
Overview:
Word provides an option to protect "forms" by password. This is used
to ensure that unauthorized users can not manipulate the contents of
documents except within specially designed "form" areas. This feature
is also often used to protect documents which do not even have form
areas (quotations/offers etc.).
(Word users will find this option on the "Tools" menu, entry "Protection", select "Forms" there and provide a password)If a Word document is protected" by this mechanism, users cannot select parts of the text or place the cursor ithin the text thus they cannot make any changes to the document.
Description:
When saving protected Word-documents as html-files, Word adds a
"checksum" of the password (enclosed in a proprietary tag) to the
code. The checksum format looks somewhat like CRC32 but currently
there are no further details available. The same checksum can be
found within the original Word document (hexadecimal view). If this
"checksum" is replaced by 0x00000000 the password equals an empty
string.
Example:
1.) Open a protected document in MS Word
2.) Save as "Web Page (*.htm; *.html)", close Word
3.) Open html-document in any Text-Editor
4.) Search "" tag, the line reads something like that: ABCDEF01
5.) keep the "password" in mind
6.) Open original document (.doc) with any hex-editor
7.) search for hex-values of the password (reverse order!)
8.) Overwrite all 4 double-bytes with 0x00, Save, Close
9.) Open document with MS Word, Select "Tools / Unprotect Document"
(password is blank)
Variation:
If the 8 checksum bytes are replaced with the checksum of a known
password it should be fairly easy to unprotect the document, make any
necessary changes, save, close and reset the password to the original
(unknown!) password by simply restoring the original values. Document
changed without even knowing the password. Nasty.
(Note: Take care to get file properties (author, organisation,
date/time etc.) right.)
Solution:
No solution is currently available. Do not rely on the "Protect
Forms" mechanism to protect a Word document against changes.
Credits:
Magnus from the Microsoft Security Response Center for his fast
responses and for showing a decent sense of humour.
Our company has hundreds of forms that are now completely out of date, but they were Microsoft Word Forms and a few of them were actually protected with a password. I just checked your generic password, but it didn't work for my forms. These forms were created originally in Microsoft Office 4.2 (for windows 3.1 - HA!) and some have been upgraded for use in Office 97 (double HA!). It might be a different algorithm for Word 2000 than it is for Word 5 or 97.
potentially unnoticed?
what about an md5sum of the document? ITS NOT HARD
Well, what are the passwords, then?
If the program claims that you can lock a document against modification, then shouldn't it provide verification of that? Or does it believe in its infallability.
I know MS word includes signatures, why wouldn't a signature be an automatic feature on a locked document???
shame.
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
I'm not sure how this compares to the same feature in Excell, but I've done this for years on Excell 2000 files. I've used these powers for good, not evil, mostly for fellow employees who've locked their documents, only to forget their passwords months later. Then I've had to instruct them on proper computer usage.
Apparently, the "do one thing well" paradigm of Unix escapes people in the MS world. Use your document creation software for document creation, not security. Use encryption software to protect data. Use filesystem permissions to prevent other people from changing your files. And please don't provide sensitive information to the world located in "Hidden" fields that have been "Locked". A trivial dump of the file reveals all of the information intended to be hidden. And simple knowledge of the file format in question allows all the changes you want.
...before I even heard of the feature itself.
Opus: the Swiss army knife of audio codec
hehe
Did you RTFA? Apparently not. They told Microsoft about it before releasing it. If Microsoft didn't want this released to the public, they might would have done something about it before now.
C:\>
Hi all,
:-)
Microsoft Word provides an option to protect "forms" by password. This is
used to ensure that unauthorized users cannot manipulate the contents of
documents except within specially designed "form" areas. This feature is
also often used to protect documents which do not even have form areas
(quotations/offers etc.).
This form protection can easily be removed without any additional tools
(apart from a hex-editor).
Please find the full advisory attached.
Overview:
Word provides an option to protect "forms" by password. This is used
to ensure that unauthorized users can not manipulate the contents of
documents except within specially designed "form" areas. This feature
is also often used to protect documents which do not even have form
areas (quotations/offers etc.).
(Word users will find this option on the "Tools" menu, entry
"Protection", select "Forms" there and provide a password)
If a Word document is "protected" by this mechanism, users cannot
select parts of the text or place the cursor within the text --- thus
they cannot make any changes to the document.
Description:
When saving protected Word-documents as html-files, Word adds a
"checksum" of the password (enclosed in a proprietary tag) to the
code. The checksum format looks somewhat like CRC32 but currently
there are no further details available. The same checksum can be
found within the original Word document (hexadecimal view). If this
"checksum" is replaced by 0x00000000 the password equals an empty
string.
Example:
1.) Open a protected document in MS Word
2.) Save as "Web Page (*.htm; *.html)", close Word
3.) Open html-document in any Text-Editor
4.) Search "" tag, the line reads something like
that: ABCDEF01
5.) keep the "password" in mind
6.) Open original document (.doc) with any hex-editor
7.) search for hex-values of the password (reverse order!)
8.) Overwrite all 4 double-bytes with 0x00, Save, Close
9.) Open document with MS Word, Select "Tools / Unprotect Document"
(password is blank)
Variation:
If the 8 checksum bytes are replaced with the checksum of a known
password it should be fairly easy to unprotect the document, make any
necessary changes, save, close and reset the password to the original
(unknown!) password by simply restoring the original values. Document
changed without even knowing the password. Nasty.
(Note: Take care to get file properties (author, organisation,
date/time etc.) right.)
Solution:
No solution is currently available. Do not rely on the "Protect
Forms" mechanism to protect a Word document against changes.
Credits:
Magnus from the Microsoft Security Response Center for his fast
responses and for showing a decent sense of humour.
If you don't want your document to be changed by others, why don't you crypto-sign it?
Its not specific to any specific document format or type and requires no extra features/code on the behalf of every program. Ofcourse "Password-protecting yadda yadda yadda" sure sounds good on a feature list of a word processor, even if completely useless.
Unfortunately, this only gives them another excuse to shift the Office file formats to something that is encrypted, DRM'ed, patented, etc.
Tired of FB/Google censorship? Visit UNCENSORED!
I got $.50 that says Microsoft goes after Security Focus via DMCA. If that day comes, don't pretend to act surprised. It ain't right, but it's happened before elsewhere.
"Derp de derp."
Someone please mod parent insightful.
Microsoft pointed to this Knowledge Base article. Choice quote: "Not all features that are found on the Security tab are designed to help make your documents and files more secure."
Full thing.
d >
-----------------------
1.) Open a protected document in MS Word
2.) Save as "Web Page (*.htm; *.html)", close Word
3.) Open html-document in any Text-Editor
4.) Search "<w:UnprotectPassword>" tag, the line reads something like
that: <w:UnprotectPassword>ABCDEF01</w:UnprotectPasswor
5.) keep the "password" in mind
6.) Open original document (.doc) with any hex-editor
7.) search for hex-values of the password (reverse order!)
8.) Overwrite all 4 double-bytes with 0x00, Save, Close
9.) Open document with MS Word, Select "Tools / Unprotect Document"
(password is blank)
IIRC .ZIP files were stored in plaintext, so you could easily unlock it with viewing it in a hex editor.
Overview: Word provides an option to protect "forms" by password. This is used to ensure that unauthorized users can not manipulate the contents of documents except within specially designed "form" areas. This feature is also often used to protect documents which do not even have form areas (quotations/offers etc.). (Word users will find this option on the "Tools" menu, entry "Protection", select "Forms" there and provide a password). If a Word document is "protected" by this mechanism, users cannot select parts of the text or place the cursor within the text - thus they cannot make any changes to the document.
Description: When saving protected Word-documents as html-files, Word adds a "checksum" of the password (enclosed in a proprietary tag) to the code. The checksum format looks somewhat like CRC32 but currently there are no further details available. The same checksum can be found within the original Word document (hexadecimal view). If this "checksum" is replaced by 0x00000000 the password equals an empty string.
Example:
1.) Open a protected document in MS Word
2.) Save as "Web Page (*.htm; *.html)", close Word
3.) Open html-document in any Text-Editor
4.) Search "" tag, the line reads something like
that: ABCDEF01
5.) keep the "password" in mind
6.) Open original document (.doc) with any hex-editor
7.) search for hex-values of the password (reverse order!)
8.) Overwrite all 4 double-bytes with 0x00, Save, Close
9.) Open document with MS Word, Select "Tools / Unprotect Document" (password is blank)
Variation: If the 8 checksum bytes are replaced with the checksum of a known password it should be fairly easy to unprotect the document, make any necessary changes, save, close and reset the password to the original (unknown!) password by simply restoring the original values. Document changed without even knowing the password. Nasty. (Note: Take care to get file properties (author, organisation, date/time etc.) right.)
Solution: No solution is currently available. Do not rely on the "Protect Forms" mechanism to protect a Word document against changes.
Credits: Magnus from the Microsoft Security Response Center for his fast responses and for showing a decent sense of humour.
Surely, that should read "potentially go unnoticed"?
Powered by onion juice.
If you shouldn't need to edit the doc, why are you using a editor?
You aren't allowed to be a punctuation nazi if you can't even get your correction correct. "Forms's" is wrong.
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.
The page is titled: "Overview of Office Features That Are Intended to Enable Collaboration and That Are Not Intended to Increase Security", and reeks of hindsight. Microsoft notes that these features were never intended to increase security, but were designed to encourage collaboration.
But on the other hand, they also say:
"Information About Strong Passwords To reduce the chances of someone guessing your password, use only strong passwords.
For a password to be a strong password, it should meet all the following criteria:
* Be at least seven characters long. Longer passwords are more secure.
"...etc.
Why would users be encouraged to use strong passwords, not easily guessed by malicious users etc, when they were just intended to avoid accidental modifications? The document is clearly a lame attempt my M$ to coverup a serious vulnerability by suggesting that the feature was not designed to provide security. However, I bet they would not have hesitated to tout it as a "security feature" in Microsoft Word, had the vulnerability not been found.
An Indian-American Hindu committed to non-violent thought/speech/action alarmed by the global explosion of radical Islam
This is excellent news. The more Microsoft continues to prove itself as market leaders in security the more copies of Windows XP SP2 they can sell.;)
...
nick
Electronic Music Made Using Linux http://soundcloud.com/polyp
First Post, suck it, bitches.
I've modified "protected" Word documents by opening them in Notepad and scrolling through the last few lines until I find a string of plain text that looks like a password (i.e. isn't a username or Word setting). Although this takes a bit more time for the searching, there's no need to modify the password at all.
It has come to our attention that you have need of a modren computer of the protable varietal. I HUMBLY REPRESENT THE OFFICES OF THE DELL WHO HAVE IN OUR POSSESSION A SPECIAL PRICING IN ORDER TO DELIVER MODREN COMPUTERS OF THE PROTABLE FOR A MERE ONE HUNDRED US DOLLARS ($100.00). PLEASE FIND ATTACHED THIS QUOTE WHICH I AM SURE YOU WILL REMAIN IN THE STRICTEST CONFIDENCE.
But how gives a shit on these acronyms that does not match or obscure the real reason for these laws.?
The
HR
passes the
"Uniting and Strengthening America by Providing Appropriate Tools Required to Intercept and Obstruct Terrorism"
(USA PATRIOT ACT)
and then the
"Terrorism" Information Awareness" (TIA) or "Total" Information Awareness (TIA)
and now the United States Visitor and Immigrant Status Indicator
Technology Program (''US-VISIT'');
What does all these have in common?
They all sound soooo harmless!
Grundgesetz * 23. Mai 1949 - 30. November 2007 - http://www.vorratsdatenspeicherung.de/
Works with all author known versions of Word:
1. Open the Word Document.
2. Save it as Rich Text (RTF) format.
3. Open the new RTF document.
4. Unprotect the document.
5. Save as Word document.
It oes not give you the password or let you save with the password intact, but is a very useful 'cheat' I have learned.
The voices in my head don't bother me. It's the voices in yours that do.
Yeah, I read the article after I posted in order to satisfy the curiosity that I expressed in my post about whether or not they were warned.
Sure enough, they were, and they blew it off.
Kind of makes me think of the Monty Python Crunchy Frog sketch when Mr. Hilton tells the man from Hygiene Squadron that his company's "Ram's Bladder Cup" chocolate treat is "garnished with lark's vomit."
"Lark's vomit?!"
"Correct"
"It doesn't say anything here about lark's vomit!"
"It does, actually, at the bottom of the label after monosodium glutamate."
"I hardly think that's good enough! I think it would be more appropriate if the box bore a big red label, 'WARNING: LARK'S VOMIT!'"
Similarly, I think it would be more appropriate if using the password feature on a Word document would bring up a big red alert dialogue box that reads "WARNING: YOU'RE NOT REALLY SECURING THIS DOCUMENT AT ALL!"
Maybe it does do that and people just ignore it. I've never used the feature, so I wouldn't know.
You are in error. No-one is screaming. Thank you for your cooperation.
I would like to see this hack become a feature in OpenOffice.
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.
When SecurityFocus was asked about the implications of this finding, they would only comment "Dude, we're getting some Dells!"
-no broken link
Totally ineffective protection like this is worse than no protection at all. Thank you Microsoft for another useless "feature" which gives bad people an edge.
In Soviet America the banks rob you!
Nasssty formses, they stoles it from us, yesss...
Not everyone who uses a computer is a geek, you know.
Yes, but everyone who programs for Microsoft is a geek. Their security people should understand this, and make a resistant system.
I hereby place the above post in the public domain.
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.
I can't believe they found a security hole in a Microsoft product. What has the world come to.
um.. his "generic password" isn't a "generic password" at all.
It is just a password that generated the same hash as his password.
--- If I were a fish, I'd be wet
There is a pattern here: Put in passwords, call it "protection", and allow users to believe they have security, when then don't. For example, Bart's PE Builder allows access to Windows XP systems, and changing the passwords, even when the password to the recovery console is not known. Recovery Manager changes passwords.
"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.
(try protecting a Word 2000 or 2002 document with the password 'test', then unprotect it with the given password)
you might also be interested in this comment
--- If I were a fish, I'd be wet
This isn't true for us. I work for an .edu and get quotes from Dell for stuff on a weekly basis. All of Dell's quotes come as an HTML attachment.
nt
I have a password protected word file from a teacher's edition of a text book on Java Programming. I just tried to open it, and if you do not enter the password correctly, you can not do anything. No re-saving it as a webpage, no editing it in notepad.
Follow up
Has anyone actually tried this method? I had several folks call me saying they couldn't actually save the HTML with the password (they get a warning that it will be removed). I have also tried and get the same thing?
If I knew someone with such a name, I'd make sure that it sucks.
>removing any trace of the modification.
modification can be checked using a checksum of the original and suspect files. that is.. if the user knows how to obtain the checksums.
Microsoft Word is the best product ever. It's the only text format that can carry viruses, and now it isn't even secure. Can anyone say digital signature?
:)
You can't forge those without a supercomputer or two. Geez.
It really looks like M$ goes out of their way to be stupid. I mean I could come up with a better document encryption scheme, and I'm still in high school.
Here it is: digitally sign the document if you don't want people modifying it. If you do modify it, digitally sign the diffs. Easy. To prevent people from reading it, encrypt it. It's simple, really. We have tools available for this, anyway. Just type your quote "I'll give you 3000 of model xyz for $31337. OK?" and feed it to gpg. Done. No need for proprietary formats, no need to shell out $500 for Office. It's done more securely, simply, and cost-effectively. I don't understand why people use M$ garbage!
(And I know I'm going to get a reply like "How do you write papers without Word, smartass." LaTeX. Look at this essay for an example.
My other car is first.
TRY ALL CAPS.
Does anyone bother to check the "Last Save By" field in the document's properties? Shouldnt that give away the fact that the doc was edited?
Another question.
When Dell sends a quote, $3000 for a server for example, why would the customer EDIT the quote and return it.. wouldnt the Dell Sales Rep create ANOTHER quote and send it to the customer? Seems silly to me..
...that a big company such as Dell could be stupid enough to assume that word's password system would be secure. I mean, anyone who's used a computer for a few years knows that password protection like this is very rarely secure...look at the laughable "protection" on zip files for another example. If you want something to be secure you encrypt it...obvious, painless and free.
Sure, he locks the doors, but then he leaves the windows rolled down.
Proverbs 21:19
Actually it does need a possessive. The "passwords" belong to the forms. But technically "form" should be singular, since the phrase implies the plural, so it doesn't need a possessive.
Ah, English. Where there are more ways than Perl.
A while back I read an article on the legality of manually changing the HTML form used by some shopping cart software. Is it legal to change the price of a plasma screen TV to $250 instead of $5000? Could you force the seller to honor the adjusted price?
The answer, surprisingly, is that the "hacker" had an excellent chance of winning in court. Quotes are offers and subject to negotiation. The burden is on the offerer to verify that the counteroffer is acceptable - they are always free to reject any counteroffer and insist on the original price. The company can either pay to have somebody check the prices in counteroffers (or to have somebody automate that check), or it can absorb the loss when it automatically accepts such counteroffers.
For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
Today I want to show how you may load some xls-file that is password-protected, and how to save xls into another file but without protection.Just replace there file names and password Not sure if it works on the latest version. Office Automation - coming soon to a worm near you.
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.
Run a comparison against the original in DeltaView or some other third party app. Then you'll see the changes, no matter what monkey business intervenes.
The only legally defensible approach to digital document integrity is digital signatures with public/private keying. Digital signatures do not prevent modification, but instead can be used to prove that a document has been modified without consent of the original signer.
Current digital signature technology is capable of providing overwelming legal proof that the integrity of a document is tied to the secrecy of a private key.
Oddly enough, the legal strength of digital signatures is frightening to businesses. If Dell price quotes were digitally signed, and someone presented a Dell price quote with valid digital signature in court... Dell's only defense would be that Dell made a mistake... or that someone got access to the private key without Dell authorization. That's a difficult legal position for Dell. Better to use some cheesy pasword-in-the-document crap that is easily discredited in court, so Dell can claim the quote has been tampered with and therefore not binding.
I don't mean to pick on Dell in particular... I think many companies are wary of digital signatures because of their legal strength.
Jono
isn't this old news? That M$ and security is a contradictory tautology?
It's more secure to use ZIP (not WinZIP since WinZIP has a security weakness) or better yet, use RARs.
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.
The problem is not that this hack allows you to edit protected documents, because anyone who can read it could just reproduce the document from scratch, and the password protection is not intended to prevent reading. The problem is that after editing with the hack, the document is still protected with the same password. Previously, if the document was still protected, you could be sure that only someone who had the password could have edited it.
They should not have stored just the password hash, but rather a combined cryptographic hash of the password and the form. Then it would be computationally infeasable for someone without the password to edit the form without detection.
Plus a 32 bit unsalted hash is pretty goddamn weak in the first place. You gotta wonder where their 6+ billion a year (only 1/5th of their revenue) R&D budget goes. Certainly not even 1/100th of that goes into their products.
I mean, honestly.
What the author is complaining about here is that someone can take a WORLD OPENABLE FILE and modify it.
This is the exact same thing that we see on Slashdot every other day regarding DRM files. Repeat after me: If you can open it, you can change it. Heck, you can probably cut and paste the contents into a new unprotected Word document!
The only news here is that you can "reinsert" the password into the document. Big whooptie doo. Because if I were to publish a form in a public location I would not keep a protected backup elsewhere for it.
What's next?
"A researcher has discovered that by opening a document on one PC he can retype the document on the PC to his right in an unprotected format. The style of the document needed a little tweaking to match the original, but it was doable".
I mean, SERIOUSLY. These files merely have a small protection against being overwritten accidentally. If you want real protection in the Microsoft world, use EFS, share permissions, something else.
Word has a couple levels of protection:
1) Change protection. This is merely a stupid password to make sure you don't accidentally change the document, make sure you can only write in certain fields, etc. It's a poor man's DRM.
2) Read protection. This is true encryption. It was really poor under Office 95, but from Office 97 and forwards it has been significantly strengthened, to the point where it's now a pure brute force attack. Pick a line from a song as a passphrase and you won't break the document open in a million years.
Office 2003 is supposed to have some magical DRM properties that go even beyond these capabilities in that you can permission a document to be readable but not printable, you can forward only within an organization or you can expire the document in three days. When we see an article on how to break that (beyond digital camera and OCR) I'll be impressed.
-Jack Ash
I helped a family member install a washer/dryer set. It took 220v/60hz and he hadn't installed the plug onto the bare wires.
We asked my dear cousin if the breaker was set to "off," asked her to double check, and then went to work. I went to work and accidentally bumped the wires, causing a huge arc about 2 inches in front of my eyes.
I was lucky to live, folks. I'm not sure who the bigger fool was, me or my cousin. The leson is that a wire isn't dead until you have personally checked it, and checked it again. Even then you have to be careful.
I'm pretty new to high voltage electronics and information security, but I have learned a lesson.
It seems to me that even if you use this Word feature, and know what it does, you can't count on your documents being secured. Another ignoramus will come along and screw it up and you won't know it. I really despise half solutions. They are as useful as almost making jump over the Grand Canyon.
Now, we all know what the information security equivalent to lockout/tagout is, right?
Done venting now, thanks.
Why do I have this? I don't smoke.
Dell doesn't use those types of files to send out quotes. They just send out HTML emails with the quote information, and the contact info of the salesperson and their quote number. This isn't an insecure situation because the sales agent knows what quotes they've sent out, and the quote number will pull that (and only that) information right back up, no matter what some silly person might do with the email they were sent.
Even if someone did modify those emails and send them to a different rep, the rep is just going to punch in the quote number (which would have the correct price) to get the configuration up instead of messing around redoing the configuration.
Funny, About a year ago some client asked me how to edit password protected M$ Word documents. After some fiddling i discovered when exporting the the file to HTML and removing the obvious "Forms" tags and importing it again, the password was gone. It's been on my site since for people to abuse because i love M$ ..yeah right!
http://www.lostboi.com
Myself and others have tried to reproduce the bypass and cannot. I have created several forms documents as well as found existing ones to try it on. Whenever I save as HTML, the w:UnprotectPassword tag is not present. Initially I had problems with the HTML compatibility settings, which I got worked out, but even after using every logical combination of settings I still do not get the tag. I have tried different methods of protecting the document, still no password hash in the HTML.
I can easily bypass the document protection, but not in a way that is not noticible.
What am I missing or has anyone successfully reproduced?
Weird, we never get Dell quotes as .DOC files. They're always .HTML
I can't say how much it annoys me that something this simple and old makes it to SecurityFocus, let alone Slashdot.
I have been doing this since some years to get rid of forms protection, and there are many ways to.
Saving as RTF works, saving as HTML (the full-blown word format), then deleting the password (as done here) works, save as HTML, then copy&paste to a new word document (does not copy the password) etc. pp...
follow me on Twitter: http://twitter.com/moeffju
This will work to crack in excel. Maybe word too? Just goes to show how cake these passwords are to crack!
1 ").FormulaR1C1 = Chr(i) & Chr(j) & _
Sub PasswordBreaker()
'Author unknown
Dim i As Integer, j As Integer, k As Integer
Dim l As Integer, m As Integer, n As Integer
Dim i1 As Integer, i2 As Integer, i3 As Integer
Dim i4 As Integer, i5 As Integer, i6 As Integer
On Error Resume Next
For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
If ActiveSheet.ProtectContents = False Then
MsgBox "One usable password is " & Chr(i) & Chr(j) & _
Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
ActiveWorkbook.Sheets(1).Select
Range("a
Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
Exit Sub
End If
Next: Next: Next: Next: Next: Next
Next: Next: Next: Next: Next: Next
End Sub
Comment removed based on user account deletion
KB article 189126, two clicks away from the article referenced in the parent, offers this nugget of wisdom:
The password-protection systems built into Microsoft programs are designed to be unbreakable; there would be no point in including a password-protection system that could be broken.
Well, then, Microsoft, why is there a breakable password system in your product?!
Too late to be known as Bush the First, he's sure to be known as Bush the Worst.
I'm really not sure what all the fuss is about. I don't think Microsoft made any real errors in designing this feature this way. The new DRM stuff they are coming out with is where the real security is and if that were to be broken then this "hack" would be a big deal. This feature is more just a nice tool for office use so that you can send out a form over email and get it back, completed and in the proper format.
They key is stored hashed in the file, no one, not even Microsoft ever touted this as true security, but good enough for the intended use without making it so complex as to make the feature unusable for the average joe office clerk.
> IIRC .ZIP files were stored in plaintext, so you could easily unlock it with viewing it in a hex editor
YDNRC (you do not recall correctly)... zip files use XOR or some other simple encryption measure with the password as the key, it is not stored. The best Zip crackers take hours to crack a zip with a password length over 6 characters.
PKzip has a patent on and is using real encryption on their zip files which offers much greater protection than a zip file.
XOR against a passphrase is weak.
XOR against a repeating secure (irreversible) hash of the password is technically weak but in practice very strong unless the message is dozens of times longer than the hash.
XOR against a successive concatination of secure hashes is strong, fast, and simple. There is no reason to believe 3DES is any stronger. Plus, it's the same algorithm for encrypting and decrypting. Pseudocode:
I can just give people access to the files independent of a something-you-know credential (outside of whatever's necessary for logon).
It's pretty rad.
The only times people have emailed me password locked Word files they've included the password in the email! Anyone with a clue that has sent me information in word format which they didn't want the world to see has compressed it with zip and password locked the archive, simply to save space in transit.
According to Microsoft, the password protection feature on Word is not intended to be secure, but should be regarded as a means to protect documents against accidental modification.
That isn't exactly news. The DRM in Office 2003 is what they've been pushing as the professionally secure method to keep documents from prying eyes. This Word Forms standard password-protection is just that, standard password-protection.
"Sufferin' succotash."
Save the document as RTF. Close the document and re-open the RTF version. Unprotect it - you will not be asked for a password.
Let's get the terms right - this has nothing to do with protection but rather with authentication. Anybody who relies on something like this that's short of RSA would be fooling themselves. And what's the point of Dell signing their quotes - is it so that customers who say "see, you promised me this system for $29.95" can be proven to be lying? Don't they store copies of all quotes they send out?
> IAAPN (I Am A Punctuation Nazi): the headline should read "Microsoft Word Forms' Passwords Cracked" or "Microsoft Word Forms's Passwords Cracked".
./, but true.
Apparently IKEGBTYD (I Know English Grammar Better than You Do): Wrong. Nouns being used in a partitive or atttributive sense are not possessives and do not require apostrophe + s. (You say "C compiler" and "dog food", and not "C's compiler" and "dog's food", right?)
The headline is correct. Hard to believe since this is
Il n'y a pas de Planet B.
...The 'secure' file can easily be edited and the original password re-inserted, removing any trace of the modification. And then again, the hack allows someone to download such a file, edit it, and restore the password...effectively allowing changes to the file to go potentially unnoticed.
And as so....
... just gpg/pgp sign the bloody thing?
Why anyone would choose to use a Word document for the purpose Dell used it is completely beyond me. Are they so brainwashed over there that there was no exploration of the alternatives? Particularly in view of the fact that the app vendor (M$) specifically does not promote the use of that feature for securitys sake.
Really Dell, STFU, your precious relationship with Microsoft does not preclude using your brains when making software selections for sensitive processes like binding quotes...
On the plus side, I'm sure I've got a Dell quote somewhere in the office... Hmmm, laptop for $15 anyone?
"Talk minus action equals nothing" - Joey Shithead, D.O.A.
"Talk minus action equals
It does not prevent the form from being used normally - any user can fill in the form fields. If, as the BugTraq report states, "This feature is also often used to protect documents which do not even have form areas (quotations/offers etc.)" the authors of those documents are incredibly stupid.
Under Tools/Options/Security is the better password protection scheme - you can use the "password to open" or just "password to modify" to allow reading but not changing the file. It's not invinceable, but it's not as easy to crack as the "forms" password.
they send you one of these:
"Dood! You're getting a Dell!"
Clearly the article was a joke. The Credits at the end of it give it away: "Magnus from the Microsoft Security Response Center for his fast responses and for showing a decent sense of humour. :-)"
5. if (ptr > sizeof(input)) return(output[]) else ptr += length;
The submitter didn't say Dell use password protected Word files to send quotes, they said they "a ZDNet UK article says Dell uses password protected Word files to send quotes"
Karma: It's all a bunch of tree-huggin' hippy crap!
MS "Programmes" are just computer games, so why is hacking of them news.
...like many people pointed out, it has been known for almost a week (since january 2nd to be precise).
Source: FOLDOC
A one-way function is simply some function which is not one-to-one. For example, consider the length function L which maps words to integers, e.g. L("bob")=3, L("A")=1.
Think this one through. The algorithms used to sign PGP/GPG messages are one way. The reason being is that it's hard to come up with something else that maps to the same value.
Using your length function example, considering the two e-mails from Alice
"I love Bob"
"I hate Bob"
Would both parse to 1 4 3. Which means Eve could flip Alice's feelings for Bob, without invalidating the signature.
That, my friend, is a crappy 'one-way' function. So crappy, that's it's not really one-way.
The "multiple inputs give the same output" thing just means it's non-linear. And all that that implies.
Maybe the people designing this garbage should take an introductory cryptography class. I think solving the problem of refutability is explained in the first class... Then again, most users are too dumb to understand how to use cryptography so I'm not sure who's dumber.
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.
And that my Dell friends, is why they invented checksums.
- Last document editor's name, initials,
and company
- Computer name last edited on
- Path (incl server
name) of last save (Remember all those hacks that require the
miscreant to know specific file path & names?)
- Previous
editor's names
- Number of revisions and versions
- Template
name and path
- Any hidden text
- Comments
This is why you distill DOC to PDF before passing it around or posting it on the web, so none of the aforementioned information is inadvertently released. Yes, someone can still change it, but that's what digital signatures are for.Side note: PDF Passwords ARE TRIVIAL to break. Don't try to protect your PDFs from printing/copying/etc. with the built-in "security." It takes about 15 seconds with publicly-available software to crack any PDF.
Yeah, right.
Why bite? What two ways is captainsuperboy talking about? Why is microsoft's trusted computing the only available answer when decades of solid math can be used to actually protect documents? Why is WRM the answer, when RSA, ElGamal, SHA signatures have been in place, and have been cryptoanalyzed by scientists?
Please, mod this troll back down.
- You don't know how to maintain a station wagon either!
Open the protected document in Word, then Save,As to Type Word 6.0/95 (or another earlier version that didn't support these passwords). Close Word, re-open the Word 6.0/95 document, and then Save,As the latest Word format.
That gets rid of the password, too.
The only people that I know that use the password protect feature in Word are the sort of people that think locking their doors at night will keep the bad guys out - it ain't so...
I've used Digital Certificates to protect the authenticity of Word documents for some time now, and it's a failsafe method.
Use Openoffice to open the password protected doc file. Save as another doc file. Hey presto! The password protection feature is gone. It worked for my open-standard-unfriendly digital scroll that came with some souped-up digital signature, it should work for any other documents.
Carpe Diem: Seize The Day!
The basic principle of securing documents is logical access controls (e.g. passwords) == poor; encryption == good.
Same applies to your hard disk. If it's not encrypted, I can either change your admin password or just stick the hard drive in one of my machines.
When I am king, you will be first against the wall.
Microsoft is a joke -
can't really say anymore
except switch to Linux/BSD
and be free of there supposedly
great software.
film at 11.