Skip to content
XSS Disclosed report Beginner

XSS trigger via HTML Iframe injection in ( https://██████████ ) due to unfiltered HTML tags

The report describes an iframe/HTML injection in a text editor field; an externally hosted image can be reflected, but the author states it is not a true XSS and cannot steal cookies, only enable phishing.

basant0x01 Follow

Originally disclosed on HackerOne

  • Triaged in 4 hours
  • Fixed in 8 months
  • Disclosed after 9 months

Hi team, I found an Iframe injection issue where I chained it and formed an XSS. I found the issue in the text editor area while ███████ing the account. There is a place in the registration area where we have to give a reason for █████████. We can write our reason and edit to show more beautifully. URL: https://██████████/█████/ ████████

In this edit area, there are two buttons 1. ████ and 2. ███████. We can use both fields to edit our text. As an analyst, I analyze both fields and found the text area is vulnerable to injection, where we can able to inject iframe injections.

<iframe src="https://google.com"></iframe>

And after clicking on the visual button, it's reflecting on the page. But the problem is it's showing the error, it's because the page is already secured by the clickjacking issue. ██████████

But got an idea where I can chain the iframe injection issue to fire the XSS into the page of https://██████████. I uploaded the XSS image into my NETLIFY sandbox server. Here's a Link: https://█████

Then I create the payload like:

<iframe src="https://███████"></iframe>

And boom!! I can see the XSS firing into the page of https://███. ████████

It's definitely not allowing to injection directly iframe page but it's allowing the image to reflect. In this way, an attacker cannot able to steal session cookies but can able to perform attacks like phishing on a genuine site.

VIDEO POC: ███████

Impact

An attacker cannot able to steal a session's cookies because it's not an XSS but attackers can able to perform attacks like phishing on a genuine site.

System Host(s)

██████████

Affected Product(s) and Version(s)

CVE Numbers

Steps to Reproduce

  1. Visit https://██████/█████████/,
  2. Scroll below you will see the area like ( Reason for ██████ (required) )
  3. Click the text button and inject : <iframe src="https://█████████"></iframe>

payload 4. Again click on the ██████████ button,

(Instently, You will see the xss is firing into the page of https://███ )

Suggested Mitigation/Remediation Actions

Filter every data before displaying it into the page and only whitelist the limited HTML tags.

The original report as published on HackerOne, by basant0x01. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The text editor field does not filter or sanitise user input, allowing HTML tags like iframes to be injected and later rendered.

Impact

An attacker cannot steal session cookies but can perform phishing attacks on the genuine site.

What the attacker needed

Access to the registration form; ability to host an image externally

The fix

Filter all data before displaying it and only whitelist limited HTML tags.

How it was found

  1. Visit the registration page and find the reason field.
  2. Click the text button and inject an iframe payload.
  3. Click the visual button to render the content.
  4. Host a malicious image on an external server and embed it in an iframe.
  5. Inject the iframe with the image URL to reflect the externally hosted image on the page.

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 report has not been written yet. The Original tab links to the source.

This report is about a website that lets users type text into a box and does not clean it up. A user can type special code that makes the site show other content, like a picture from another site. The author says this is not a real XSS and cannot steal login cookies; it can only be used to trick people with fake content.

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 basant0x01

View all

12 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.