Toutes les vulnérabilités
HIGHAppSec

APPSEC-TMOBILE-API-2023

API · Telecom · T-Mobile

Résumé

On January 19, 2023 T-Mobile disclosed in an SEC 8-K filing that an attacker had abused a single API to obtain data on roughly 37 million current postpaid and prepaid customer accounts, with access beginning on or around November 25, 2022 and continuing about six weeks until detection on January 5, 2023 and cutoff a day later. The exposed fields included names, billing addresses, emails, phone numbers, dates of birth, account numbers, and plan features; T-Mobile stated no passwords, payment card data, Social Security numbers, or government IDs were taken. T-Mobile only stated that a bad actor obtained data through a single API without authorization, without publishing the low-level mechanism; the security-community consensus reconstruction is Broken Object Level Authorization (BOLA/IDOR), where the API returned per-customer records without verifying the caller was authorized for that specific object, letting the attacker walk through customer identifiers at scale. The mechanism maps to BOLA via a user-controlled key, or, if the endpoint lacked authorization entirely, to missing authorization.

Comment l’éviter dans votre code

  • Enforce object-level authorization on every API request: check the resource owner against the session, never trust a client-supplied id.
  • Require authentication and authorization on each endpoint, including undocumented and internal-facing APIs.
  • Add per-account rate limiting and volume anomaly detection so one caller cannot pull millions of records unnoticed.
  • Alert on sustained bulk access patterns; six weeks of mass retrieval should trip automated detection far sooner.
  • Maintain a full API inventory and run authorization tests against every exposed endpoint.

Références

Vulnérabilités liées

Tout AppSec →