I am testing my website for SQL injection issues and come across a couple that i cannot understand.
In basics, I am building a user blogging system.
I am using the SQL inject me firefox plugin and here are some errors I received:
"Error string found: 'Integrity constraint violation'"
"Server Status Code: 302 Moved Temporarily" - I think that is just because i redirect a user on error for a certain form
Overall i had no fails and passed 42,000 tests. However some of my database items are being effected.
Lets say I am echoing out the 'posts' from the database:
I have all the data, and then a hidden form which is used to edit the data. If the user is logged in then a button is shown where they can click and this form is shown.
Even if the user is not logged in, the SQL inject can modify posts.
In my processing page for updating posts i check for POST, and i also run a check again the post's username in the database and also the session username of a logged in (blank if not logged in) user. Yet this still allows changes to be made.
How can this be? And is displaying a form a "display:none" good enough?