News for hackers. Stuff that matters.
Re:Firebase 404 by AsymetricCom on Friday August 09, 2013 @09:45PM (#6189729)
The leaderboard is already hacked.
Re:Firebase 404 by jaredsohn on Friday August 09, 2013 @09:53PM (#6189755)
It wouldn't surprise me if it was since it is so easy to do, but I don't think it has been (yet).

I think the leaderboard might have been generated during development when I was playing 'single player' spawning asteroids and spaceships and shooting them. (Hold down 'o' or 'p' a bunch to get some easy targets.) It is much easier to get a high score that way, although I just noticed that you don't get points for that any more.

Since you cannot trust other peoples' scores, I think apps like this should just show you your own high score (which you can note yourself when you die for now).

Edit: (1 hour later) pwned

Re:Firebase 404 by Rhapso on Saturday August 10, 2013 @08:09AM (#6190797)
Yup. You can set your score to a string and it just puts the latest as highest. You can also manually rename yourself. Are all firebase apps this vulnerable?

edit* I left a message in the high score box for anybody looking for something proofy

Re:Firebase 404 by Kiro on Saturday August 10, 2013 @11:18AM (#6191345)
I love Firebase but these kind of security holes make me hesitant to use it for anything serious. Is it even possible to prevent without adding an extra server layer?
Re:Firebase 404 by Rhapso on Saturday August 10, 2013 @11:27AM (#6191371)
well, you are exposing the database at the javascript level. If it is javascript then you can mess with it in your browser via the developer console. So if you are using firebase via javascript your application is fundamentally insecure. You cannot even put serverside sanity checks like "this person should not ask for this value" or "nobody should have a string for a score" because of firebase's limitations.
Re:Firebase 404 by mikelehen on Sunday August 11, 2013 @12:06AM (#6193794)
There was a time when that was true, but these days you can easily do those sorts of things using Firebase security rules: https://www.firebase.com/docs/security/security-rules.html
Re:Firebase 404 by Kiro on Monday August 12, 2013 @09:43AM (#6199113)
I still don't see how setting security rules would prevent cheating. I would love to know how to fix this issue as I'm making a similar MMO game with Firebase.
Re:Firebase 404 by Rhapso on Sunday August 11, 2013 @12:25PM (#6195290)
Aha! My only use of firebase was writing a chat application for fun back at their launch marketing push. This is good to see, and I think I might go play with it more.
Re:Firebase 404 by abrkn on Sunday August 11, 2013 @05:33AM (#6194484)
You have obviously never tried Firebase.
Re:Firebase 404 by Kiro on Monday August 12, 2013 @09:57AM (#6199175)
So how would you prevent people from just setting whatever score they want in this game?