Ajax security problem

Posted by coolboycsaba on Stack Overflow See other posts from Stack Overflow or by coolboycsaba
Published on 2010-04-25T10:23:16Z Indexed on 2010/04/25 10:33 UTC
Read the original article Hit count: 276

Filed under:
|
|

I want to create a browser based game and I have a huge problem, the game can be easily hacked. The problem is at a page where you can go to "work", I store in a file the work ending date and the amount of money what you will receive after finishing the work. There are 4 type of works. The problem is that I use ajax to send to a php file the necessary information. The URL looks like this x.php?date=....&pay=.... The javascript part of the page calculates the date and the pay but if you simply enter in your URL bar x.php?date=anynumber&pay=99999 you will receive that 99999 dollars. What should I do ? And sorry for my bad english :)

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about security