SQL INJection
#5

Quote:
Originally Posted by Nin9r
Посмотреть сообщение
It must be escaped?

Do you wanna say that i can use %e like

Код HTML:
format(saveQuery, sizeof(saveQuery), "UPDATE playeraccounts SET playerCarKM = '%e' WHERE playerID = '%d'",PlayerData[playerid][pCarKM],PlayerData[playerid][pInternalID]);
	mysql_tquery(handle,saveQuery);
instead %d, %f (float ) or any type?

PS: I searched INPUTTEXT on the entire GM and all the strings are escaped. How can I see where's the problem?
Every string given by a user MUST be escaped before executing a query with it. Either be inputtext from a dialog or params from a command.

No, you cannot use it like that. Strings are for string, integers for integers and so on.

What is the problem in the first place, were you a victim of SQL Injection?
Reply


Messages In This Thread
SQL INJection - by Nin9r - 03.06.2016, 22:58
Re: SQL INJection - by SickAttack - 03.06.2016, 23:04
Re: SQL INJection - by Nin9r - 05.06.2016, 09:53
Re: SQL INJection - by Spmn - 05.06.2016, 10:46
Re: SQL INJection - by Konstantinos - 05.06.2016, 10:54
Re: SQL INJection - by Nin9r - 05.06.2016, 11:10
Re: SQL INJection - by Konstantinos - 05.06.2016, 11:19
Re: SQL INJection - by Nin9r - 05.06.2016, 11:22
Re: SQL INJection - by Noris - 05.06.2016, 15:09
Re: SQL INJection - by Nin9r - 05.06.2016, 15:24

Forum Jump:


Users browsing this thread: 1 Guest(s)