We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In functions.php, the params are not quoted/escaped. This is a severe issue, vulnerable to most basic SQL injection attacks.
functions.php
For a demo, try a POST req with $bill_id = "10\"); DROP TABLE purchase_list;--", which, er, deletes the table. :)
POST
$bill_id = "10\"); DROP TABLE purchase_list;--"
Pointers:
PDO looks intimidating at first, I used to drop a mixin for making it slightly less awkward. https://github.com/prashnts/TwoDotSeven/blob/96dba39439cb6cef601a46e89f8a3bca125bedd3/TwoDotSeven/database.php
The text was updated successfully, but these errors were encountered:
it does not accept multiple queries, as in i cannot give anything after ;
Sorry, something went wrong.
No branches or pull requests
In
functions.php
, the params are not quoted/escaped. This is a severe issue, vulnerable to most basic SQL injection attacks.For a demo, try a
POST
req with$bill_id = "10\"); DROP TABLE purchase_list;--"
, which, er, deletes the table. :)Pointers:
PDO looks intimidating at first, I used to drop a mixin for making it slightly less awkward. https://github.com/prashnts/TwoDotSeven/blob/96dba39439cb6cef601a46e89f8a3bca125bedd3/TwoDotSeven/database.php
The text was updated successfully, but these errors were encountered: