Geeks With Blogs

News Locations of visitors to this page

Ariel Popovsky's Blog Aventuras y desventuras con .net March 2011 Entries
Finding an alert in the middle of your javascript
I was debugging a script injection issue the other day using some sample code with an alert in it. The alert was popping out meaning the code got executed leaving open the possibility for a hacker to put there some nasty malicious code. I knew my alert was being executed but didn’t know how. So I tried something that worked perfectly for this problem, replaced the native alert function with my own one. All I had to do in Chrome was open the javascript console and type: alert = function(msg){ console.log(msg); ......

Posted On Friday, March 11, 2011 6:40 PM

Copyright © Ariel Popovsky | Powered by: