Skip to content
XSS Write-up Intermediate

My Secret Of rxploiting Htmli To Be Critical Severity $$$$

The author found a stored HTML injection in a notes page, an open redirect on the main domain, and a host header injection in an invite endpoint that only accepted the main domain. By chaining the host header injection with the open redirect, they made the invite link point to their stored note, which contained a full-page iframe, so victims would see the company's certificate and URL while the content was attacker-controlled.

medium.com

Published on medium.com

Today will share A Quick Tip About How i report Htmli to As critical Severity issue

Hamzadzworm, 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 invite endpoint trusted the Host header without validating it against an allowlist, and the notes feature rendered user-supplied HTML without sanitisation, allowing a full-page iframe.

Impact

An attacker could send an invite link that appears to come from the company's main domain and shows the company's certificate, but displays attacker-controlled content in a full-page iframe, which could be used for phishing or deception.

What the attacker needed

Attacker can create notes; victim clicks an invite link; host header injection accepts only main domain

How it was found

  1. Find an open redirect on the main domain.
  2. Find a stored HTML injection in the notes page that other users can view.
  3. Find a host header injection in the invite user endpoint that only accepts the main domain.
  4. Combine the host header injection with the open redirect to point the invite link to the stored note.
  5. Put a full-page iframe in the note so the victim sees the company certificate and URL while the content is attacker-controlled.

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 lets an attacker put their own web page code into a site that other people view. Here the author combined three smaller flaws so that a link sent to a user would show the real company's padlock and address, but the page inside was controlled by the attacker. This is dangerous because users trust the address bar and certificate to mean the page is safe.

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.