Michael Jay Lissner
  • Home
  • About Site
  • Contact
  • Projects & Papers
  • Tags
  • Archives

Bypass Form Protection in MS Word

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.

I love getting feedback and comments. Make my day by making a comment.

Comments
comments powered by Disqus

  • « The Vision
  • Remap Caps Lock as Backspace in Windows and Linux »

Published

Apr 18, 2008

Category

Privacy & Security

Tags

  • hacking 3
  • microsoft 6
  • msword 1

Contact

This is Reader-Editable

Edit this post on Github

Get Weekly Updates

  • Unless mentioned otherwise, all material on this site is licensed under a Creative Commons copyright or the GNU Affero GPL. Privacy Policy.
  • Powered by Pelican. Theme: Elegant by Talha Mansoor