š¤ ā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.
By Shah kaif | āNever underestimate a bored hacker and a textbox with no input validation.ā | LinkedIn
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
- Open target.com and find the chatbot on the homepage.
- Type HTML into the chatbot input.
- 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.