HexBrain

drchrono · Report #141198

Template stored XSS

Validstatus
5upvotes
21 Jul 2016disclosed

How it was found

The template filed names are not escaped properly, which gives an opportunity to inject HTML tags with javascript there.

  1. Log into your account
  2. Open the template builder https://%your_domain%.drchrono.com/clinical/advanced_form_builder
  3. Create a new template with a field called <svg onload=alert(document.domain)>
  4. Save the template and share it to the library

I created one such template as a proof of concept:

https://www.drchrono.com/medical-forms/1460752/aaabbbcccdddeee

The script can also be executed at the search page by onmouseover event:

https://www.drchrono.com/medical-forms/?query=aaa%22bbb%27ccc%3Cddd%3Eeee

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original