[Analytics, Crashlytics, Installations, Performance, Remote Config] Static analysis flags insecure random, SHA-1/MD5 hashing and HTTP goo.gl URLs — request for confirmation
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
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
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)APMParseDatablock (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/9vSsPbhttp://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:
- None of the flagged random number uses generate security-sensitive values.
- None of the flagged SHA-1/MD5 uses protect passwords, signatures, authentication or
other security-sensitive data. - The goo.gl URLs are only text in log messages and are never requested by the SDK.
- 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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from firebase/firebase-ios-sdk
-
api: analytics
Difficulty 4/5 3-5 days Newbie friendliness 35/100
firebase/firebase-ios-sdk#17075 ·
Maintainers usually reply within 1 day
-
api: firestore
Difficulty 4/5 3-5 days Newbie friendliness 43/100
firebase/firebase-ios-sdk#17073 ·
Maintainers usually reply within 1 day
-
RTDB: `.info` listen `onComplete` runs off the repo queue, so `infoSyncTree` is mutated from two threads (crash in `FSyncTree applyOperationHelper`)Possibly taken @paulb777 claimed this 3 days ago. Open
firebase/firebase-ios-sdk#17069 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Firestore watch stream keeps an expired App Check token until the next Auth refresh (no-op App Check change listener in FirestoreClient)Possibly taken @dconeybe claimed this 5 days ago. Openapi: firestore
firebase/firebase-ios-sdk#17056 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
api: crashlytics
Difficulty 4/5 3-5 days Newbie friendliness 35/100
firebase/firebase-ios-sdk#17046 ·
Maintainers usually reply within 1 day
All issues in firebase/firebase-ios-sdk
Similar issues
-
feat
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Issue-Docs Needs-Triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
microsoft/winget-cli#6692 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stratum-mining/sv2-tp#167 ·
Maintainers usually reply within 1 day
-
better error message bug low priority semantics strings
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day