Skip to content
XSS Write-up Beginner

My Journey to Finding a Bug and Earning an Appreciation Letter

The researcher found that an AI search feature on a website allowed HTML injection, which could be used for defacement. The report was accepted and the researcher received an appreciation letter.

sachinkewat809 Follow

Published on medium.com

I recently participated in a VDP program on an Indian site, and I am thrilled to share my adventure of discovering a bug.

Sachin kewat, 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 AI search feature did not sanitise or encode user input before rendering it as HTML.

Impact

An attacker could inject HTML to deface the page, but script execution was blocked, limiting the attack to visual changes.

What the attacker needed

Access to the AI search feature

How it was found

  1. Open the website and examine inputs, endpoints, source code, and inspect elements.
  2. Find the new update page with an AI search functionality.
  3. Inject HTML and JavaScript commands into the search input.
  4. Observe that script tags did not work but H1 tags were rendered successfully.
  5. Test further HTML injections and check for blind XSS and other attacks.
  6. Create a proof of concept and report it to the owner.

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 is when a website displays user-supplied text as actual HTML code instead of plain text. This can let an attacker change how the page looks or add fake content, which is called defacement. Here, the AI search feature did not properly handle HTML, so the researcher could inject headings and styling.

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.