Skip to content
XSS Write-up Beginner

šŸ¤– ā€œUnfiltered Talkā€ — How Target Chatbot Let Me Redecorate Their Website

The Target.com chatbot rendered user-supplied HTML in the page instead of treating it as plain text. An attacker could inject fake messages or redirect users by typing HTML into the chat.

Shah kaif Follow

Published on infosecwriteups.com

By Shah kaif | ā€œNever underestimate a bored hacker and a textbox with no input validation.ā€ | LinkedIn

Shah kaif, 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 the chatbot did not sanitise user input before inserting it into the page, so HTML was rendered instead of shown as text.

Impact

An attacker could inject fake messages asking for card details, redirect users, or drop payloads that look like legitimate parts of the site.

What the attacker needed

None

How it was found

  1. Open target.com and find the chatbot on the homepage.
  2. Type HTML into the chatbot input.
  3. Observe that the chatbot window and parts of the page render the 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.

A chatbot on a website accepted text from a user and displayed it as if it were part of the page's code. Because the site did not clean or 'sanitise' that text, the user could make the page show things it was not supposed to, like fake messages. This is called HTML injection.

What is XSS?

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

More by Shah kaif

View all

5 more disclosed reports, best first.

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.