Hello I am developing a website and doing some penetration testing. It is built in CakePHP who have made me aware that:
CakePHP already protects you against SQL Injection if you use CakePHP's ORM methods (such as find() and save()) and proper array notation (ie. array('field' => $value)) instead of raw SQL.
However I am unsure what data to enter into my input form fields in order to test for SQL injection prevention.
I have the following tables names with simple VARCHAR attributes -
categories: name
clients: address, county, country, name
items: name
statuses: name
Would this SQL statement inputted into a form and submitted be the correct way of testing an SQL injection attempt?
DROP TABLE "categories";
After submitting this on the form the value that entered the database was:
DROP TABLE "categories";
Can I assume this means the website has been protected from an attempted SQL injection as it did not drop the categories table in my database?