Skip to content
XSS Disclosed report Intermediate

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.

jobert Follow

Originally disclosed on HackerOne

  • Fixed in 1 hour
  • Disclosed after 1 hour

To reproduce:

Screen_Recording_2023-02-14_at_10.46.41_AM.mov From the original on HackerOne

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:

JavaScript
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.

The original report as published on HackerOne, by jobert. 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

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

  1. Ensure the H1 Triage Wizard Chrome extension is enabled.
  2. Visit a specific HackerOne report URL with a subject parameter.
  3. Right-click the report and select 'View Triage Questionnaire (Beta)'.
  4. 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.

More by jobert

View all

67 more disclosed reports, best first.

More from HackerOne

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.