code_junkie

HTML/Javascript app that runs on the filesystem, security issue

Nov 11th, 2011
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. Access to restricted URI denied" code: "1012
  2.  
  3. $.get(productUrl, function (data)
  4. {
  5. alert (data);
  6. }
  7. );
  8.  
  9. python -c “import SimpleHTTPServer;SimpleHTTPServer.test()”
  10.  
  11. <script>
  12. function callback(str)
  13. {
  14. alert(str);
  15. }
  16. function makeRequest(param)
  17. {
  18. var s = document.createElement('script');
  19. s.src = 'http://serveranywhere/script.bla?' + params;
  20. document.getElementsByTagName[0].appendChild(s);
  21. }
  22. </script>
  23.  
  24. callback('<xml><that><does><something></something></does></that></xml>');
Add Comment
Please, Sign In to add comment