I wonder if someone knows why Adobe Acrobat Reader allows one to add like 3 extra bytes to the end of a signed PDF without saying that the signature is invalid and also if there is a way to prevent this?
Signature is still valid after adding some extra bytes to the end of the PDF file
78 Views Asked by krillov At
1
There are 1 best solutions below
Related Questions in PDF
- How to use custom font during html to pdf conversion?
- How to get content of BLOCK types LAYOUT_TITLE, LAYOUT_SECTION_HEADER and LAYOUT_xx in Textract
- PDF form checkbox/radio button ignores content stream
- Suggest python library for rendering html to pdf files
- Problems with the order in which PDF files are created
- Centering a map element on a generated PDF
- download all pdf files from website doesn't support wildcard
- How to enter external pdf into quarto book while keeping page layout+numbering
- How do I create a website that combines user input and standard text and converts it into a pdf?
- Excel VBA error 1004 on PDF export - not a path issue
- downloading pdf using requests not working
- Creating pdf on Firestore with Pdfplum: Template path "no such object"
- Export password protected PDF from QGIS
- XPS convert PDF with Ghostscript
- Download PDF in ASP.NET MVC application
Related Questions in DIGITAL-SIGNATURE
- Locking PDF after filling out text field
- Why do some cryptographic signature npm packages (like superdilithium) convert text to an array of integers before signing?
- Itext pdf deferred signing with invalid signature
- RSASSA-PSS signature verification fails dues to padding with mbedtls but succeeds in Python
- Android - sign XML file
- How cosign finds a record in Rekor when verifying?
- Cosign giving error signing ECR images. Keyless signing with github repo certificate using git_ref
- Why does digitally signing with Adobe Reader cause Windows Cryptographic errors
- EC Keypair Issue: Can't verify a signature with the correct public key
- Flutter Android application is not installing after release signing
- Digitially sign a PDF using java
- Can't install after recompiled android code
- xml signing with google-cloud-kms in java/kotlin
- How do I sign an Excel C# COM Addin?
- Unable to create Pkcs11SignatureToken with JDK21
Related Questions in ACROBAT
- Can I make this kind of radio button?
- Acrobat 2020 editing the Header or Footer in a PDF Document
- How can I print to adobe acrobat printer (pdf) in Delphi silently
- Pdfium library : Get the comments on page
- Acrobat reader: "remove from recent" not shown for a signed document
- Blue box appearing instead of digital signature and signature panel contains unsigned signatures
- Acrobat Run profiles with variables(JavaScript)
- Javascript issues with this.importTextData()
- PowerShell script - Sign pdf with Certificate
- PAdES-B-LT Signature Validation Error with Entrust and Apryse (PDFTron) - "No Certificate Chain Found"
- React pdf downloading corrupted pdfs
- Minimal PDF file according to PDF-2.0 spec results in corrupted document structure
- copy password protected pdf to excel via vba
- Trying to open a manually created PDF in CorelDRAW but failing
- Create a signature field within adobe with javascript and have it execute once signed without the properties dialog box
Related Questions in PKCS#7
- PartialChain error in X509Chain when building certificate chain?
- Why are there no extensions in the CertificateExtensions property of CertificateRequest?
- Compute sign using secure token hit Unknown error -1073741275 using sha256 algo
- Go TLS x509: no DEK-Info header in block even if using pkcs8
- What is the accepted way to transfer public-private keypairs over intranet?
- Problem with cURL in PKCS11 with USB TOKEN
- C# Decrypt AES CBC pkcs1 padding, there is System.Security.Cryptography.PaddingMode.PKCS7 but does not have PKCS1
- How can i get public key in DER format from base64 encoded public key?
- Decryption error while Decrypt the symmetric key
- Meaning of algorithm properties in a certificate
- Azure Function Could not load file or assembly 'System.Security.Cryptography.Pkcs'
- convert pkcs1 signature to pkcs7 signature using nodejs
- OpenSSL.crypto.Error when trying to load certificate from Azure Key Vault
- problem in importing private key to the token
- How to check pkcs format of a private key using golang code?
Related Questions in PADES
- Unable to create Pkcs11SignatureToken with JDK21
- PAdES-B-LT Signature Validation Error with Entrust and Apryse (PDFTron) - "No Certificate Chain Found"
- OpenSSL - ContentInfo having Content set in addition to ContentType without specifying this
- Itext8 .net pdf signature with a trusted third party
- IssuerSerial Matching in Pades Signature with IText 8.0.3
- iText7 breaks PAdES signature when filling in fields
- Low level workflow to achieve PAdES LTV digital signatures in PDFs
- PDF signature invalid after timestamp to TSA
- Signature is still valid after adding some extra bytes to the end of the PDF file
- Sign embedding to PDF, Document has been altered or corrupted since it was signed problem
- "Unknown PdfException" by iText7 when TimeStampToken is not present in the embedded Pkcs7 UnsignedAttributes section
- Invalid signature after adding DSS dictionary to signed PDF
- Adding OCSPs and Certs to DSS dictionary of signed PDF in node.js to make it LTV enabled
- Generating PAdES-LT signature(CMSSignedData) using bouncy castle without DSS
- Signing PDF with DSS using PAdES-LT level
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?

First of all, the file with your manipulation is not a valid pdf anymore, according to the PDF specification the last line of a PDF must contain "%%EOF" and nothing else. Thus, any strict validator must reject your file.
Unfortunately Adobe for many years has declared that they accept files as pdfs in which the final "%%EOF" only occurs somewhere in the final kilobyte instead of at the actual end. Thus, Adobe Acrobat (and many other pdf viewers following its lead) will accept your file in spite of its error.
This of course means that they have to deal with such extra bytes somehow during signature validation. As according to spec those files are invalid, they had to come up with their own criteria here, the spec is not applicable.
You found out that
Thus, apparently Adobe decided that up to 4 additional characters cannot be used to manipulate a pdf while more characters potentially can. Beware, though, this is a mere internal Adobe decision, nothing universal.