lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Wed, 23 Oct 2013 19:19:35 +0100 (BST)
From: Hurgel Bumpf <l0rd_lunatic@...oo.com>
To: "full-disclosure@...ts.grok.org.uk" <full-disclosure@...ts.grok.org.uk>
Subject: Microsoft Word Protect Document Password Feature

Hi List,

i had to unlock a password protected word template today. It was protected against modification (not the access protection)

So i thought i might share these simple steps to unlock such documents.


A feature of word documents is, that they are some kind of zip files with a different extenstion. 

When you unzip these files you get a lot of folders/files likeĀ 

_rels
customXml
docProps
word <-- the main files

in the folder "word" you will find a settings.xml, when you open it look for the tag <w:documentProtection


It will look similar to this:

<w:documentProtection w:edit="forms" w:enforcement="1" w:cryptProviderType="rsaFull" w:cryptAlgorithmClass="hash" w:cryptAlgorithmType="typeAny" w:cryptAlgorithmSid="4" w:cryptSpinCount="100000" w:hash="dawdadaw4324aw2dascas=" w:salt="sdf+sdfdsf/WA=="/>

delete that tag. Replace the settings.xml in the zip. save and rename to .dotx/.doc/.whatever again. 


That's it, the document is unlocked. 

I mean, they are even using salted hashes and all you need to do is delete the line. Like its 1998. Impressive. 

Have a nice day,

Conan the Bavarian

_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ