Mobile application security

Retiring vulnerable mobile app versions safely

Vulnerable mobile app versions safely: phone, refresh, package arranged to illustrate retiring vulnerable mobile app versions safely.

An old app version can remain an active route around security improvements. Understanding vulnerable mobile app versions safely helps establish which security property the feature needs and where that property is actually enforced.

What does this involve?

A software dependency becomes part of the application's effective behaviour and maintenance commitment. The important inventory is what the release actually contains, including transitive packages, bundled binaries and code that arrives through a build or update process.

At runtime, Android apps implementing enforced updating typically either invoke the Google Play In-App Updates API (for example, AppUpdateManager) or perform a custom version check, for example by retrieving BuildConfig.VERSION_NAME, BuildConfig.VERSION_CODE, or PackageManager.getPackageInfo values and sending them to a backend that returns a minimum version policy. If the app does not perform this check before access to protected functionality or backend services, or if the enforcement can be bypassed, for example by dismissing an update dialog, cancelling an immediate update flow, backgrounding the app before the update completes, or manipulating the reported version, the app fails to properly enforce the update.

Why it matters

Consider a realistic failure: a user installs an earlier build that still works with the production backend.

A compromised or vulnerable component may run with the application's privileges or receive information the business did not expect to share. Impact depends on reachability, permissions and actual data flows rather than a package name alone.

Mobile behaviour can change between a fresh installation, an authenticated session, background activity and a device migration. The assessment needs the actual release and representative supported device states.

How penetration testers check for it

Test version acceptance, update prompts and compatibility decisions on the server.

  • Exercise the app extensively to trigger as many flows as possible and enter sensitive data wherever you can.
  • a network traffic trace showing version values in requests and the corresponding backend responses, where a backend-gated update flow is used.
  • Determine whether the update check executes before access to protected functionality or backend services and cannot be bypassed.
  • For Google Play In-App Updates, determine whether the app handles cancellation or denial of an immediate update flow, checks update state when returning to the foreground, and restarts the immediate update flow when UpdateAvailability.DEVELOPER_TRIGGERED_UPDATE_IN_PROGRESS is reported.
  • Inspect transitive dependencies and unexpected runtime activity.
  • Confirm whether affected code is reachable under realistic conditions.

How to fix it

Retire unsafe versions deliberately and preserve essential access through a managed update process.

  • Use maintained and appropriately trusted dependencies.
  • Pin and review relevant changes in the delivery process.
  • Remove unnecessary components and reduce their permissions.
  • Verify remediation in the shipped release and its supporting artefacts.

A vulnerability identifier is a starting point for investigation. Version evidence, affected functionality and deployment conditions determine whether it creates a confirmed application risk.

Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.

Read about our methodology or contact pentested.com to discuss your mobile applications.

See your first test report this week.

Book a 30 minute demo. We will verify one of your targets with you and run a test against it, so you can judge the results on your own systems.

Book a demo