javascript-injection

Lib to protect SQL/javascript injection for java/jsp

Anyone know a good lib where i can run the strings before they are inserted, that can strip out sql/javascript code? To be run in jsp pages. Idealy the lib would be: Free Lightweight Easy to use Thanks in advance to the SO community who will happily reply :) ...

Preventing JavaScript Injections

What's the best way to prevent javascript injections in a VB.NET Web Application? Is there some way of disabling javascript on the pageload event? Recently, part of the security plan for our vb.net product was to simply disable buttons on the page that weren't available to the specific user. However, I informed the guy who thought of ...

Questions about Javascript injection

Hi I been reading on asp.net mvc learning site about JavaScript injection and man it is an eye opener. I never even realized/thought about someone using JavaScript to do some weird ass injection attacks. It however left me with some unanswered questions. First When do you use html.encode? Like do you use it only when you are going t...

handle javascript injection in asp.net mvc

How can we handle the javascript injection in asp.net mvc (C#) application? I can use Html.Encode in my View. But the problem is i have html also to show in the page like a blog post. I need to remove the script entered in the input elements of the application? How can i do that in a common place? ...

How do I protect my website from javascript injection attacks when using rich text editors?

Hi all I am using the markitup editor to get the value for one of my fields and storing it a sql server 2008 db. Now I guess the problem is people having script tags and javascript in the editor and injecting malicious scripts and I have my validate input turned false. So can anyone suggest me a way to write a custom validation method th...

Preventing JavaScript Injections in a PHP Web Application

What are the measures needed to prevent or to stop JavaScript injections from happening in a PHP Web application so that sensitive information is not given out (best-practices in PHP, HTML/XHTML and JavaScript)? ...