Skip to content
StrikeOps

Insecure Local Data Storage in a Mobile App

MediumTypical severity Mobile applicationsCWE-922

01Description

The application stored sensitive data, such as session tokens, personal information or cached responses, in plaintext files, shared preferences, databases or logs on the device.

02Impact

Data stored insecurely can be read from lost or compromised devices, from device backups, or by other apps on rooted or jailbroken devices.

03Severity

Typically

Medium

Typically Medium. Medium by default. High where authentication tokens, credentials or sensitive personal data are stored unencrypted.

04How to verify

  1. 1Use the app with test data, then inspect its sandbox, databases, preferences, caches and logs on a test device.
  2. 2Check device backups for app data.
  3. 3Record sensitive data found and where.

Testing note: only test systems you are authorized to test, within the agreed scope and rules of engagement. Verification steps are written for professional testers and avoid destructive techniques.

05Remediation

  1. 1Store secrets in the iOS Keychain or Android Keystore-backed storage.
  2. 2Avoid storing sensitive data locally where possible and exclude it from backups.
  3. 3Remove sensitive data from logs.

06References

Draft findings like this from your own evidence

Book a demo
Book a demo