jamjar919/foodshare

XSS is like, rampant dude

Closed this issue · 4 comments

All database inputs should be ran through at least striptags(), currently they are not.

Looking at that it seems to implement far more functionality than we need. Will roll own

Even better htmlspecialchars($var, ENT_QUOTES) does what we need

commit fixes issues in Food.class.php, User.class.php, UserTools.class.php. If you are doing database inserts or updates somewhere else please wrap them with htmlspecialchars($var, ENT_QUOTES) before inserting. ( @Zigorski @James271 )