Toutes les vulnérabilités
HIGHAppSec

APPSEC-PARLER-2021

API · Social · Parler

Résumé

Between 9 and 11 January 2021, as Parler was being deplatformed from Apple's App Store, Google Play and AWS following the 6 January Capitol riot, archivists led by the researcher known as donk_enby scraped roughly 99.9% of the platform before it went offline, capturing on the order of 70 TB of data including about 1.1 million videos along with public posts, photos and user data. Parler exposed API endpoints that served public posts and raw media without requiring any authentication, and post and object identifiers were sequential, so the archivists simply incremented IDs to enumerate and harvest the entire site. There was no rate limiting, allowing high-speed bulk extraction, and media files were served raw with EXIF and GPS metadata intact, while deleted posts were only flagged as deleted rather than removed and remained retrievable. The core flaw maps to OWASP API1 Broken Object Level Authorization (sequential IDs with no authorization check) combined with API4 Unrestricted Resource Consumption from the missing rate limiting, with Excessive Data Exposure in the unstripped media metadata.

Comment l’éviter dans votre code

  • Enforce object-level authorization on every post and media request rather than relying on the obscurity of the ID.
  • Use unguessable non-sequential identifiers so endpoints cannot be enumerated by incrementing IDs.
  • Apply rate limiting and per-client throttling on read APIs to prevent high-speed bulk harvesting.
  • Strip EXIF and GPS metadata from uploaded media server-side before it is served.
  • Actually delete removed content rather than flagging it, and add anomaly detection for sequential enumeration patterns.

Références

Vulnérabilités liées

Tout AppSec →