Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clarkio/pdfjs-vuln-demo
This project is intended to serve as a proof of concept to demonstrate exploiting the vulnerability in the PDF.js (pdfjs-dist) library reported in CVE-2024-4367
https://github.com/clarkio/pdfjs-vuln-demo
application-security appsec astro astrojs pdf pdfjs pdfjs-dist react security svelte vue vuejs web
Last synced: 12 days ago
JSON representation
This project is intended to serve as a proof of concept to demonstrate exploiting the vulnerability in the PDF.js (pdfjs-dist) library reported in CVE-2024-4367
- Host: GitHub
- URL: https://github.com/clarkio/pdfjs-vuln-demo
- Owner: clarkio
- Created: 2024-05-22T23:18:20.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T04:16:11.000Z (about 2 months ago)
- Last Synced: 2024-09-14T16:43:18.308Z (about 2 months ago)
- Topics: application-security, appsec, astro, astrojs, pdf, pdfjs, pdfjs-dist, react, security, svelte, vue, vuejs, web
- Language: Astro
- Homepage:
- Size: 998 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PDF.js Vulnerability Demo Project
This project is intended to serve as a proof of concept to demonstrate exploiting the vulnerability in the PDF.js (pdfjs-dist) library reported in [CVE-2024-4367](https://nvd.nist.gov/vuln/detail/CVE-2024-4367)## Getting Things Running
- Fork and clone from this repository
- `npm install`
- `npm run dev`## Testing Things Out
- First go to [http://localhost:4321/](http://localhost:4321/)
- Choose whichever frontend framework component you want to test out (react, vue, svelte) by clicking on its corresponding card
- Make sure the sample PDF (not exploiting the vulnerability) loads up
- You can find and analyze all the sample PDFs in the `/public` directory. Each one attempts to demonstrate different ways to exploit the vulnerability.
- When ready to test out a PDF that does exploit the vulnerability change the PDF file that the component is pointing to with the one you want to tryFor Example:
```javascript
// src/components/ReactPdfViewer.jsx
```