-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[imaging_browser] Escape the header table in view session page #7552
[imaging_browser] Escape the header table in view session page #7552
Conversation
The header table in the imaging_browser viewSession page is generated by smarty, but the variables are not properly escaped. This adds the `|escape` filter to all the outputs to fix reflected XSS attacks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't, DoB/Sex/QC Status/Visit Label/etc shouldn't have any HTML in them, but I'll wait for confirmation before merging.. |
Looks good I agree with @driusan, there shouldn't be any HTML in these vars. Curious to know however what would happen if there is a special character in any of the variables ( Is there an example on RB somewhere of the outputType being set? I'm not familiar where that comes from and would be interested in testing that aspect based on this comment:
|
The outputType comes from the URL, that's why this is a security problem that needs to be fixed. |
@driusan yes, but from what I've seen outputType in the header table is always empty. In what case is a value actually displayed from the URL? What does it correspond to ? |
NVM, realized if you choose anything other than |
The header table in the imaging_browser viewSession page is generated
by smarty, but the variables are not properly escaped. This adds the
|escape
filter to all the outputs to fix reflected XSS attacks on that page.(In particular, the outputType which comes from the URL, but all variables
are HTML escaped in this PR just to be on the safe side.)