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.
- Log into your account
- Open the template builder https://%your_domain%.drchrono.com/clinical/advanced_form_builder
- Create a new template with a field called <svg onload=alert(document.domain)>
- 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