Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trunk 3940 xss in concepts #451

Merged

Conversation

MrMarvin
Copy link
Contributor

This bunch of commits should fix TRUNK-3949 and a lot more XSS vulnerabilities altogether.

  • Adds some c:out tags around String type attributes of Concept and related models
  • adds implicit HTML escaping for openmrs:format method for concepts + a new unit test for that
  • enables global html escaping for JSPs. This wasn't done before because it used to break a lot of on-purpose html outputs. However, these uses have been modified to be excepted by specifying htmlEscape="false".

To be honest, I am not 100% sure if this does not influence someone else code in non-core modules but personally I think the white-listing vs. try-to-blacklist-everythingis the right way to go, especially from a security point of view!

Marv Cool added 23 commits November 15, 2013 23:39
wraps usage of multiple concept and drug related attributes
in <c:out ...> tags
dkayiwa added a commit that referenced this pull request Nov 18, 2013
@dkayiwa dkayiwa merged commit d31a7df into openmrs:master Nov 18, 2013
RandilaP pushed a commit to RandilaP/openmrs-core that referenced this pull request Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants