News for hackers. Stuff that matters.
Re:When your classmates threaten you with felony charges by iancarroll on Monday August 28, 2023 @02:21PM (#37298395)
This is unfortunately a very common issue with Firebase apps. Since the client is writing directly to the database, usually authorization is forgotten and the client is trusted to only write to their own objects.

A long time ago I was able to get admin access to an electric scooter company by updating my Firebase user to have isAdmin set to true, and then I accidentally deleted the scooter I was renting from Firebase. I am not sure what happened to it after that.

Re:When your classmates threaten you with felony charges by singleshot_ on Monday August 28, 2023 @02:32PM (#37298538)
One interesting thing about the statute of limitations is “the discovery rule.”

For example, say the statute of limitations for 18 USC 1030 is two years. If a person hypothetically stole a scooter by hacking, two years later, they would be in the clear, right?

No. The discovery rule says that if a damaged party, for good reason, does not immediately discover their loss, the statutes of limitations is paused until they do.

Accordingly, if the scooter company read a post today about a hack that happened “a long time ago” and therein discovered their loss, the statute of limitations would begin to tick today and the hacker could be in legal jeopardy for two more years.

Re:When your classmates threaten you with felony charges by henriquez on Monday August 28, 2023 @02:34PM (#37298571)
Does this apply to criminal or just civil?
Re:When your classmates threaten you with felony charges by btilly on Monday August 28, 2023 @03:04PM (#37298948)
Generally it applies to both. But some crimes (eg murder) might not have a statute of limitations.

https://www.law.cornell.edu/wex/statute_of_limitations

Also there are subtle questions around what discovery means here. Usually it is some sort of "could be discovered with reasonable effort". If I had proof of your wrongdoing in a letter sent to me, I am unlikely to get away with saying, "Oh, I didn't read the letter when I got it." If that proof was buried in a computer file with a million pages, I probably can reasonably say, "That was a needle in a haystack, and I didn't even know what to look for." For situations between those extremes, there will be case law that likely varies by state.

This is where a lawyer gets to earn their pay.

Re:When your classmates threaten you with felony charges by singleshot_ on Monday August 28, 2023 @03:31PM (#37299286)
Huge arrow pointing to “varies by state” on all of this.

1030 actually has a specific discovery/statute of limitations in the text of the statute, and so may not be affected by state discovery rule law.

Re:When your classmates threaten you with felony charges by iancarroll on Monday August 28, 2023 @05:11PM (#37300446)
The scooter company was well aware of it as I told them about that + several other issues immediately. :)
Re:When your classmates threaten you with felony charges by singleshot_ on Monday August 28, 2023 @06:20PM (#37301106)
Well that makes me smile. I should have figured there was more to that story!
Re:When your classmates threaten you with felony charges by dudus on Monday August 28, 2023 @02:33PM (#37298566)
It is common. But before you curse at Google here. This is VERY well documented. When you create a database the UI screams at you that it's in dev mode, that security has not been setup etc.... if you keep ignoring the database will eventually close itself down automatically.

So this is entirely on the dev team to blame.

Re:When your classmates threaten you with felony charges by yismail on Monday August 28, 2023 @02:28PM (#37298490)
If I recall correctly, you can set your firebase rules such that a user can only read/write/delete certain collections based on conditions such as if user.email == collection.email.
Re:When your classmates threaten you with felony charges by justrealist on Monday August 28, 2023 @02:32PM (#37298535)
Doing authorization within firestore breaks down instantly outside of toy applications.
Re:When your classmates threaten you with felony charges by jacquesm on Monday August 28, 2023 @02:29PM (#37298501)
I think deleting a scooter is against some law of conservation :)
Re:When your classmates threaten you with felony charges by manicennui on Monday August 28, 2023 @02:55PM (#37298828)
Which is why I hate that people keep claiming that you don't need to know what you are doing nor employ anyone who knows what they are doing to setup infrastructure. You might be able to stand things up without knowing what you are doing, but you probably shouldn't be running it in production that way.