Skip to content
Business logic Write-up Beginner

How I Broke a Travel Giant’s “Non-Refundable” Policy for a

A travel booking platform's cancellation endpoint accepted a client-supplied refund amount, letting a user set any refund value on a non-refundable booking. An attacker could cancel bookings and request arbitrarily large refunds, potentially draining the company's funds.

T4nv1 Follow

Published on medium.com

If you’ve ever booked a “non-refundable” hotel room, you know that feeling of dread when your plans change. You’re locked in.

T4nv1, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server trusted a client-supplied refund_amount field instead of calculating the refund itself from the booking's policy.

Impact

An attacker could automate cancellations of many bookings with inflated refund requests, potentially causing severe financial loss to the company.

What the attacker needed

A user account with a booking; ability to intercept HTTP requests

How it was found

  1. Intercept the cancellation request in a proxy tool.
  2. Note the server response includes a refund_amount field set to 0.
  3. Re-send the cancellation request with an added refund_amount parameter set to a chosen value.
  4. Observe the server returns 200 OK and the booking page shows the requested refund being processed.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

When you cancel a booking, your browser sends a message to the server saying 'cancel this booking'. The server should decide the refund amount itself. Here, the server also listened to a refund amount sent by the browser, so anyone could ask for any amount of money back.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by T4nv1

View all

113 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.