Skip to content
XSS Write-up Beginner

How I Found an HTML Injection in Email Vulnerability on Samsung, Leading to a $$ Payday

The private messaging feature of Samsung Community allowed HTML injection because the server-side filter could be bypassed by adding plus signs inside HTML tags. An attacker could send a message containing a clickable image that redirected the victim to a malicious site, enabling phishing.

cybersecuritywriteups.com

Published on cybersecuritywriteups.com

I am Taha Diwan with IZYITS, and I would like to share with you my discovery of an HTML Injection in Email vulnerability on Samsung.

Taha Diwan, on cybersecuritywriteups.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 HTML sanitiser used a blocklist that did not account for plus signs inside tags, so the browser still interpreted the modified tags as valid HTML.

Impact

An attacker could send a message that renders as a clickable image, tricking the victim into visiting a malicious site, which may lead to phishing.

What the attacker needed

A free account on Samsung Community; victim has an account and checks messages; attacker can intercept requests (e.g., with Burp)

The fix

The HTML sanitiser should be improved to correctly parse and neutralise tags regardless of added characters like plus signs, and output should be properly encoded.

How it was found

  1. Find the Samsung Community domain and create two accounts, one attacker and one victim.
  2. Use the attacker account to send a private message to the victim.
  3. Intercept the message request and replace the body with an HTML payload.
  4. Observe that the server rejects the payload with an error about invalid HTML.
  5. Modify the payload by adding plus signs inside the HTML tags and send it again.
  6. Log in as the victim and see the payload rendered as a clickable image.

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 lets you put your own formatting or links into a page or message, and other people see them. Here, the message system tried to block bad HTML but a simple trick (adding plus signs) got past the filter. The attacker could then send a message with a picture that, when clicked, took the victim to a fake site.

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.