0
votes

I am developing an Android app that makes use of Firebase Storage with Security Rules.

Currently my only Firebase Security Rules are auth != null on both read and write, a 5 MB max file size on write, and a 1 hr period max before users can no longer read the file.

My question is: how safe is this? How hard would it be for a malicious user to upload multiple files repeatedly, so as to kill my storage space?

1
You just posted a similar question here: groups.google.com/forum/#!topic/firebase-talk/hS0_rPgsGPM While the posts are slight different, please indicate when you post it in multiple locations.Frank van Puffelen

1 Answers

2
votes

Yes, with just security rules of auth != null any authenticated user can upload whatever they want to your Cloud Storage bucket.

If file size is a realistic concern for your use-case, you'll want to have a stricter user-check than auth != null and/or implement a reasonable limit on file size