简体   繁体   English

可以通过对我的应用程序进行反向工程来篡改Firebase项目中的数据吗?

[英]Can the data in my Firebase project be tampered with by reverse engineering my app?

I have an app using Firebase as backend. 我有一个使用Firebase作为后端的应用程序。 Can someone reverse engineer my app to get hold of the code and modify it to access and tamper my database? 有人可以对我的应用程序进行反向工程以获取代码并对其进行修改以访问和篡改我的数据库吗? If so, how can I secure my data against such attacks? 如果是这样,如何保护我的数据免受此类攻击?

Also, is there any other ways that my database can be compromised? 另外,是否还有其他方法可以破坏我的数据库?

What are the best practices to protect my data? 有什么最佳实践来保护我的数据?

To secure your data, you need to use Firebase Database rules: 为了保护您的数据,您需要使用Firebase数据库规则:

Firebase Database Rules are declarative configuration for your database. Firebase数据库规则是数据库的声明性配置。 This means that the rules are defined separately from the product logic. 这意味着规则是与产品逻辑分开定义的。 This has a number of advantages: clients aren't responsible for enforcing security, buggy implementations will not compromise your data, and perhaps most importantly, there is no need for an intermediate referee, such as a server, to protect data from the world. 这具有许多优点:客户端不负责强制执行安全性,错误的实现不会损害您的数据,而且也许最重要的是,不需要中间裁判(例如服务器)来保护数据免受外界攻击。

Example: 例:

{
 "rules": {
    "users": {
      "$user_id": {
         // grants write access to the owner of this user account
         // whose uid must exactly match the key ($user_id)
      ".write": "$user_id === auth.uid"
     }
   }
  }
}

more info here: 更多信息在这里:

Secure Your Data 保护您的数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何防止我的代码被逆向工程? - How can I prevent my code from reverse engineering? 我如何在我的 flutter 应用程序中使用第二个 firebase 项目? - How can i user second firebase project in my flutter app? 如何设置ProGuard规则,使我的核心更难以进行逆向工程 - How to setup ProGuard rules to make my core harder for reverse engineering 我可以安全删除我的新Firebase项目而不会丢失我的Android应用程序吗? - Can I safely delete my new Firebase project without losing my Android app? 对应用程序进行反向工程时,构建类型资源是否可见? - can Build Types resources be visible while reverse engineering the app? 我的Node JS应用程序可以通过Firebase访问Android应用程序的数据吗? - Can my Node JS app access data of my Android app with Firebase? 如何将我的应用程序从 firebase 获取的数据设置到我的 bottomSheetView? (科特林) - How can I set the fetched data of my app from firebase to my bottomSheetView? (Kotlin) APK逆向工程Firebase信息读取问题? - APK Reverse engineering Firebase information reading problem? 如何将firebase in-app-messaging-display api的源代码导入到我的android项目中? - How can I import firebase in-app-messaging-display api's source code into my android project? 无法将Firebase集成到我的Android应用中 - Can't integrate Firebase in my Android app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM