repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
pdf-upload-xxe-and-cors-bypass.mdMarkdown19 lines1.2 KiBsource raw download

title: "PDF Upload: XXE and Same-Origin Policy Bypass" section: "Web Pentesting" sectionSlug: "pentesting-web" sourcePath: "src/pentesting-web/file-upload/pdf-upload-xxe-and-cors-bypass.md" sourceUrl: "https://github.com/HackTricks-wiki/hacktricks/blob/188de82beb54e70956b2952367a0af91d26758b8/src/pentesting-web/file-upload/pdf-upload-xxe-and-cors-bypass.md" sha: "188de82beb54e70956b2952367a0af91d26758b8" isIndex: false modified: true license: "CC-BY-NC-4.0"#

PDF Upload: XXE and Same-Origin Policy Bypass#

PDF files can contain actions, forms, and references to external resources, so an upload feature may expose more than document-rendering risk. The linked research documents historical Adobe Reader issues involving external entities and a same-origin-policy bypass, often described as a CORS bypass. Treat its proof of concept as version-specific: reproduce it only with the affected reader and browser integration, and verify current behavior independently.[1]

References#