Tesco coupons easily faked to save £750 on Hotels.com bookings worldwide
Hotels.com generated Tesco Clubcard discount codes using a predictable pattern, allowing anyone to guess valid codes and obtain up to £750 off hotel bookings. An attacker could generate and use these codes to book rooms at a fraction of the price, causing revenue loss to Hotels.com.
cybernews.com
Published on cybernews.com
If you purchase via links on our site, we may receive affiliate commissions.
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 discount codes were generated with a predictable structure, leaving only four characters to guess, and there was no rate limiting on code entry.
What the attacker needed
Access to Hotels.com UK site; knowledge of code pattern; ability to guess last 4 characters
The fix
The issue was fixed by Hotels.com, likely by making codes longer and less predictable, generating them only when needed, and limiting entry attempts.
How it was found
- Figure out the code pattern: first five characters fixed, then the discount amount, a colon, and four unknown characters.
- Go to the Tesco Clubcard page on Hotels.com and enter a guessed code.
- If the code is valid and unused, apply it to a booking and pay online.
- Complete the booking with the discount applied, then cancel within a few hours.
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.
A discount code is like a secret password that gives you money off. Here, the codes were made in a simple pattern, so someone could guess the last four characters and create valid codes without earning them. This let people book hotel rooms for almost nothing, and the hotel booking site lost money.
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.