Bypass Form Protection in MS Word

Tagged:  

I recently had the occasion to need to get around the form protection in an MS Word file. Turns out it’s a pretty easy exploit, but the directions I found elsewhere on the internet didn’t quite do the job.

Here’s the trick:

  1. Open the protected document, and save it as an .html file.
  2. Close the .doc file, and open the .html file in a text editor such as notepad or GVIM
  3. In the .html file, find a tag that says something like: "<w:UnprotectPassword>ABCDEF01</w:UnprotectPassword>"
  4. Replace each of the characters in the tag with zeroes so it reads: "<w:UnprotectPassword>00000000</w:UnprotectPassword>"
  5. Open the .html file in Word, and save it as a .doc. Go to Tools > Unprotect Document

That should do it. I’d love to hear any evidence to the contrary.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.