Pdf injection

From zakirkun/ice-tea · View interactive version

Pdf injection is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects user input embedded in PDF or document generation without sanitization, enabling XSS through PDF rendering and data exfiltration.

How to use this skill

Skill file

PDF / Document Injection

Overview

PDF generators that include user-controlled HTML or data can be exploited:

  1. HTML to PDF injection: Injecting <script> or <link> tags that read local files via PDF rendering engine (wkhtmltopdf, Puppeteer)
  2. JavaScript in PDF: PDF actions that execute JavaScript in Adobe Reader
  3. Formula injection in generated Excel: See CSV Injection

wkhtmltopdf and similar tools can read local files: <img src="file:///etc/passwd"> in the input HTML.

Remediation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.