Security Issue

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
flash2070
Posts: 16
Joined: 28 Sep 2010, 19:42

Security Issue

Post by flash2070 »

Hello,
I have an extension which hanles the database communication.
for example:
_sfsClient.sendXtMessage("databasePlugin", "insertData", dataObject...

the command above will execute the database plugin which will insert the data sent to the database.

the problem is:
every begginer hacker can reverse the code of the SWF and execute this command as he wish (and many times as he wish).

so, my question is if SFS supply some kind of Security in that issue.
how to handle this situation?

thanks in advanced :wink:
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

This is the golden rule: Always do the database operations via serverside via prepared statements.

Also use _server.escapeQuotes to prevent database injection.

This assumes you have SFS Pro. If not, you may want to have a look at using .php instead.
Smartfox's forum is my daily newspaper.
Post Reply