Reflected XSS via invocation iFrame size fields
The frame_width and frame_height parameters were inserted into HTML attributes without encoding when generating invocation tags. An attacker could send a crafted URL to an authenticated user to execute JavaScript in that user's browser.
- Triaged in 3 days
- Fixed in 6 days
- Disclosed after 3 months
Summary by the program
Description
HackerOne community member Adam Rayyan Aryasatya (kannrisha) has reported reflected XSS in the iframe invocation options. The frame_width and frame_height request parameters could be included in HTML attributes without appropriate encoding when generating invocation tags for an any-size zone. An attacker can send a crafted URL to an authenticated user to execute JavaScript in that user's browser.
Resolution
Width and height values are now HTML-encoded when included in invocation-option form fields.
Security advisory
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
Likely the application failed to HTML-encode the frame_width and frame_height values before placing them into HTML attributes.
Impact
An attacker could execute JavaScript in an authenticated user's browser by getting them to open a crafted URL.
What the attacker needed
Authenticated user; victim opens a crafted URL
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.
When a website puts user input directly into its HTML without cleaning it first, an attacker can sneak in code that the browser runs. Here, two size settings for an embedded frame were placed into the page as-is, so a malicious link could make the victim's browser run the attacker's JavaScript.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.