News for hackers. Stuff that matters.
Re:I “found” the database of a college app (2018) by hyperthreading on Sunday June 09, 2019 @01:59AM (#20137424)
Is there any way to hide keys from the extractions? I tried it before and ended up to find that users can do that if they really want to.
Re:I “found” the database of a college app (2018) by yoginth on Sunday June 09, 2019 @02:07AM (#20137455)
I think we can't hide keys up to my knowledge!

But make sure you just switched firebase to production mode.

In my case, the firebase was in development mode and the data is available public!

https://yoginth.com/college-hack#mitigations

Re:I “found” the database of a college app (2018) by evolveyourmind on Sunday June 09, 2019 @02:38AM (#20137573)
It’s not about keys or modes, it’s about the rules they didn’t set up. Everyone uses firebase like that. Those “keys” are required to allow you to connect to the correct firebase app, nothing more. You don’t get any direct special permission to do things on the database or storage. Here some more info about the rules: https://firebase.google.com/docs/database/security
Re:I “found” the database of a college app (2018) by diericx on Sunday June 09, 2019 @02:27AM (#20137530)
Firebase keys give you access to the database, which can be public. You just have to setup rules for the database, usually so users have to be authenticated to view anything and can only read their own private info.

edit: just realized you may have just been asking about hiding keys in general. Sorry if this wasn't what you were asking about!

Re:I “found” the database of a college app (2018) by hyperthreading on Sunday June 09, 2019 @03:41AM (#20137800)
> Don’t put your API keys, Tokens and Secrets visible easily

I was just confused at this part because permission & rules are the solution as far as I know. Thanks for the reply though :) I'm prettry sure now that exposing keys are no problem.

Re:I “found” the database of a college app (2018) by whymauri on Sunday June 09, 2019 @02:08AM (#20137459)
I'm not a mobile dev, but aren't there utilities like KeyStore for this?

https://developer.android.com/training/articles/keystore.htm...

Re:I “found” the database of a college app (2018) by bootloop on Sunday June 09, 2019 @02:10AM (#20137467)
Well, the trick is that using a KeyStore ensures that the key doesn't leak into the application (but is only used for cryptographic operations in a trusted environment).

However, you would need the plain key to authenticate against the database so using this wouldn't work.

Re:I “found” the database of a college app (2018) by whymauri on Sunday June 09, 2019 @02:13AM (#20137481)
Gotcha, I see the problem now.
Re:I “found” the database of a college app (2018) by noja on Sunday June 09, 2019 @02:53AM (#20137640)
Read-only access through intermediate proxy that you control (but not to all data like here) + login required for more access (via intermediate proxy or direct).
Re:I “found” the database of a college app (2018) by petjuh on Sunday June 09, 2019 @02:04AM (#20137443)
No, but I think the idea is to create a web API that connects to the database instead of having the phone connect directly to it.
Re:I “found” the database of a college app (2018) by bootloop on Sunday June 09, 2019 @02:06AM (#20137448)
No, you can only obfuscate it but the correct way to do this is to limit the access scope of the access key.
Re:I “found” the database of a college app (2018) by q3k on Sunday June 09, 2019 @04:51AM (#20138043)
No, you can just obfuscate it and make it painful to extract to potential reverse engineers.