Welcome Guest, Not a member yet? Register   Sign In
how to protect your input hidden html
#1

[eluser]tusukgigi[/eluser]
how do you protect the input type hidden html?
please explain here, please....
thanks gan..
#2

[eluser]Krzemo[/eluser]
protect from what?
#3

[eluser]tusukgigi[/eluser]
like this
views :
<form>
...
<input type hidden name="post_id" value="$lists['id']" />
...
</form>

(CSRF ATTACK)

I've heard using flash session data
how to create it
thanks gan
#4

[eluser]Corbee[/eluser]
You'll need to validate it during the $_POST process and check if it is the input you expected or not.

Try Regex or XSS filtering
#5

[eluser]Corbee[/eluser]
Are you building a forum? I think that attack is more likely used for forums
#6

[eluser]tusukgigi[/eluser]
what if the user saves the page the form on the local hard drive,
then the user change the input type hidden html.
with the assumption that the form does not use the captcha image.
more often we hear the name of CSRF attacks
#7

[eluser]Corbee[/eluser]
Correct me if I'm wrong, but I think it is dependent on XSS, so if you do an XSS filtering, you'll most likely be alright.

Check this http://ellislab.com/codeigniter/user-gui...input.html for more info about XSS
#8

[eluser]bl00dshooter[/eluser]
Post_id...Tell me watcha doin', and we can probably find a better way then using hiddens.
#9

[eluser]Corbee[/eluser]
Yes, session will also prevent XSS,

http://ellislab.com/codeigniter/user-gui...sions.html
#10

[eluser]tusukgigi[/eluser]
for example I have this page
nick updates:
<form action"http://www.example.com?action=vuln" method="post">
USERNAME: <input type="text" name="username" value="$lists['username'] "/>
<input type="hidden" name="post_id" value="$lists['id'] />
<input type="submit" name="submit" value="submit" />
</ Form>

how to check that this form will not be saved by the user and the user changes the value of this hidden

thanks gan




Theme © iAndrew 2016 - Forum software by © MyBB