Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with handling modified PDFs #104

Open
Rloota opened this issue Feb 28, 2022 · 0 comments
Open

Issues with handling modified PDFs #104

Rloota opened this issue Feb 28, 2022 · 0 comments

Comments

@Rloota
Copy link

Rloota commented Feb 28, 2022

Hi,

Peepdf seems to have issues with handling some pdfs that have been modified to have somewhat invalid structures, but are still readable with common pdf readers. For example as in attached file test_example1.pdf, if object MediaBox has invalid values peepdf only outputs an error "Error: An error has occurred while parsing an indirect object!!".

Would it be possible to develope peepdf to handle more robust inputs? My thinking is, if I wanted to obfuscate harmful pdfs from being analyzed with peepdf, I could just slightly modify the file so that it is still readable with common pdf readers but invalid for peepdf.

Attached couple examples with embedded test javascript code.

Thanks for creating a great tool!
test_example1.pdf
test_example2.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant