You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
you pass all the POST input in raw in your sql query. That means :
1- I can easily do an SQL Injection in your code
2- According to 1 I can get all the creditcard number & related informations of your user.
What you can easily do to correct this is: using prepare() execute() if you using PDO, or, create a little function
Then you should check if the payment information don't exist before writing them in db, also that means you can add x times the same credit card in database at each user payment.
The text was updated successfully, but these errors were encountered:
It seems the payments informations are not secured when writted in database:
you pass all the POST input in raw in your sql query. That means :
1- I can easily do an SQL Injection in your code
2- According to 1 I can get all the creditcard number & related informations of your user.
What you can easily do to correct this is: using prepare() execute() if you using PDO, or, create a little function
then:
Then you should check if the payment information don't exist before writing them in db, also that means you can add x times the same credit card in database at each user payment.
The text was updated successfully, but these errors were encountered: