POC for PDF JS' CVE-2024-4367 vuln# CVE-2024-4367 POC for PDF.js
POC for PDF.js' CVE-2024-4367 vuln - The pdf-modify.py script can be used to modify your PDFs and inject payloads.
## Usage
1. Ensure `CVE-2024-4367-POC-base-placeholder.pdf` is in the working directory.
2. Uncomment/modify the `payload_new` variable in `pdf-modify.py`.
3. Run it, `python pdf-modify.py`. No args needed.
4. You'll see a new PDF in the local dir with timestamped suffix.
## Related references
- https://codeanlabs.com/blog/research/cve-2024-4367-arbitrary-js-execution-in-pdf-js/
- https://github.com/DidierStevens/DidierStevensSuite/blob/master/pdf-parser.py
- https://swisskyrepo.github.io/InternalAllTheThings/cheatsheets/shell-reverse-cheatsheet/#nodejs
## License
Licensed under the [MIT License](LICENSE).
[4.0K] /data/pocs/1bf0dfaa567617e9a83e337a97ac0a8b2de2a573
├── [ 20K] CVE-2024-4367-POC-base-placeholder.pdf
├── [1.0K] LICENSE
├── [3.3K] pdf-modify.py
└── [ 767] README.md
0 directories, 4 files