Historia de una recompensa por $.$$$, Metodología aplicada y byp
A PDF-export microservice accepted unauthenticated POST requests whose HTML body was rendered server-side, allowing an attacker to make the server fetch internal resources and read local files. The author also found a WAF bypass using malformed markup so the payload reached the renderer.
Published on medium.com
Hola, mi nombre es Danny Ramírez. Soy investigador de seguridad Ecuatoriano; en mi tiempo libre me dedico a las recompensas por errores, mi plataforma favorita es HackerOne.
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 PDF-generation microservice rendered attacker-supplied HTML without authentication and without restricting which local or internal resources the renderer could load.
Impact
The author could read local files on the PDF-rendering host and, if session cookies had still been valid, could potentially have reused them, though the report notes the service was not cloud-hosted so no metadata access was possible.
What the attacker needed
Access to the vendor trial SaaS; PDF export feature reachable; no session cookie needed for the microservice
How it was found
- Register on the vendor's trial SaaS environment and test its features.
- Notice that API requests to the PDF export microservice do not require the session cookie.
- Send a POST whose html parameter contains markup that loads a local file.
- Observe the exported PDF showing the fetched content, confirming SSRF.
- Repeat against the bug bounty target, where a WAF blocks HTML tags.
- Adjust the markup until the WAF lets it through and the PDF renders.
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.
When a website turns your input into a PDF, the server itself fetches whatever the input points at. If that input is not checked, you can make the server read things only it can reach, like files on its own disk. This is called SSRF, meaning the server is tricked into making requests on your behalf.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.