Skip to content
XSS Write-up Beginner

How I Turned an “Informative” HTML Injection into My First Pa

The chat feature failed to sanitise HTML input, allowing arbitrary tags and inline CSS. An attacker could inject a transparent full-screen link so that any click in the chat redirected the victim to an attacker-controlled site, bypassing the platform's external link warning page.

Muhammadmaftuhk Follow

Published on medium.com

HTML Injection (HTMLi) is frequently dismissed in modern bug bounty programs as a low-impact or Informative finding. Many researchers stop testing the moment they achieve basic tag injection.

Muhammadmaftuhk, 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 silently redirect users to a malicious site without the platform's external link warning, which could be used in phishing campaigns.

What the attacker needed

Ability to send chat messages; victim clicks anywhere in the chat

How it was found

  1. Notice that the chat feature accepts HTML tags and inline CSS styles.
  2. Inject an anchor element styled as a transparent full-screen overlay.
  3. When a victim clicks anywhere in the chat, the invisible link is triggered.
  4. The victim is redirected straight to the attacker's site, skipping the external link warning page.

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.

HTML injection means a website lets you type HTML code that it then shows to other users without cleaning it first. Here the attacker added an invisible link stretched over the whole chat window, so when someone clicked anywhere they actually clicked the hidden link and were sent to a bad site. This skipped the warning page the site normally shows before sending you to another website.

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.