Description
OpenEMR is a free and open source electronic health records and medical practice management application. Prior to 8.0.0.2, the encounter vitals API accepts an `id` in the request body and treats it as an UPDATE. There is no verification that the vital belongs to the current patient or encounter. An authenticated user with encounters/notes permission can overwrite any patient's vitals by supplying another patient's vital `id`, leading to medical record tampering. Version 8.0.0.2 fixes the issue.
Problem types
CWE-639: Authorization Bypass Through User-Controlled Key
Product status
References
github.com/...penemr/security/advisories/GHSA-mv9m-j65p-g55f
github.com/...ommit/c3a47c37619cdb4f0aaa168e39a93ab1d106429c