Advertisement
z00

Yuinode domxss test tpjs

z00
Jul 14th, 2014
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <!doctype html>
  2. <html><head><title>YUI DOM XSS example</title></head>
  3. <body>
  4. <script src="http://yui.yahooapis.com/3.9.1/build/yui/yui-min.js"></script>
  5. Hello!<BR>The data inside of foo div is: <div id='foo'>default foo</div>
  6. <script>
  7. YUI().use("console", "node", function(Y) {
  8. var foo = Y.one("#foo");
  9. foo.setHTML(document.location.hash);
  10. });
  11. </script>
  12. </body>
  13. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement