The app works. Customers are ordering. Reviews are fine. Then somebody runs a security scan, and the report comes back with five findings.
Here’s the uncomfortable bit: nobody on the team made a mistake. Every one of these is a default, a leftover from testing, or a line copied from a sample. None of them would survive a code review, because nobody ever wrote them on purpose.
What are the five findings?
| # | Finding | Severity | What an attacker needs |
|---|---|---|---|
| 1 | Secret in the app package | High | A copy of your app |
| 2 | Session token in plain storage | High | The phone, rooted, or a backup |
| 3 | Endpoint with no auth | Critical | curl and a URL |
| 4 | TLS certificate check disabled | High | The same coffee-shop wifi |
| 5 | Permissions the app never uses | Medium | A compromise of the app first |
1. A secret in the app package
An API key in strings.xml, Info.plist, a .env bundled into assets, or a constant in your code. An .apk or .ipa is a zip file; anything inside is public.
Fix: the app holds a short-lived user token, your API holds the keys, and Key Vault holds them at rest. The full walkthrough is the first post in this series.
2. The session token in plain storage
SharedPreferences and UserDefaults are plain files. On a rooted or jailbroken phone — or straight out of a device backup — they’re readable.
Fix: Android Keystore or EncryptedSharedPreferences, and the iOS Keychain. In .NET MAUI, use SecureStorage, not Preferences. They’re one word apart and completely different.
3. An endpoint with no auth
Usually /admin, a /health route that happily returns config, /debug, or an internal route someone added to test and never locked down.
Fix: make authorization the default and opt out explicitly, not the other way round:
builder.Services.AddAuthorizationBuilder()
.SetFallbackPolicy(new AuthorizationPolicyBuilder()
.RequireAuthenticatedUser().Build());
Now a route you forget about fails closed instead of open.
4. TLS certificate checking disabled
Someone switched it off to test against a local server with a self-signed cert, and it shipped. Every request is now readable by anyone on the same network.
Fix: remove the override. Wrap any dev-only handler in #if DEBUG so it physically can’t end up in a release build.
5. Permissions the app never uses
Contacts, location, camera, storage — copied in from a tutorial. They lower install rates, fail store review more often, and widen what an attacker gets if the app is ever compromised.
Fix: delete every permission, then add back only the ones that break.
Which one should you fix first?
Number 3, and it isn’t close. Findings 1, 2 and 4 need somebody to have your app, your phone or your network. An endpoint with no auth needs nothing — it’s reachable from anywhere on earth right now, and bots are already scanning for it (see the post on automated attacks).
After that, I’d go by how little the attacker needs:

How to check your own app today
Key takeaways
- The five common findings are defaults or testing leftovers, which is exactly why they reach production.
- An unauthenticated endpoint is the top priority because exploiting it needs no access to the device or network.
SharedPreferencesandUserDefaultsaren’t secure storage — use Keystore/Keychain, orSecureStoragein .NET MAUI.- A fallback authorization policy makes a forgotten route fail closed.
- Audit manifest permissions against what the app really uses, and remove the rest.
Official documentation: .NET MAUI secure storage and the OWASP Mobile Top 10.
