Skip to content
Write-up Beginner

✈️ I Tried Hacking a Flight Booking API — Here’s What I Found (or Didn’t )

The author tested a flight booking API for price manipulation, affiliate spoofing, cart replay, token abuse, and input injection, but found that the backend enforced correct prices, validated affiliate-brand combinations, bound sessions, signed tokens, and sanitised inputs. No vulnerability was successfully exploited.

infosecwriteups.com

Published on infosecwriteups.com

Free Article Link Here

Varnith Yemula, on infosecwriteups.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 no vulnerability was present; the backend correctly validated prices, affiliate codes, sessions, tokens, and input.

Impact

No impact; all attempted attacks were blocked by server-side validation, session binding, token signing, and input sanitisation.

What the attacker needed

Access to the booking API; ability to intercept requests

How it was found

  1. Intercept the booking request and change the totalPrice value to a lower amount.
  2. Modify affiliate-related headers such as Affiliate-Internal-Code and Brand to spoof a different affiliate.
  3. Replay earlier order/ace requests with stale cart IDs.
  4. Replace or replay token fields like uidToken, orderId, and tradeNo.
  5. Inject special characters, HTML tags, SQL payloads, and XSS payloads into contact form fields.

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.

This is a write-up of a security test where someone tried to cheat an airline booking system by changing prices, pretending to be an affiliate, reusing old cart IDs, swapping tokens, and injecting code into forms. Every attempt failed because the server checked everything properly. It shows that even when no bug is found, a careful test is still useful.

Similar reports

Same bug class and techniques, clearest first.