/

CVE-2026-54372

Severity:

HIGH RISK

(8.8)

Improper Certificate Validation (CWE-295) in VitaFit

CVE-2026-54372

Deferred

Vulnerability type

Category:

Improper Certificate Validation

CWE:

CWE-295

Impact:

Man-in-the-middle interception, session compromise, data exposure or tampering, and potential account lockout

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

VitaFit for Android uses TLS certificate and hostname checks that accept certificates and hostnames without proper verification, allowing a network-positioned attacker to intercept or modify HTTPS traffic. If a session is captured, the attacker may access health-related API data and delete the account's authentication record, preventing the legitimate user from logging in.

Affected context

The issue affects the VitaFit Android application (com.vt.vitafit) in versions before 2.8.1.0. It occurs when the app establishes HTTPS connections using a custom trust manager that accepts all certificates and a hostname verifier that accepts any hostname. The risk is greatest when an attacker can position themselves on the network path between the app and its services.

Exploit preconditions

  • Attack surface: HTTPS connections made by the VitaFit Android app
  • Required access: A network position that allows the attacker to observe or interfere with app traffic; the description does not indicate that prior account access is required
  • Trigger point: The app initiates an HTTPS connection while the insecure certificate and hostname checks are in use
  • Why exploitation is possible: The custom trust manager and hostname verifier do not properly authenticate the server, enabling a man-in-the-middle to impersonate an endpoint

Why this happens

The application accepts TLS connections without correctly verifying that the server certificate is trusted and that the certificate matches the requested hostname. This is an improper certificate validation flaw mapped to CWE-295. Trusting all certificates or accepting any hostname removes the checks that help prevent a network attacker from impersonating a service.

Potential impact

  • An attacker may intercept or modify HTTPS traffic between the app and its services.
  • Account sessions could be captured and misused.
  • Health-related API data may be exposed or tampered with.
  • A captured session could be used to delete the account's authentication record, potentially preventing legitimate login.

General mitigation guidance

Mitigation generally focuses on ensuring that every connection authenticates the intended server.

Common defensive patterns include:

  • Use the platform's standard TLS trust mechanisms rather than permissive custom trust managers.
  • Enforce certificate-chain validation and hostname verification; fail closed when either check fails.
  • Avoid trust-all callbacks and broad certificate-validation exceptions, including in test or debug configurations.
  • Keep sensitive session tokens protected and limit the actions available to a session.
  • Reduce exposure to untrusted networks where practical, without treating network controls as a substitute for TLS validation.

How teams detect issues like this

High-level detection approaches include:

  • Static analysis rules for custom trust managers that accept all certificates or hostname verifiers that always return true.
  • Code review of TLS setup, certificate pinning or trust exceptions, and differences between debug and release configurations.
  • Runtime and mobile application testing that checks rejection of untrusted certificates and mismatched hostnames.
  • Build and release policies that prohibit permissive TLS validation in production artifacts.

Automated mobile security analysis can help identify these patterns, but findings should be reviewed in the context of the app's networking code.

Sources

SourceLink
github.comgithub.com/je-lv/vitafit-security-research
play.google.complay.google.com/store/apps/details?id=com.vt.vitafit
vulncheck.comvulncheck.com/advisories/vitafit-android-insecure-tls-certificate-validation

Frequently asked

questions

It can be exploited by an attacker who can position themselves on the network path and interfere with the app's HTTPS connections; it is not described as an attack requiring direct access to the device.

The described attack relies on intercepting app traffic. A captured session may then enable actions against the account, including deleting its authentication record.

Use standard TLS validation that checks both the certificate chain and the hostname, and reject connections when validation fails.

Include TLS configuration checks in code review and automated analysis, test that invalid certificates and hostnames are rejected, and prohibit permissive validation in production builds.

Find out what's already
exploitable in your codebase.