Files
brave-core/ios
Dev 36605e97e0 fix: remove secret key material from log messages (#34265)
* fix: remove secret key material from log messages

CRITICAL: Several VLOG(1) statements were logging plaintext secret
key material that could be captured via adb logcat (Android) or
Console.app (iOS):

- browser/android/brave_sync_worker.cc: Sync recovery phrase (seed
  words) and hex-encoded sync seed logged on parse failure
- ios/browser/api/sync/brave_sync_worker.cc: Same issue on iOS
- components/brave_wallet/browser/filecoin_keyring.cc: Import payload
  containing Filecoin private key logged on JSON parse failure

These log statements would expose the user's master sync secret or
private key material to any process with log access. The fix removes
the secret material from all log messages while preserving the
diagnostic error information.

* fix: also redact plaintext sync code from LOG(ERROR) in SetSyncCode (iOS) and SaveCodeWords (Android)

* fix: apply clang-format to sync worker files
2026-03-02 10:51:59 +00:00
..