Skip to content

Firebase Configuration File - Detect

ID: firebase-config-exposure

Severity: medium

Author: geeknik

Tags: firebase,exposure,config

Firebase configuration file was detected.

id: firebase-config-exposure
info:
name: Firebase Configuration File - Detect
author: geeknik
severity: medium
description: Firebase configuration file was detected.
reference:
- https://github.com/firebase/firebaseui-web/blob/master/demo/public/sample-config.js
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
cvss-score: 5.3
cwe-id: CWE-200
metadata:
max-request: 3
tags: firebase,exposure,config
http:
- method: GET
path:
- "{{BaseURL}}"
- "{{BaseURL}}/public/config.js"
- "{{BaseURL}}/config.js"
matchers-condition: and
matchers:
- type: word
words:
- "apiKey:"
- "authDomain:"
- "databaseURL:"
- "storageBucket:"
condition: and
- type: status
status:
- 200
# digest: 490a004630440220651527209448eaae13c4c60008c7f810091d5c4c0c57c0953d02cb44f1f5807a022036015250dcd8de5abe37d55f0cc4242ed1805d18a8e07a7cc00e78dc13d07256:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/exposures/configs/firebase-config-exposure.yaml"

View on Github