Assessing Custom Claims Security in Firebase Authentication JWT Tokens
Posted: Mon Oct 28, 2024 12:54 pm
Determine whether custom claims in JSON Web Tokens (JWT) from Firebase Authentication can be modified (falsified) during the execution of onCall functions in Firebase.
**Conditions:**
1. Firebase Authentication is used for user authentication.
2. Firebase JWT tokens include additional custom data (claims) that define user permissions or roles.
3. It is necessary to understand whether there is a risk of falsification or modification of these custom claims by external users when invoking onCall functions.
**Criteria for Execution:**
1. Establish how Firebase protects custom claims in JWT tokens.
2. Evaluate the security of using custom claims in onCall functions.
3. Describe any potential vulnerabilities or confirm the security of the implementation.
**Conditions:**
1. Firebase Authentication is used for user authentication.
2. Firebase JWT tokens include additional custom data (claims) that define user permissions or roles.
3. It is necessary to understand whether there is a risk of falsification or modification of these custom claims by external users when invoking onCall functions.
**Criteria for Execution:**
1. Establish how Firebase protects custom claims in JWT tokens.
2. Evaluate the security of using custom claims in onCall functions.
3. Describe any potential vulnerabilities or confirm the security of the implementation.