Hello,
I'm having a friendly debate with someone I adopted some code from. Well, I noticed that he was using the $_GET variable directly in his mysql queries. So, I told him I thought that was a security vulnerability. He says its not because the user connecting to the database has select only privileges.
So my question is, is giving a user select only privileges safe enough to not have to do any data validation or scrubbing to protect from mysql injections?
I'm having a friendly debate with someone I adopted some code from. Well, I noticed that he was using the $_GET variable directly in his mysql queries. So, I told him I thought that was a security vulnerability. He says its not because the user connecting to the database has select only privileges.
So my question is, is giving a user select only privileges safe enough to not have to do any data validation or scrubbing to protect from mysql injections?