Support Forums
Digital Signatures Flaw? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Computer Support Topics (https://www.supportforums.net/forumdisplay.php?fid=4)
+---- Forum: Microsoft Support (https://www.supportforums.net/forumdisplay.php?fid=5)
+----- Forum: Windows 7 (https://www.supportforums.net/forumdisplay.php?fid=14)
+----- Thread: Digital Signatures Flaw? (/showthread.php?tid=26108)



Digital Signatures Flaw? - AceInfinity - 04-29-2012

Through a slightly methodical process i've noticed that the Digital Signatures might not be as reliable as they were intended to be. Scary part is, this flaw exists still in Windows 8 as well from what i've tested.

The worst part is, this could be avoided with a very simple patch of using as well, a file hash. But I was able to successfully modify a Digital Signature for the mseinstall.exe file directly from Microsoft WITHOUT invalidating it...!!...

For evidence, I added some simple text to show you the modification:
[Image: dTFSN.png]

Note: This could just as well be the bytes of a hidden file within the executable unaware to the person trusting in the Digital Signature.

[Image: oacZd.png]

[Image: z5Yon.png]

Uh oh... Unsure

Through some very basic processes as well, this can be done with any file with ease. All that I needed to do was to append some garbage bytes to the end of the file at EOF, making sure that these additional bytes were of a multiple of FileAlignment specified in the Optional Header (FileAlignment property for this Microsoft Security Essentials was 200 bytes in this case), increase the size of the certificate within the Data Directories, increased by the size of the total bytes I first added at EOF, and also increase the size of the certificate as inside the certificate in itself. Should be the first 4 bytes.

And update the checksum in Optional Header once everything is said and done; only really necessary if this digitally signed executable is a boot program.

Lastly, not ONLY is the Digital Signature STILL valid... But the program still also works. And this can be done with as large as data as you want.

It would be possible to also modify the other sections of bytes in the file as long as the signature was based off the MD5 algorithm and they are kept the same.

http://msdn.microsoft.com/en-us/library/aa190113(v=office.10).aspx

*Updated this post with downloadable test files from the images: http://www.mediafire.com/?engk4c78jokopet