firebase / firebase/quickstart-js

Firestore exemple with a potential vulnerability

Open
#224 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.4k
Forks
3.7k
Avg merge
2d 13h
Merged PRs (30d)
6

Description

https://github.com/firebase/quickstart-js/blob/519575991b4737eb856b9c202c3b2e387584c912/firestore/scripts/FriendlyEats.Data.js#L86-L89

I know this is a simple demo app, but I think this should be stated that this kind of pattern should not be used in a real world app, since the client could easily hijack the number and average of ratings.
I think this is where cloud functions should be used to proceed with the calculation.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.