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.
-
Archives
- September 2011
- April 2011
- June 2010
- May 2010
- March 2010
- February 2010
- January 2010
- December 2009
- May 2009
- February 2009
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- March 2007
- February 2007
- January 2007
- December 2006
-
Meta
@tato
wah bener ya, gw kira cuma isu doang
nop :]
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
)