Skip to content
XSS Write-up Beginner

FlowscreenComponents Basepack, Version 3.0.7 Advisory

A reflected cross-site scripting vulnerability was found in a page generated by the FlowScreenComponents BasePack library, where user-supplied parameters were inserted into JavaScript without proper encoding. An attacker could execute arbitrary JavaScript in the context of the affected Salesforce domain, potentially stealing session cookies or performing actions as the victim.

Matthew Rutledge Follow

Published on bishopfox.com

The following document describes identified vulnerabilities in the FlowScreenComponents BasePack library version 3.0.7.

Matthew Rutledge, on bishopfox.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

The page inserted user-controlled parameters (origin, params, flowname) directly into JavaScript and HTML without proper output encoding or validation.

Impact

An attacker could exploit this vulnerability to perform actions in the context of the affected users, including taking over targeted users’ sessions.

What the attacker needed

Victim clicks a crafted link; victim is authenticated

The fix

Restrict user access to the vulnerable page until an updated version of the library without the vulnerability is released.

How it was found

  1. Send a GET request to the /fsc_screenFlow endpoint with a crafted origin parameter containing a script payload.
  2. The server reflects the payload unencoded in the response.
  3. The browser executes the injected script, as shown by an alert displaying the origin.

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.

Cross-site scripting (XSS) is a flaw where a website inserts user input into its pages without making it safe, so an attacker can trick a victim's browser into running malicious code. Here, the page put URL parameters directly into a script, letting an attacker run JavaScript as if it came from the trusted Salesforce site. That could let the attacker steal the victim's session or act on their behalf.

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.