Stored cross-site scripting in dataset owner.
The 'dataset owner' field in the custom dataset dashboard outputs user-supplied name data without sanitisation, allowing stored JavaScript to execute. An attacker could run arbitrary JavaScript in the context of other users, potentially stealing their algorithms.
Originally disclosed on HackerOne
- Triaged in 33 hours
- Fixed in 14 months
- Paid in 2 days
- Disclosed after 3.2 years
Hi again. Another XSS this time. Summary: Unescaped chars in 'dataset owner' could be abused to store arbitrary javascript.
Description: There is a 'dataset owner' field in new 'custom dataset dashboard' which contains unsanitized output. If attacker would modify his name, like first name '<img src=x' and last name 'onerror=alert(1)>', the field would hold a script. While for most users this is a case of self-xss, for enterprise users (for which, as i understand. this field was introduced in the first place), it can lead to executing arbitrary javascript.
Steps To Reproduce:
- Put the payload in name and/or surname (first name '<img src=x' and last name 'onerror=alert(1)>')
- Navigate to custom datasets.
Test account information
Impact
Executing arbitrary javascript, stealing other users' algos as demonstrated in previous reports with XSS on quantopian domain.
Context
Quantopian's web application at www.quantopian.com includes a feature called the custom dataset dashboard. Within that dashboard there is a field labelled dataset owner, which displays the name of the person who owns a dataset. The report describes this field as having been introduced primarily for enterprise users, and it renders the owner's name without escaping.
This is a stored cross-site scripting issue: the value that ends up in the dataset owner field is taken from the user's own profile name and written into the page without sanitisation.
Setup
The researcher used a test account, identified in the report only by an email address, which is redacted here:
No tools, browser versions or other preconditions are described. The only requirement implied by the steps is the ability to change one's own first name and surname, and access to the custom datasets view.
Finding it
The researcher noticed that the dataset owner field in the new custom dataset dashboard contains unsanitised output. Because the owner name is drawn from the user's profile, a user who controls their own name controls part of the HTML that the dashboard renders.
The reasoning in the report is that an attacker could modify their name so that the first name is <img src=x and the last name is onerror=alert(1)>. Concatenated, the two halves form a complete image tag with an error handler, so the field would hold a script.
The researcher is explicit about the limits: for most users this is a case of self-XSS, because the payload only fires in the context of the account that set it. For enterprise users, for whom the field was introduced in the first place, it can lead to executing arbitrary JavaScript in front of other people.
Exploitation
Step 1: Put the payload in the name
The attacker sets their first name and surname to the two halves of the payload:
first name '<img src=x' and last name 'onerror=alert(1)>'
Neither half is a valid tag on its own. The first name opens an img element with a deliberately broken src of x, and the last name supplies the onerror attribute and closes the tag. The payload is split across the two profile fields, first name and surname.
Step 2: Navigate to custom datasets
With the name saved, the attacker opens the custom datasets view. The dataset owner field renders the stored name, and because the output is not escaped, the browser parses the concatenated value as an img element. The report does not show the handler running; it only describes the two steps.
alert(1)
The report does not include the resulting page source or a screenshot of the alert; the two steps above are the whole of the reproduction.
Root cause
The dataset owner field outputs the owner's name without escaping, so characters that are meaningful in HTML are interpreted by the browser rather than displayed as text. The report does not describe the server-side or template code, so the exact location of the mistake is not stated; likely the name is inserted into the page as raw markup.
The payload works because the two profile fields are concatenated into a single output context.
Impact
The researcher states the impact as executing arbitrary JavaScript and stealing other users' algos, as demonstrated in previous reports with XSS on the Quantopian domain. The report frames the practical risk as conditional: for most users the payload is self-XSS, and the meaningful exposure is to enterprise users, for whom the dataset owner field was introduced.
Fix
The evident requirement is to HTML-escape the dataset owner value on output so that the name is rendered as text rather than parsed as markup.
Variants to test
- Split payloads across paired profile fields (first name and surname, first and last name, display name and nickname) wherever both are concatenated into one output. A positive result is a single valid element assembled from the two halves that fires when the page is viewed.
- Broken
srcwith an error handler, as used here, on any field that renders inside an attribute or element context. A positive result is the handler running without any user interaction beyond loading the page. - Owner or creator fields on dashboards, dataset listings and shared resources, where the value comes from another user's profile. A positive result is the payload firing in a second account that merely views the resource.
- Enterprise or organisation-specific views, since the report ties the exposure to enterprise users. A positive result is the payload rendering for a colleague or admin who opens the dashboard.
Hunting notes
This kind of bug tends to hide in secondary profile fields that are copied into other parts of the application: owner labels, creator columns and attribution lines on dashboards and listings. During recon, look for places where a name you control appears in a context you did not create, and check whether the application escapes it. Splitting a payload across two related fields is a cheap way to get past per-field validation.
On impact, the report is candid that the bug is self-XSS for ordinary users and only becomes interesting for enterprise accounts. The report cites prior XSS reports on the same domain and the consequence of stealing other users' algos.
What happened, in plain words
Quantopian is a website where people write and share trading programs, which the report calls "algos". The site has a feature called the custom dataset dashboard. Inside it there is a field labelled dataset owner, which shows the name of the person who owns a dataset. The report says this field was introduced mainly for enterprise users.
The problem is that the site takes the owner's name and puts it into the web page without cleaning it first. In web pages, certain characters are not just text: they are instructions to the browser. If a name contains those characters, the browser may treat part of the name as a command rather than as a name. That is what cross-site scripting (XSS) means: getting your own text treated as code by someone else's browser.
Because the owner name comes from the user's own profile, a user who can edit their own name can control part of the page that the dashboard builds. The researcher split a small script across the first name and the surname, so that each half looks harmless on its own but the two halves join into something the browser will run. For most users this only affects their own account, which is called self-XSS. For enterprise users, the report says, it can run JavaScript in front of other people.
The feature and the field
The custom dataset dashboard is a page in Quantopian's web application at www.quantopian.com. A dashboard is simply a page that gathers information in one place. The dataset owner field displays the name of whoever owns a dataset.
A web page is built from HTML, a language made of tags. A tag is a piece of text in angle brackets, like <img>, and the browser reads it as an instruction rather than showing it to you. When a site inserts a user's name into a page, it should convert characters like < and > into harmless text so the browser displays them instead of acting on them. That conversion is called escaping. The report says this field renders the owner's name without escaping, which is the root of the bug.
This is a stored cross-site scripting issue. "Stored" means the dangerous value is saved on the server (here, in the profile name) and shown again later, rather than being passed in a single link.
Setup
The researcher used a test account. The report identifies it only by an email address, which is redacted here:
No tools, browser versions or other preconditions are described. The only things the steps require are the ability to change your own first name and surname, and access to the custom datasets view.
Finding it
The researcher noticed that the dataset owner field in the new custom dataset dashboard contains unsanitised output. "Unsanitised" means the value is written into the page as it is, with no cleaning. Because the owner name is taken from the user's profile, a user who controls their own name controls part of the HTML that the dashboard renders.
The idea in the report is that an attacker could change their name so that the first name is <img src=x and the last name is onerror=alert(1)>. Put together, the two halves form a complete image tag with an error handler, so the field would hold a script.
An image tag, <img>, tells the browser to load a picture. The src part says where the picture is. Here src=x points at a place that does not exist, so loading it fails. The onerror part is an event handler: a piece of JavaScript the browser runs when the image fails to load. alert(1) is a tiny JavaScript command that opens a pop-up box showing the number 1. It is the standard harmless way to prove that code ran.
The researcher is explicit about the limits. For most users this is a case of self-XSS, because the payload only fires in the context of the account that set it. For enterprise users, for whom the field was introduced in the first place, it can lead to executing arbitrary JavaScript in front of other people.
Exploitation
Step 1: Put the payload in the name
The attacker sets their first name and surname to the two halves of the payload:
first name '<img src=x' and last name 'onerror=alert(1)>'
Line by line, in plain words:
first name '<img src=x'means the first name field is filled with the text<img src=x. This opens an image tag and gives it a broken source ofx. On its own it is an unfinished tag, so it does nothing yet.last name 'onerror=alert(1)>'means the surname field is filled withonerror=alert(1)>. This supplies the error handler and the closing>that finishes the tag.
Neither half is a valid tag on its own. The first name opens an img element with a deliberately broken src of x, and the last name supplies the onerror attribute and closes the tag. The payload is split across the two profile fields, first name and surname.
Step 2: Navigate to custom datasets
With the name saved, the attacker opens the custom datasets view. The dataset owner field renders the stored name, and because the output is not escaped, the browser parses the joined value as an img element. The report does not show the handler running; it only describes the two steps.
alert(1)
In plain words, alert(1) calls the browser's built-in alert function with the value 1, which shows a pop-up. Seeing that pop-up proves the browser executed the attacker's JavaScript rather than displaying the name as text.
The report does not include the resulting page source or a screenshot of the alert; the two steps above are the whole of the reproduction.
Root cause
The dataset owner field outputs the owner's name without escaping, so characters that are meaningful in HTML are interpreted by the browser rather than displayed as text. The report does not describe the server-side or template code, so the exact location of the mistake is not stated; likely the name is inserted into the page as raw markup.
The payload works because the two profile fields are joined into a single output context.
Impact
The researcher states the impact as executing arbitrary JavaScript and stealing other users' algos, as demonstrated in previous reports with XSS on the Quantopian domain. An algo here is a user's trading program, so stealing one means taking another person's work. The report frames the practical risk as conditional: for most users the payload is self-XSS, and the meaningful exposure is to enterprise users, for whom the dataset owner field was introduced.
Fix
The evident requirement is to HTML-escape the dataset owner value on output so that the name is rendered as text rather than parsed as markup.
Variants to test
- Split payloads across paired profile fields (first name and surname, first and last name, display name and nickname) wherever both are joined into one output. A positive result is a single valid element assembled from the two halves that fires when the page is viewed.
- Broken
srcwith an error handler, as used here, on any field that renders inside an attribute or element context. A positive result is the handler running without any user interaction beyond loading the page. - Owner or creator fields on dashboards, dataset listings and shared resources, where the value comes from another user's profile. A positive result is the payload firing in a second account that merely views the resource.
- Enterprise or organisation-specific views, since the report ties the exposure to enterprise users. A positive result is the payload rendering for a colleague or admin who opens the dashboard.
Hunting notes
This kind of bug tends to hide in secondary profile fields that are copied into other parts of the application: owner labels, creator columns and attribution lines on dashboards and listings. During recon, look for places where a name you control appears in a context you did not create, and check whether the application escapes it. Splitting a payload across two related fields is a cheap way to get past per-field validation.
On impact, the report is candid that the bug is self-XSS for ordinary users and only becomes interesting for enterprise accounts. The report cites prior XSS reports on the same domain and the consequence of stealing other users' algos.
Glossary
- Algo: a trading program written by a Quantopian user; the report treats it as something another user could steal.
- Attribute: a setting inside an HTML tag, such as
srcoronerror, that tells the browser more about the element. - Browser: the program you use to view web pages, which reads HTML and runs JavaScript.
- Cross-site scripting (XSS): a bug where text controlled by a user is treated as code by a browser.
- Custom dataset dashboard: the Quantopian page that displays datasets and their owners.
- Dataset owner: the field on that dashboard showing the name of the person who owns a dataset.
- Element: a piece of a web page built from an HTML tag, such as an image.
- Enterprise users: the group of users for whom the report says the dataset owner field was introduced.
- Escaping: converting characters that HTML treats as instructions into plain text so they are displayed, not executed.
- Event handler: code attached to an element that runs when something happens, such as an image failing to load.
- HTML: the language web pages are written in, made of tags in angle brackets.
- JavaScript: the programming language browsers run;
alert(1)is a small example. - Payload: the text an attacker inserts to make the browser do something.
- Recon: the exploratory phase of looking around an application for weak spots.
- Self-XSS: an XSS payload that only fires in the account that set it, so it does not reach other people by itself.
- Stored XSS: XSS where the dangerous value is saved on the server and shown again later.
- Tag: a piece of HTML in angle brackets, like
<img>, that the browser reads as an instruction. - Unsanitised: written into the page as it is, without cleaning or escaping.
- Validation: checks a site applies to input, such as a name field, before accepting it.