Skip to content

MASWE-0042: Latest Platform Version Not Targeted

MAS Requirement

The app targets the latest platform version.

Mappings

MASVS V2: MASVS-CODE-1

CWE: CWE-693: Protection Mechanism Failure, CWE-1357: Reliance on Insufficiently Trustworthy Component

Android Core Quality: Target_SDK_Version, Compile_SDK_Version

Overview

This weakness occurs when an app does not target the latest platform version, missing the newest platform-enforced security protections and behavior changes.

Targeting the latest platform version, via targetSdkVersion on Android or by building with the latest Xcode/SDK on iOS, opts the app into protections such as scoped storage, stricter runtime-permission handling, permission auto-reset, and modern TLS defaults. When an app targets an old version, the OS applies backward-compatibility behaviors and the app silently misses these protections. This is distinct from the minimum supported version (see Running on a Recent Platform Version Not Ensured): here the concern is the target/compiled version.

Modes of Introduction

  • Outdated Target Version: Keeping targetSdkVersion on Android, or the Xcode/SDK used to build on iOS, below current requirements, so newer platform-enforced protections never apply to the app.
  • Compatibility Behaviors Left in Place: Relying on legacy behaviors (e.g. broad storage access or lenient permission handling) that only continue to work because the app targets an old version.

Impact

  • Compromise of Sensitive Data: Attackers can take advantage of legacy behaviors, such as broader file-system or permission access, resulting in exposure of user data that current platform defaults would have protected.
  • Compromise of System Integrity and Business Operations: The app can fall below app-store target-version requirements, resulting in blocked updates or removal from distribution for the app owner.

Mitigations

  • Target the Latest Platform Version: Update targetSdkVersion and build with the latest SDK promptly each platform cycle, following the store requirements for Android and iOS.
  • Adopt New Protections: Review each platform release's behavior changes and migrate off legacy behaviors.

Tests

No Tests Yet

The MASTG doesn't contain any tests for this weakness yet. If you have proposals or would like to work on some, please open an issue in https://github.com/OWASP/mastg/issues indicating the MASWE-0042 mapping, the test titles and a summary of the tests.