We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0c06cb commit f554f85Copy full SHA for f554f85
javascript/ql/src/semmle/javascript/frameworks/Firebase.qll
@@ -4,9 +4,14 @@ module Firebase {
4
5
/** Gets a reference to the firebase API object. */
6
private DataFlow::SourceNode firebase(DataFlow::TypeTracker t) {
7
- result = DataFlow::moduleImport("firebase/app") and t.start()
8
- or
9
- result = DataFlow::globalVarRef("firebase") and t.start()
+ t.start() and
+ (
+ result = DataFlow::moduleImport("firebase/app")
10
+ or
11
+ result = DataFlow::moduleImport("firebase-admin")
12
13
+ result = DataFlow::globalVarRef("firebase")
14
+ )
15
or
16
exists (DataFlow::TypeTracker t2 |
17
result = firebase(t2).track(t2, t)
0 commit comments