document-upload-protection
document-upload-protection copied to clipboard
POC in order to protect an document upload application feature against "malicious" document submission.
Bumps [itextpdf](https://github.com/itext/itextpdf) from 5.5.6 to 5.5.13.2. Release notes Sourced from itextpdf's releases. iText 5.5.13.2 core security update of bouncy castle dependency iText 5.5.13.1 core security fix for clearer signatures validation...
Found PDFs created by Xero threw a NPE. Needed to handle null EMBEDDEDFILES. PdfDictionary names = root.getAsDict(PdfName.NAMES); PdfArray namesArray = null; if (names != null) { PdfDictionary embeddedFiles = names.getAsDict(PdfName.EMBEDDEDFILES);...