Jump to content
MakeWebGames

Security Question


Recommended Posts

Posted

Will someone that knows alot about security give me like a small modification or something to do, and then inspect it and tell me if i missed something, or if a function could be used better somewhere. Im still learning about security but i want to test my knowledge.

Posted

im learning security at the moment, what ive learnt is (hopefully this is correct)

{$ir['username']} and replace it with ".htmlentities($ir['username'])."

($r['username']} and replace it with ".htmlentities($r['username'])."

money=money+{$r['money']} replace it with money=money+".abs(intval($r['money']))."

______________________________________________________________________________________

Remember, the money=money+ bit could be confusing but if you understand what i mean, thats good :)

______________________________________________________________________________________

WHERE userid={$r['userid']}"); and replace it with WHERE userid= ".abs(intval($r['userid']))."

WHERE userid={$_GET['ID']}"); and replace it with WHERE userid=".abs(intval($_GET['ID'])).""));

WHERE userid={$_POST['QTY']}"); and replace it with WHERE userid=".abs(intval($_POST['QTY'])).""));

remember im learning security at the moment only started learning fully about 1 week ago... so i could be wrong...

Posted

That's just part of the issues Nicholas. This about, what tools the user can access, for example are you sure the user have the right to open this page? And even then, are you sure the user have access to this data?

Let's take an example, I have a read_message.php which uses a id=xxx where xxx is the message_id. If I let the users put whatever number there, they could have access to messages for other people. So you should check in your queries that the user have access to the message he/she's asking.

Other example, you have a admin_panel.php make sure the person is requesting do really have access to the file and it's not simply somebody trying url.

All those are part of securing a game. Without yet talking about XSS (http://en.wikipedia.org/wiki/Cross-site_scripting) or SQL Injection (http://en.wikipedia.org/wiki/SQL_injection)

And funny enough people forget to check those basic things.

Posted

Well, instead of asking for a Script, couldn't you just go through the free modifications section, and look for an un-secured mod, secure it and ask someone to check it? Or get a standard MCCodes Script and secure that, then ask if it is okay? Just a suggestion. :thumbsup:

Posted

I know all about csrf,xss,sql, meta, w/e. And thanks nicholas. already new those, but :). And yes alan great info.

Posted

Yea i believe the meta ones are xss. You know the ones that refresh others, redirect, etc. Basically XSS though.

Guest Drizzle
Posted

yea. it is XSS but sometimes i seperate certain things from others.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...