HTML injection that may lead to XSS on HackerOne.com through H1 Triage Wizard Chrome Extension
The H1 Triage Wizard Chrome extension inserts questionnaire responses into a modal's HTML without sanitising them, allowing an attacker to inject HTML. This could lead to cross-site scripting (XSS) and compromise of confidential information.
- Fixed in 1 hour
- Disclosed after 1 hour
To reproduce:
- ensure you have the H1 Triage Wizard Chrome extension enabled
- visit https://hackerone.com/reports/1622449?subject=security&/bugs=1
- right-click the report, select "View Triage Questionnaire (Beta)"
- observe an HTML payload being injected
The payload is stored in █████████. The contents of this file are dynamically loaded through the Chrome extension.
The vulnerability is caused by the following code in the triage-extension-private repository:
buildTriageQuestionnaireModal = (
modalElement,
triageQuestionnaireModalOptions
) => {
let questionnaireResponses =
triageQuestionnaireModalOptions.questionnaireResponses;
if (questionnaireResponses) {
modalElement.innerHTML = triageQuestionnaireHTML
.replace("{{handle}}", triageQuestionnaireModalOptions.handle) // <-- the handle here is taken from the subject parameter (i.e. "security")
.replace("{{1}}", questionnaireResponses[1]) // <-- the response to the questionnaire is interpolated without sanitizing it
.replace("{{2}}", questionnaireResponses[2]) // <-- this applies to all of these
.replace("{{3}}", questionnaireResponses[3])
// ...
Impact
This vulnerability may lead to compromising confidential information or impact its integrity.
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
Impact
This vulnerability may lead to compromising confidential information or impact its integrity.
What the attacker needed
H1 Triage Wizard Chrome extension enabled; attacker can control questionnaire responses
How it was found
- Ensure the H1 Triage Wizard Chrome extension is enabled.
- Visit a specific HackerOne report URL with a subject parameter.
- Right-click the report and select 'View Triage Questionnaire (Beta)'.
- Observe an HTML payload being injected.
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 browser extension that shows a questionnaire. The extension takes answers and puts them directly into the page's HTML without cleaning them first. That means if an attacker can control an answer, they can insert their own HTML code, which might run scripts and steal data.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.