Testing PSPDFKit License Validity via Client-Side PoC
A PSPDFKit license key was embedded in client-side JavaScript. The author built a standalone page that loaded the SDK with the key and found it initialised without errors, showing the key was valid and not restricted to a domain or environment.
medium.com
Published on medium.com
While analyzing exposed JavaScript configuration values, I came across a PSPDFKit license key embedded in a client-side application.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the PSPDFKit licence key was hardcoded into a public JavaScript bundle without domain or environment restrictions.
Impact
The key could be used outside the original application, creating financial risk from licence abuse and compliance risk, though no user data was exposed.
What the attacker needed
Access to the public JavaScript bundle; a browser to run the test page
The fix
The key should be removed from frontend code, injected server-side where possible, restricted by domain and environment, and rotated.
How it was found
- Find the PSPDFKit licence key in exposed client-side JavaScript configuration.
- Create a minimal standalone HTML page that loads PSPDFKit from the official CDN.
- Initialise PSPDFKit with the exposed key and a demo PDF.
- Observe that the SDK loads and renders the PDF without licence errors.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A licence key is a secret code that proves you paid to use a commercial software library. Here the key was left in the JavaScript that every visitor downloads, so anyone could copy it. The author tested it on a separate page and it still worked, meaning someone else could use the paid product for free.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.