Fix DSS-3946 - #194
Conversation
|
Originally i had written an implementation recursively checking the signature field, but decided to backtrack because behavior between PdfBox and OpenPDF diferred. There were some documents used on unit tests for the One example of such a file was the one used by Furthermore, I also had to change the public API of |
|
Hi Enzo, Thank you for the Pull Request! I did some modifications that you may find in #195. Please verify whether it fixes the issue. Please note that the PR includes other commits from the develop branch we made in the time being. Please ignore those commits. The relevant commit for this PR is 168effc . Best regards, |
|
Hm, found something in the ISO 32000-2:
Perhaps evaluating against all entries is indeed too much. Probably will try to use a "blacklist" of properties to be evaluated only, but not all of them. You can see the last commit with the changes. |
relevant issue: DSS-3946
This PR modifies the SignatureDictionary check to make it ensures the entries
/Rectand/APweren't modified after signature creation and creates two unit tests demonstrating that the attacks mentioned on the issue don't work anymore.