Summary
OpenEMR contains missing authorization checks in several workflows, allowing authenticated Front Office users to perform actions beyond their assigned permissions. If they can access the affected endpoints and reuse their session CSRF token, they may change immunizations or encounter billing data and invoke the billing processor.
Affected context
The vulnerability affects OpenEMR versions before 8.5.0 in immunizations.php, diagnosis_full.php, and billing_process.php. In affected deployments, ACL checks are missing or insufficient for actions that authenticated Front Office users can reach through these workflows.
Exploit preconditions
- Attack surface: The affected OpenEMR endpoints and workflows
- Required access: An authenticated Front Office account with a valid session
- Trigger point: Requests to add or delete immunizations, write encounter billing codes, or invoke the billing processor
- Why exploitation is possible: The relevant actions do not consistently enforce ACL permissions; an authenticated user can reuse their session CSRF token when making requests
Why this happens
The underlying issue is missing or incomplete server-side authorization enforcement. CWE-862 describes cases where an application fails to verify that a user is permitted to perform a requested action. Authentication and possession of a valid session token do not establish authorization for every operation; each sensitive action must be checked against the user's permissions.
Potential impact
- Users may add or delete immunization records without the required permissions.
- Users may write encounter billing codes outside their authorized role.
- Users may invoke billing processing without appropriate authorization.
- Clinical and financial records may be altered, potentially affecting downstream workflows.
General mitigation guidance
Defensive approaches focus on enforcing authorization at the server for every sensitive action, regardless of how a request is initiated.
- Apply centralized, deny-by-default permission checks to each affected operation.
- Derive authorization decisions from the authenticated user's role and the specific resource or action.
- Treat CSRF protections as separate from authorization; a valid CSRF token should not grant access to an otherwise restricted action.
- Minimize account privileges and limit access to clinical and billing functions by role.
- Keep authorization logic consistent across user interfaces, handlers, and background processing paths.
How teams detect issues like this
Review endpoint handlers and related service methods for sensitive operations that do not perform server-side ACL checks. Static analysis and code review can look for state-changing routes whose authorization checks are absent, inconsistent, or applied only in the user interface. Test role-based access policies by verifying that low-privileged accounts are denied restricted actions, and monitor audit logs for unexpected immunization or billing changes. Automated review tools may help identify routes that lack explicit authorization enforcement.

