Excel security flaw

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Fredrik Wahlgren (fredrik.p.wahlgren_at_mailbox.swipnet.se)
Date: 02/15/05


Date: Tue, 15 Feb 2005 15:03:41 +0100

Snipped from Bruce Schneier's monthly CRYPTO-GRAM

"Microsoft RC4 Flaw

One of the most important rules of stream ciphers is to never use the
same keystream to encrypt two different documents. If someone does, you
can break the encryption by XORing the two ciphertext streams together.
The keystream drops out, and you end up with plaintext XORed with
plaintext -- and you can easily recover the two plaintexts using letter
frequency analysis and other basic techniques.

It's an amateur crypto mistake. The easy way to prevent this attack is
to use a unique initialization vector (IV) in addition to the key
whenever you encrypt a document.

Microsoft uses the RC4 stream cipher in both Word and Excel. And they
make this mistake. According to a paper by Hongjun Wu: "In this
report, we point out a serious security flaw in Microsoft Word and
Excel. The stream cipher RC4 [9] with key length up to 128 bits is used
in Microsoft Word and Excel to protect the documents. But when an
encrypted document gets modified and saved, the initialization vector
remains the same and thus the same keystream generated from RC4 is
applied to encrypt the different versions of that document. The
consequence is disastrous since a lot of information of the document
could be recovered easily."

This isn't new. Microsoft made the same mistake in 1999 with RC4 in
WinNT Syskey. Five years later, Microsoft has the same flaw in other
products.

The report (PDF):
<http://eprint.iacr.org/2005/007.pdf>"

The pdf file is interesting. Any comments?

/Fredrik



Relevant Pages

  • Access97 Encryption Information
    ... encryption is used by MS Access 97? ... RC4, Microsoft Base Cryptographic Provider ... Cryptographic Provider • RC4, Microsoft DH SChannel ...
    (microsoft.public.access.security)
  • Re: Encrypted files do they work for backups?
    ... Microsoft CSS Online Newsgroup Support ... >If I use the administrator account, and I encrypt it EFS on a External ... >> Field.To decrypt the FEK, you must have the corresponding EFS ...
    (microsoft.public.windows.server.sbs)
  • Re: Encrypted files do they work for backups?
    ... If the drive is formatted by FAT, all the file encrypt information will be ... System (EFS) private key? ... Please refer to the following KB article to check if you enabled recovery ... How to work with EFS in Windows Server 2003, visit the following Microsoft ...
    (microsoft.public.windows.server.sbs)
  • Re: Cracking decrypted file when knowing partial contents
    ... ]> by some backwoodman encrypting his diary, or Microsoft or some other ... ]RC4, Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider ...
    (comp.security.misc)
  • Re: Cracking decrypted file when knowing partial contents
    ... ]> by some backwoodman encrypting his diary, or Microsoft or some other ... ]RC4, Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider ...
    (sci.crypt)