Cenzic 232 Patent
Paid Advertising
sla.ckers.org is
ha.ckers sla.cking
Sla.ckers.org
Q and A for any cross site scripting information. Feel free to ask away. 
Go to Topic: PreviousNext
Go to: Forum ListMessage ListNew TopicSearchLog In
If changing all user input "<" to &lt; before rendering in HTML, can I say it's completely safe now?
Posted by: zhangxiao
Date: June 22, 2011 06:48AM

If changing all user input "<" to &lt; before rendering in HTML, can I say it's completely safe now?

Options: ReplyQuote
Re: If changing all user input "<" to &lt; before rendering in HTML, can I say it's completely safe now?
Posted by: Albino
Date: June 22, 2011 10:18AM

Nope, it may be very easy to exploit depending on where you render the input. See http://ha.ckers.org/xss.html

Options: ReplyQuote
Re: If changing all user input "<" to &lt; before rendering in HTML, can I say it's completely safe now?
Posted by: vinazn
Date: January 04, 2012 08:23PM

No. You have to consider that the attacker can be use something like that to inject javascript when some data of a get or a post data is used to set a url.
e.g. <a href="http://sample.com/?var=(RECEIVE DATA)">
If the attacker inject something like that: " onmouseover="alert(1)" bad=,
he can run javascript on your website.

Options: ReplyQuote


Sorry, only registered users may post in this forum.