API BOLA: unauthorized order log
A data leak is suspected in an e-commerce store's API service. You are given api_incident.zip:
openapi.json— the API routes specification (/api/v2/orders/{order_id}and legacy/api/v1/orders/{order_id}).api_access.jsonl— a log of every API request (remote_ip,path,authorizationBearer JWT,status,response_body).
According to openapi.json, a regular customer (role="customer") should only be able to view their own order (order.owner_id == auth.sub); only the support role is authorized to view others' orders. Using a regular customer token, the attacker accessed other customers' orders with 200 OK via a deprecated endpoint (BOLA — Broken Object Level Authorization).
Task: identify the attacker, find the compromised confidential order (status="vip_confidential") among the orders they accessed without authorization, and decode its note_b64 field to obtain the flag. Note: there are decoy comments in 403 responses or in the attacker's own order. Flag format: BAYROQ{...} (the last 16 characters are lowercase hexadecimal digits).