skip to Main Content

SQL injection in Laravel 10

I have codes see below which is works. $city = City::find(1); $city->location = DB::raw('geomfromtext('point(' . $location . ')')'); $city->save(); Question 1: Is there SQL injection issue in the codes above because I using DB::raw() which sticking the string(variable) in without…

VIEW QUESTION

dealing with eval in PHP

Disclaimer: This is just an example to learn about PHP code injections and not production code used in any way. I am fully aware that this is not good coding practice. I have the following PHP Script: <!DOCTYPE html PUBLIC…

VIEW QUESTION
Back To Top
Search