Is xFanatical Safe Doc safe?

Low risk

Safe Doc is low risk. Code analysis shows the extension uses a service account to poll Drive changes and call the Admin Directory API for each file owner's organisational unit, cached for 5 hours.…

xFanaticalv1.66.2Extension ID mmhppocgfdombmapajfeafhecobfcjpkChrome Web Store
20Risk
Who publishes it

xFanatical Inc. - no other listings under this identity

Publisher
xFanatical
Declared legal entity
xFanatical Inc.
Registered address
10080 N Wolfe Road, Suite SW3242, Cupertino, CA 95014, US
Registered contact
xFanatical Inc.
AI-assisted analysis.

Safe Doc findings

Reads Google Drive file owners and organisation units for the admin

MediumunwantedCWE-200Static analysis

Code analysis shows the extension uses a service account to poll Drive changes and call the Admin Directory API for each file owner's organisational unit, cached for 5 hours.

What actually happens

You did this

A Drive sharing policy is configured by the administrator.

The extension did this

The extension reads Drive changes and looks up each file owner's organisational unit.

The code that does this

Service account token request with impersonation

Readable version
background.js
// Builds a signed JWT with sub = the impersonated user's email// Exchanges it at oauth2.googleapis.com/token for an access token

The code that does this

Org unit lookup and 5 hour cache

Readable version
background.js
// GET admin/directory/v1/users/{email} with the Bearer token// Reads orgUnitPath from the response and caches it for 5 hours

Data read from Google

  • File owner email
    alex.smith@example.edu

    The address of the person who owns a changed Drive file.

  • Organisational unit path
    /Students/Year 9

    The owner's department folder in the Workspace directory.

Google endpoints contacted

    • www.googleapis.com

    Drive changes feed and Admin Directory user lookups using a service account Bearer token.

    • oauth2.googleapis.com

    Token exchange for the service account JWT.

Observation

Static analysis finding. This behaviour was identified by reading the shipped extension code and has not yet been reproduced in a live run. The trigger conditions and the exact data sent are read from the code, not from an observed capture.

Shared Bearer token is embedded in the extension package

LowunwantedCWE-522Dynamic sandbox

xFanatical Safe Doc embeds a static Bearer credential in its background script for license API requests.

What actually happens

You did this

A license-registration action causes the extension to contact its license service.

The code path runs after a non-empty license key is supplied and a signed-in Google profile is available.

The extension did this

The extension authenticates the request with a Bearer credential packaged inside the extension.

The credential is embedded in background.js rather than generated per installation.

Credential and request fields in the license API call

  • Shared API credential
    Bearer static extension token, 128 characters (redacted)

    This credential can authenticate the license request as the extension rather than as a specific person.

  • License API endpoint
    https://denali.xfanatical.com/api/v1/mtbaldy/license-certificates

    This is the server endpoint that receives requests authenticated with the shared credential.

  • Authentication version
    X-Auth-Version: v1

    This labels the API authentication scheme used by the request.

Captured request

POSThttps://denali.xfanatical.com/api/v1/mtbaldy/license-certificates

Stored dynamic-analysis evidence did not persist an outbound request body for this endpoint; the Authorization header shape is from the shipped source code.

Headers
Content-Type
application/json
Authorization
Bearer [redacted static extension token]
X-Auth-Version
v1

The code that does this

The packaged Authorization header in the license request

Readable version
{  key: "registerLicenseKey",  value: (a = M(b().mark((function e(n) {    var r, o, M, i, p, a, s, O;    return b().wrap((function(e) {      for (;;) switch (e.prev = e.next) {        case 0:          if (!(0, c.isEmpty)(n)) {            e.next = 4;            break          }          throw new Error("invalid license key");        case 4:          return e.prev = 4, e.next = 7, Te.getState("userEmail");        case 7:          if (r = e.sent) {            e.next = 10;            break          }          throw new G("user not signed in, cannot register license key");        case 10:          return o = r.split("@")[1], M = {            licenseKey: n,            userDomain: o          }, e.next = 15, we("".concat("https://denali.xfanatical.com", "/api/v1/mtbaldy/license-certificates"), {            method: "POST",            mode: "cors",            headers: {              Authorization: "Bearer ".concat("[redacted static extension token]"),              "Content-Type": "application/json",              "X-Auth-Version": "v1"            },            body: JSON.stringify(M),            retries: 10          });        case 15:          return i = e.sent, p = i.data.certificate, e.next = 20, ee.storageRemove("sync", L);        case 20:          if (!this._isLicenseCertificateValid(p, o)) {            e.next = 25;            break          }          return e.next = 23, this.saveLicenseCertificate(p);        case 23:          e.next = 26;          break;        case 25:          throw new Error("invalid license certificate ".concat(p, ", userDomain=").concat(o, ", ") + "localTime=".concat(Math.floor(new Date / 1e3)));        case 26:          e.next = 43;          break;        case 28:          if (e.prev = 28, e.t0 = e.catch(4), "error= ".concat((0, c.has)(e.t0, "response.data") ? JSON.stringify(e.t0.response.data) : e.t0), !e.t0.response && e.t0.request, !((a = (0, c.get)(e.t0, "response.status")) >= 400 && a < 500)) {            e.next = 42;            break          }          return e.next = 37, ee.storageGet("sync", L);        case 37:          return s = e.sent, O = (0, c.get)(s, [L, "attempts"], 0), (0, c.isNumber)(O) || (O = 0), e.next = 42, ee.storageSet("sync", t({}, L, {            nextAttempt: z()().add(1, "d").unix(),            attempts: O + 1          }));        case 42:          throw e.t0;        case 43:        case "end":          return e.stop()      }    }), e, this, [      [4, 28]    ])  }))), function(e) {    return a.apply(this, arguments)  })}

Check if you're affected

Checks a local copy of background.js for the embedded Bearer credential without printing the credential value.

Requires
  • Node.js 18+
safe-doc-bearer-detector.js · js
const fs = require('fs');const crypto = require('crypto');const file = process.argv[2];if (!file) {  console.error('Usage: node safe-doc-bearer-detector.js /path/to/background.js');  process.exit(2);}const source = fs.readFileSync(file, 'utf8');const endpoint = '/api/v1/mtbaldy/license-certificates';const tokenMatch = source.match(/Authorization:\s*\"Bearer \"\.concat\(\"([A-Za-z0-9]{80,})\"\)/) || source.match(/Authorization:\s*"Bearer "\.concat\("([A-Za-z0-9]{80,})"\)/);console.log(JSON.stringify({  endpointPresent: source.includes(endpoint),  staticBearerTokenPresent: Boolean(tokenMatch),  tokenLength: tokenMatch ? tokenMatch[1].length : 0,  tokenSha256: tokenMatch ? crypto.createHash('sha256').update(tokenMatch[1]).digest('hex') : null}, null, 2));
How to run it
  1. 1node safe-doc-bearer-detector.js /path/to/background.js

Host authenticated with the packaged credential

    • denali.xfanatical.com

    xFanatical licensing API that receives the Bearer-authenticated license registration request.

Error reports send a snapshot of your user details to Google Cloud

LowunwantedCWE-200Static analysis

Code analysis shows error reports carry an app state snapshot with a user email and license key field, with email and UUID patterns masked first, sent to Google Cloud Error Reporting.

What actually happens

You did this

An error is caught anywhere in the extension.

The extension did this

The error text is sent with a serialized snapshot of the extension's app state.

The code that does this

AppState.toString() and the report call that appends it

Readable version
background.js
// Snapshot fields: userEmail, licenseKey, licenseCertificate, registrationAttempts, loading, loaded// The JSON is passed through filterAll() before it is appended to the error message.

The code that does this

The masking applied by filterAll()

Readable version
background.js
// Replaces email-shaped strings with [FilteredEmail]// Replaces UUID-shaped strings with [FilteredLicenseKey]// Values that do not match these patterns, such as a license certificate or a non-UUID key, are not masked.

Fields in the snapshot

  • Account email
    [FilteredEmail]

    Your email is included but replaced by a placeholder when it matches the email pattern.

  • License key
    [FilteredLicenseKey]

    The product license key; masked only if it has the standard UUID shape.

  • License certificate
    licenseCertificate (string value)

    The stored license certificate string is included with no pattern masking.

  • Registration attempts
    2

    How many times license registration was tried.

Where the report goes

    • clouderrorreporting.googleapis.com

    Google Cloud Error Reporting; receives error text plus the app state string under project 'centralhub'.

The code that does this

Reporting is on unless an admin policy opts out

Readable version
background.js
// Reporting is disabled only when the managed policy OptOutAnonymousErrorReporting is true.

Observation

Static analysis finding. This behaviour was identified by reading the shipped extension code and has not yet been reproduced in a live run. The trigger conditions and the exact data sent are read from the code, not from an observed capture.

+1 more finding not shown

Safe Doc version history

  1. 1.57.0

    Mar 4, 2026

  2. +24 more

  3. 1.65.2

    Nov 20, 2026

  4. 1.66.1

    Nov 27, 2026

  5. 1.66.2

    Nov 27, 2026

Where Safe Doc sends data

  • google.com1 call

    From a script it injects into websites · only this extension

  • www.google.com1 call

    From a script it injects into websites · 110 other extensions

Chrome Web Store listing

Versions
1.66.2 latest of 28 seen since March 4, 2026
Store rating
1.4 from 43 ratings
Last updated
November 27, 2026
Size
768 KiB
Privacy policy
xfanatical.com
Updated November 20, 2026