Welcome Guest, Not a member yet? Register   Sign In
xss attack
#1

when writing " onmouseover=prompt(986271) bad=" in a form text element and the form does not validate,
you get a prompt.

How can I prevent this?

see:
[Image: b2j5jdA.png]

[Image: 556ryBJ.png]
Reply
#2

Output the value of the form element either like this:

<input type="text" name="email" value="<?php echo html_escape($email); ?>" />

Or like this

<input type="text" name="email" value="<?php echo set_value('email'); ?>" />

Either method will escape your data for output to the screen.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB