Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-28-2001, 11:34 AM   #1
rls
Registered User
 
Join Date: Mar 2001
Location: Edinburgh, Scotland
Posts: 3
Default

hi all!

we have a flash game which reads it's 'high scores table' from a database via a php file. Problem is people have managed to reverse-engineer the swf and pull the path to the php from it and use it to pass bogus scores (via a browser we think) to the php file which obviously updates the database incorrectly. how do we check that the scores are being posted via the flash file as opposed to any other way to authenticate them?

I have taken the obvious measures to protect the swf file like not allowing debugging of the file and disabling importing, but I realise there are still ways round this.

We thought about using the php to check the HTTP_REFERRER however as we have tested it IE does not seem to send this info as one of its environment variables.

any thoughts?
rls is offline   Reply With Quote
Old 03-30-2001, 09:32 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

Hrmm the problem is the fact that it can be reverse engineered. I know that sounds dumb but I was thinking:
"Why not construct the URL tot he high-scores file dynamically, using text strings and things, that way it wouldn't be obvious what the URL was", but the problem is, using something like ActionScript Viewer, the culprits could just gather up the strings and combine them to figure out the URL themselves...

How about using cookies?

Cheers

Jesse
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 04-12-2001, 11:51 PM   #3
kaptainkory
Registered User
 
Join Date: Jan 2001
Posts: 3
Send a message via Yahoo to kaptainkory
Default

There is a technique that can be used with ScoreKeeper that will cause HTTP_REFERRER to get set. The only *possible* problem is that the scores output will be in a pop-up window.

http://www.k2w.f2s.com/software/

kory
kaptainkory is offline   Reply With Quote
Old 05-08-2001, 03:19 PM   #4
chiefmonkey
Registered User
 
Join Date: Jan 2001
Location: Scotland
Posts: 52
Default

HTTP_REFFERER is notoriously unreliable,
I think your best bet may be to use a session and quite simply check for the session cookie before the score is entered into the db, the only problem being cookies can be faked.

HTH
george
chiefmonkey
chiefmonkey is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extended ASCII characters in mySQL database shawn_t Flash Remoting 4 03-15-2005 03:51 AM
asp, is querying the database at the start enough? antonyx ActionScript 2.0 1 02-20-2005 04:43 AM
Loading database stuff through PHP/Flash mprzybylski Server-Side Scripting 10 02-13-2005 08:06 PM
Database editing application - stuck halfway Dubya Server-Side Scripting 2 07-23-2003 05:55 PM
Multimedia Database - Need Direction!! harlem_39 General Chat 2 01-18-2003 12:46 AM


All times are GMT. The time now is 01:50 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.