PHP: Is there any kind of sanitization I need for using _GET data?
For just regular use in my PHP code, that is. Not like I'm going to pass it to my queries or anything. If you pass them to SQL queries, you get an SQL injection If you use them to form file names, you get an arbitrary file reading vulnerability If you output them as-is to the user as a part of HTML page, you get an XSS vulnerability If you output them to a file, you may get a malformed file if it has some predetermined formatting If you're just comparing the value with a set of predefined values, you're fine. If you're converting it to a number, you're fine as long as any number works for you