How weak are your form-handling(s)??

Most of you probably know how to deal with user input in server-side scripting. When you build a site which needs user feedback (e.g Shoutbox, Guestbox and Polling) just be aware with malicious users, sometime they bored and hunted random victims. Recently, i found some guestbook and shoutbox run out from filtering user input  (i.e HTML entities). Oggix has fixed its free shoutbox when i discovered the user input isn’t perform any special chars translations. So user can inputs </html>,<!– or javascript injection to screw up your page. The link i gave at dajjal’s shoubox is also a guestbook vulner to this one. Simple way to avoid such things is to validate all variables coming from HTML form. In PHP, you can use htmlspecialchars() to convert special characters to HTML entities. Oh, yeah some people use client-side  scripting (i.e Javascript) to validate user input, but it’s breakable. You don’t need to combine client-side and server-side, just use regex in your server-side scripting.

About gedex

Hi, my name is Akeda Bagus, some friends on the net called me gedex. More about Akeda Bagus
This entry was posted in just FYI, security. Bookmark the permalink.

3 Responses to How weak are your form-handling(s)??

  1. falcunix says:

    @tato

    wah bener ya, gw kira cuma isu doang

  2. tato says:

    Damn you grin, can you called me with another name. btw i’ve got a news for u read this http://www.endonesia.com/mod.php?mod=publisher&op=viewarticle&cid=3&artid=812

    hope you enjoy the news :) )

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">