Toutes les vulnérabilités
HIGHAppSec

APPSEC-USPS-INFORMEDVIS-2018

API · USPS (Informed Visibility)

Résumé

On November 21, 2018 Krebs on Security reported that a USPS Informed Visibility API had exposed account data on roughly 60 million usps.com users, after a researcher's warning had gone unanswered for over a year until USPS fixed it on November 20, 2018. The API enforced authentication but no object-level authorization: any logged-in usps.com account holder could query the account details of any other user, and the same promiscuous endpoint allowed requesting account changes such as email, phone number, and other details for arbitrary users. Many API features also accepted wildcard search parameters, so a single query could return entire data sets at once. Exposed fields included email address, username, user ID, account number, street address, phone number, authorized users, and mailing-campaign data. This is a Broken Object Level Authorization / IDOR flaw with a missing-authorization root cause: authentication was checked but authorization on the target object was not.

Comment l’éviter dans votre code

  • Authenticating a caller is not enough; enforce object-level authorization tying every record to the requesting user.
  • Apply the same ownership check to write operations as to reads; never let any user modify another user's account.
  • Reject or strictly scope wildcard and bulk search parameters so one query cannot return all records.
  • Add per-account rate limiting and anomaly detection on bulk lookups across the user base.
  • Treat researcher disclosures with a tracked, time-bound response process so flaws are not ignored for a year.

Références

Vulnérabilités liées

Tout AppSec →