Created attachment 2921 [details]
dll where AuthenticodeDeformatter failed to read signature timestamp
I am using AuthenticodeDeformatter in one of my projects. It works perfectly in most of the scenarios, but I have couple of valid binaries of which signature timestamp is not recognized by the AuthenticodeDeformatter. I have analyzed the code and figured out that the issue lies in this portion of code:
private bool VerifyCounterSignature (PKCS7.SignerInfo cs, byte signature)
if (cs.Version != 1)
This particular check works for most of the binaries, but I had encountered some binaries in which the Version is 0, yet the Win32 APIs are able to get the TimeStamp correctly.
Attaching one of the binaries.
Thanks for the test case!