A remote code execution (RCE) vulnerability was discovered in the htmlformentry (aka HTML Form Entry) module before 3.11.0 for OpenMRS. By leveraging path traversal, a malicious Velocity Template Language file could be written to a directory. This file could then be accessed and executed.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Link | Tags |
---|---|
https://github.com/openmrs/openmrs-module-htmlformentry/pull/178 | third party advisory patch |
https://issues.openmrs.org/browse/HTML-730 | vendor advisory |
https://github.com/openmrs/openmrs-module-uiframework/pull/59 | third party advisory patch |
https://www.contrastsecurity.com/security-influencers | third party advisory |
https://www.contrastsecurity.com/security-influencers/authenticated-remote-code-execution-openmrs | third party advisory exploit |