Skip to content
XSS Write-up Beginner

HTML Injection in Traveler Profiles

The traveler profile form reflected user-supplied HTML tags without sanitisation or encoding, so injected markup rendered as raw HTML on the page. An attacker could alter the page layout and insert fake banners or links to deceive users, though the text states this was not script execution.

medium.com

Published on medium.com

Free Article Link: Click for free!

Ehtesham Ul Haq, 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

Impact

An attacker could tamper with the page's appearance and insert fake banners or links for phishing, but the text says this injection did not include JavaScript and so was not XSS by default.

What the attacker needed

A logged-in account; access to the traveler list feature

The fix

The application should sanitise input on both frontend and backend and output-encode user-supplied data before rendering it.

How it was found

  1. Log in to the account on the site.
  2. Go to My Profile and open the Traveler List section.
  3. Choose Add New to create a traveller.
  4. Enter HTML tags in fields such as First Name, Last Name or Address.
  5. Save and observe that the tags render as raw HTML.

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 a website takes what you type and puts it straight back on the page without cleaning it, your text can be treated as page instructions rather than plain text. Here, typing heading tags into a name field made the site display a large heading instead of the literal characters. That lets someone change how the page looks, for example by adding fake messages, even without running code.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.