Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html><head><title>YUI DOM XSS example</title></head>
- <body>
- <script src="http://yui.yahooapis.com/3.9.1/build/yui/yui-min.js"></script>
- Hello!<BR>The data inside of foo div is: <div id='foo'>default foo</div>
- <script>
- YUI().use("console", "node", function(Y) {
- var foo = Y.one("#foo");
- foo.setHTML(document.location.hash);
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement