[Analytics, Crashlytics, Installations, Performance, Remote Config] Static analysis flags insecure random, SHA-1/MD5 hashing and HTTP goo.gl URLs — request for confirmation

Open
#17,018 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
ios, objective-c
Domain
mobile, security

Research direction

The report names symbols across Analytics, Crashlytics, Installations, Performance, and Remote Config, but no source files or tests. Start by locating the listed symbols in the Firebase 12.13.0 source and tracing their use to confirm whether the scanner findings are accurate. Done means the team confirms the findings and intended behavior, or identifies a specific planned change and release.

Written by the indexing model from the issue text.

Description

api: analytics
Description

A mobile application security scanner (Guardsquare AppSweep) reports four medium-severity
findings in Firebase SDK code. We believe these are non-security uses and would like the
team to confirm so we can close them with our security team. All symbols are from
Firebase 12.13.0.

1. "The app uses insecure methods to generate random numbers" (11 Firebase methods)

SDK Method
Analytics -[APMMonitoringSampledData insertOrUpdateSampledDataWithKey:encodedContext:]
Analytics -[APMMeasurement(Sampling) isEventBundledAfterRoll:]
Analytics -[APMPersistedConfig midnightOffset]
Performance -[FPRRemoteConfigFlags initWithRemoteConfig:]
Performance -[FPRGDTLogSampler init]
Performance -[FPRSessionManager isGaugeCollectionEnabledForSessionId:]
Remote Config -[RCNConfigSettings updateExponentialBackoffTime]
Remote Config -[RCNConfigSettings updateRealtimeExponentialBackoffTime]
Remote Config -[RCNConfigRealtime scheduleFetch:targetVersion:]
Crashlytics -[FIRCLSFABNetworkClient randomDoubleWithMin:max:]
Installations +[FIRInstallationsBackoffEventData randomMilliseconds]

Our reading: these are used for sampling, retry backoff/jitter and scheduling, not for keys,
tokens, nonces or other security-sensitive values.

2. "Insecure hashing algorithm sha1 used" (3 Firebase methods)

  • -[FIRInstallationsIIDStore sha1WithData:] (Installations)
  • APMParseData block (Analytics)
  • FIRCLSHashBytes (Crashlytics)

3. "Insecure hashing algorithm md5 used"

  • -[NSData(MD5) apm_MD5Data] (Analytics)

Our reading for 2 and 3: SHA-1 and MD5 are used for identifiers, deduplication or integrity
checks of non-secret data, not for passwords, signatures or authentication.

4. "Similar HTTP URLs to goo.gl were found"

  • http://goo.gl/9vSsPb
  • http://goo.gl/RfcP7r

Our reading: these are help links inside Analytics console/debug log messages, and the SDK
never opens a network connection to them.

Could the team confirm:

  1. None of the flagged random number uses generate security-sensitive values.
  2. None of the flagged SHA-1/MD5 uses protect passwords, signatures, authentication or
    other security-sensitive data.
  3. The goo.gl URLs are only text in log messages and are never requested by the SDK.
  4. This is working as intended and no change is planned (or, if a change is planned, which
    release).

Firebase products: Analytics, Crashlytics, Installations, Performance, Remote Config

Reproducing the issue

Scan any iOS app that includes Firebase 12.13.0 (Analytics, Crashlytics, Performance, Remote
Config) with AppSweep, or inspect the binaries with nm / strings.

Firebase SDK Version

12.13.0

Xcode Version

27.1

Installation Method

CocoaPods

Firebase Product(s)

Analytics

Targeted Platforms

iOS

Relevant Log Output

If using Swift Package Manager, the project's Package.resolved
Expand Package.resolved snippet

Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock
Expand Podfile.lock snippet

Replace this line with the contents of your Podfile.lock!

Dominant language
C++
Stars
7k
Forks
1.8k
Avg merge
1d 1h
Merged PRs (30d)
70

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-ios-sdk

All issues in firebase/firebase-ios-sdk

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.