Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-2801

SecurityHandler does not tolerate plain-text COSString

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.8.10, 2.0.0
    • Component/s: PDModel
    • Labels:
      None
    • Flags:
      Patch

      Description

      SecurityHandler does not handle the possibility, that a COSString is already plain text if the document is encrypted. This patch makes it tolerant when decrypting COSString, so that if it fails it just logs that and keeps the original content. The code works with all files I have.

        Attachments

        1. AES_fullencryption_corrupted.pdf
          75 kB
          Michele Balistreri
        2. SecurityHandler-tolerant-decrypt.diff
          2 kB
          Michele Balistreri
        3. wrong TU object.png
          15 kB
          Michele Balistreri

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              briksoftware Michele Balistreri
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: