Skip to content

tech-detect: Firebase Hosting reported on a Shopify storefront (false positive) #1448

Closed

Description

@deniskern

Summary

Firebase Hosting is reported for a Shopify storefront that isn't served by Firebase.

Repro

squirrel audit https://www.alpensattel.de --http --passive -m 1 --refresh --no-publish -f json -o out.json
jq '.technologies.items[] | select(.id=="firebase-hosting")' out.json

v0.0.150 returns {"id":"firebase-hosting","name":"Firebase Hosting","category":"hosting","confidence":"high"}.

Evidence it is a false positive

  • Response headers: server: cloudflare, Shopify server-timing (theme, pageType, servedBy), x-dc: gcp-asia-southeast1,gcp-us-west1,gcp-us-west1. No Firebase header.
  • No firebase string in the homepage HTML or in any of the 19 <script src> files it loads.

Our guess: a Google Cloud signal (for example x-dc: gcp-*) is being matched as Firebase Hosting. We haven't confirmed this.

Expected

No Firebase Hosting on a Shopify storefront. If the GCP signal is the trigger, it identifies Shopify's infrastructure, not the site's host.

Acceptance Criteria

  • The signal that makes firebase-hosting match on a Shopify storefront is identified and named on this issue (the reporter guesses the x-dc: gcp-* header)
  • A Shopify storefront with server: cloudflare, Shopify server-timing and x-dc: gcp-* does not report Firebase Hosting
  • A real Firebase Hosting site (Firebase-specific response header or *.web.app / *.firebaseapp.com host) is still detected
  • A fixture test covers the Shopify headers (negative) and a Firebase Hosting response (positive)
  • The corpus check (squirrelscan-53 label) shows no loss of true Firebase Hosting detections

Activity

  1. added
    bug
    rules
    size: S
    on Oct 31, 2026
  2. added theissue type on Oct 31, 2026
  3. nc9 commented on Oct 31, 2026

    @nc9
    Contributor

    Thanks for the clear repro and the evidence, this is very useful. We added acceptance criteria to the issue and queued it; we will confirm the cause of the signal here before changing the detection.

    nik

  4. nc9 commented on Oct 31, 2026

    @nc9
    Contributor

    Confirmed cause: it is not the x-dc header. The firebase-hosting signature had a url-path detector for \.web\.app|\.firebaseapp\.com, and url-path matches the page URL and then the whole page HTML. The storefront's HTML loads a third-party Shopify app's script from a *.web.app host (an app hosted on Firebase Hosting), so the pattern matched there. That says where the app is hosted, not the store. No Firebase header is involved, and the x-dc: gcp-* and server-timing headers were never matched by any Firebase signature.

    The fix adds a detector that matches the page's own host name only, moves firebase-hosting to it, and keeps Firebase Hosting's own Vary: x-fh-requested-host signal. A fix PR follows. The same pattern shape exists for a few other hosting signatures; filed as a separate issue.

    nik

  5. nc9 commented on Oct 31, 2026

    @nc9
    Contributor

    Verified against main after v0.0.152 (firebase-hosting reads the page's own host). Met and ticked: criteria 1 to 4 (the cause is named, a Shopify storefront with gcp x-dc headers or a third-party *.web.app script is no longer reported, real Firebase Hosting by header or host still is, fixtures for both). Open: criterion 5, the corpus check for no loss of true detections has no result recorded in this issue. Leaving this open until it is posted here.

    nik

  6. nc9 commented on Oct 31, 2026

    @nc9
    Contributor

    Corpus evidence, recorded for the last criterion (a 622-site sample, v0.0.152 against v0.0.151): firebase-hosting goes from 74 detections to 72. Both losses were false positives (a third-party script on a *.web.app host, not the site's own host), no true detection was lost. The 23-bundle comparison and 19 real pages show 0 diffs, and all 17 tech-detect test files pass.

    With that, every acceptance criterion is met. Shipped in v0.0.152 (b4e83ec0 50b79736), verified against main. Release: https://github.com/squirrelscan/squirrelscan/releases/tag/v0.0.152

    nik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: S

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions