Skip to content
XSS Write-up Beginner

️‍♂️My Journey of Securing WHO

A messaging feature between enrolled course users did not properly sanitise HTML, allowing an attacker to send a message containing a fake login form. When the victim received an email notification of the message, the form was rendered in the email, and submitting it sent the victim's credentials to the attacker.

infosecwriteups.com

Published on infosecwriteups.com

Hello Hackers, Today in this writeup I am going to disclose how I found an HTMLI in email bug in World Health Organization (WHO)which was found accidently and at the end leads me to achieve HOF recognition.

cryptoshant🇮🇳, 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 email notification template rendered user-supplied message content without sanitising HTML tags such as form and input.

Impact

An attacker could steal a victim's credentials through a phishing form embedded in a notification email, leading to account takeover.

What the attacker needed

Two accounts on the course site; both accounts enrolled in a course; victim receives and opens the email

The fix

The vulnerability was fixed according to the timeline.

How it was found

  1. Visit the course website.
  2. Create two accounts, one as victim and one as attacker.
  3. Enrol both accounts in courses.
  4. Log out of the victim account and, from the attacker account, send a message containing an HTML form to the victim.
  5. The victim receives an email notification containing the rendered form and enters credentials, which are sent to the attacker.

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 type special formatting code (HTML) that it then shows to other people without cleaning it first. Here, a message sent between users contained a fake login form, and the email notification showed that form to the victim. If the victim typed their password into it, the password was sent to the attacker.

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.