« Return to Thread: PDF signature validation problems

PDF signature validation problems

by Áurea Alcaide :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi all,

 

I have come to a problem about the validation of PDF signatures. The extraction of the signed data from the PDF is not the same with iText than with Adobe.

If I’m not wrong, iText takes the “/ByteRange” associated to a signature to calculate the digest of the data. In some cases, is possible to modify the data of the PDF (for example with form’s fields), without these changes affecting the ByteRange. But the visualization of the document changes, so if there is a signature which covers that form field, the signature should be considered invalid. If the changes in the form field are included at the end of the document, it does not affect the ByteRange, so iText is not able to detect these changes. The problem is that Adobe does. So, Adobe and iText are returning different validation results.

 

In the attachment, I send you 2 documents, for making it more understandable:

 

test1.pdf à PDF document certified and with 2 signatures, each one covering different parts of the form.

test2.pdf à The same PDF but with the form field “Name” modified. iText says all signatures are valid. Adobe recognizes the changes, and invalidates the signature which covers that form field. If you look inside the PDF, you will see that changes are included at the end of the document, so do not affect the ByteRanges of any signature.

 

My question is if has someone else got this problem, and if so, if there is any way to reach it within the actual iText last version? Or  we will have to wait to a future implementation of the feature? If it is an actual bug, will it be reached in the future?

 

Thanks in advance to you all,

 

Áurea

 




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

test2.pdf (361K) Download Attachment
test1.pdf (335K) Download Attachment

 « Return to Thread: PDF signature validation problems