PDF / Document Injection
Detects user input embedded in PDF or document generation without sanitization, enabling XSS through PDF rendering and data exfiltration.
от zakirkun★ 40 звёзд на GitHub
Установить PDF / Document Injection в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
PDF / Document Injection
Overview
PDF generators that include user-controlled HTML or data can be exploited:
- HTML to PDF injection: Injecting
<script>or<link>tags that read local files via PDF rendering engine (wkhtmltopdf, Puppeteer) - JavaScript in PDF: PDF actions that execute JavaScript in Adobe Reader
- 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
- HTML-encode all user input before HTML-to-PDF conversion
- Use
--no-local-file-accessflag with wkhtmltopdf - Use sandboxed PDF generation with no filesystem access
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл PDF / Document Injection?
Detects user input embedded in PDF or document generation without sanitization, enabling XSS through PDF rendering and data exfiltration.
Как установить скилл PDF / Document Injection?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл PDF / Document Injection запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…