Skip to content
XSS Disclosed report Beginner

Reflected xss on websummit.net

The search parameter on the featured attendees page was inserted into a data-url attribute without encoding, so special characters broke out of the attribute. An attacker could craft a link that runs JavaScript in a victim's browser on the site's domain.

rubyroobs Follow

Originally disclosed on HackerOne

  • Triaged in 9 hours
  • Fixed in 27 days
  • Disclosed after 27 days

Hey guys,

TL;DR: Reflected XSS on websummit.net/attendees/featured-attendees as the q parameter is directly reflecting special characters in the data-url on the handlebars template section of the page, as opposed to URL encoding them.

Proof of Concept: Visit https://websummit.net/attendees/featured-attendees?q=rubyoob%27%3E%3Ciframe/onload=alert(document.domain)%3E%3C/iframe%3E. I've tested this on all modern browsers (latest Chrome, Firefox and Edge).

Mitigation: To mitigate this issue, I'd recommend URL encoding special characters when creating the data-url parameter server-side.

At the moment, visiting my proof of concept would generate HTML like: <script id="fa-list" class='api-json' data-target='#attendees' data-url='https://api.cilabs.net/v1/conferences/ws16/info/attendees?limit=25&q=rubyoob'><iframe/onload=alert(document.domain)></iframe>,' type='text/x-handlebars-template' data-page="1">

It should be generating something similar to: <script id="fa-list" class='api-json' data-target='#attendees' data-url='https://api.cilabs.net/v1/conferences/ws16/info/attendees?limit=25&q=rubyoob%27%3E%3Ciframe%2Fonload%3Dalert(document.domain)%3E%3C%2Fiframe%3E,' type='text/x-handlebars-template' data-page="1">

This would allow all API requests to go through without interruption and stop attackers from executing arbitrary javascript on the page.

Cheers, @rubyroobs

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

Root cause

Likely the server built the data-url attribute by concatenating the raw q value without HTML-encoding it, letting a quote close the attribute and inject new markup.

Impact

An attacker could run arbitrary JavaScript in a victim's browser on the websummit.net domain, though the report only demonstrates an alert and does not show theft of data or sessions.

What the attacker needed

Victim clicks a crafted link

The fix

The server should URL-encode special characters when building the data-url parameter so the value stays inside the attribute.

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.

A web page can build part of itself from what you type in a search box. Here the site pasted the search text into the page's HTML without cleaning it, so text containing quote marks and tags could add new HTML elements. Because the added element runs code when it loads, a crafted link makes the visitor's browser run the attacker's script as if the site itself had written it.

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 rubyroobs

View all

2 more disclosed reports, best first.

More from WebSummit

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.