Summary
OpenEMR's patient tracker endpoint may allow a low-privilege authenticated user to change tracker entries belonging to other patients by supplying a tracker ID they are not authorized to access. With a valid CSRF token, the request could alter patient-flow status, room assignments, and linked appointment state.
Affected context
The issue occurs in patient_tracker_status.php when a request updates a tracker entry based on a supplied tracker_id. Deployments are at risk when the endpoint does not verify that the authenticated user is authorized to modify the specific patient record associated with that ID.
Exploit preconditions
- Attack surface: The patient tracker status update endpoint
- Required access: A low-privilege authenticated account and a valid CSRF token
- Trigger point: A request containing
statustype,roomnum, and atracker_id - Why exploitation is possible: The supplied identifier may be accepted without an adequate authorization check for the corresponding patient or tracker entry
Why this happens
The endpoint's authorization logic may not bind the requested tracker entry to the user's permitted patient records. Trusting a caller-supplied tracker_id without checking access to the associated object is an improper authorization pattern, mapping to CWE-285: Improper Authorization.
Potential impact
- An attacker could change another patient's flow status or room assignment.
- Linked calendar appointment state may be altered.
- Staff could be presented with inaccurate patient-tracking information.
- Changes could disrupt clinical workflows or undermine data integrity.
General mitigation guidance
Defensive patterns include enforcing authorization on every tracker update and checking access to the specific patient-linked object, rather than relying on the supplied identifier or the user's general access to the application. Treat request parameters as untrusted, use secure-by-default access-control checks, and limit account privileges to the minimum required. CSRF protection can help prevent cross-site request forgery, but it does not replace object-level authorization.
How teams detect issues like this
Review tracker update handlers for authorization checks that bind the authenticated user to the requested patient and tracker record. Static analysis and code review can flag direct use of request-supplied object identifiers in data updates without nearby access-control enforcement. Runtime policies and audit monitoring can identify updates to records outside a user's permitted scope; automated review tools may help surface missing authorization checks.

