Summary
OpenEMR endpoints for reports and reminders lack authorization checks, allowing authenticated low-privilege users to access functions beyond their intended permissions. Depending on the endpoint, this could expose patient information, send unauthorized reminders, or trigger batch reminder processing.
Affected context
The issue affects OpenEMR deployments before 8.5.0 where the listed endpoints are reachable and do not enforce the required access-control checks. The affected endpoints include patient_list.php, amc_full_report.php, dated_reminders_add.php, and batch_reminders.php.
Exploit preconditions
- Attack surface: OpenEMR report and reminder endpoints
- Required access: An authenticated account with low privileges
- Trigger point: A direct request to an affected endpoint
- Why exploitation is possible: The endpoints lack the expected authorization checks, so requests may be processed without verifying that the user is permitted to perform the requested action.
Why this happens
The underlying issue is missing authorization enforcement, mapped to CWE-862: Missing Authorization. An endpoint performs a sensitive operation without checking the authenticated user's permissions for that specific operation. Authentication alone does not establish that a user is authorized to access a report or process reminders.
Potential impact
- Patient information may be exposed through report endpoints.
- Unauthorized reminders could be sent.
- Batch reminder processing could be triggered without appropriate permission.
- Privacy, operational, or compliance impacts may result.
General mitigation guidance
Common defensive patterns include:
- Enforcing server-side authorization checks on every sensitive endpoint and action.
- Applying least-privilege access rules to reports, reminder creation, and batch processing.
- Denying access by default when permissions are absent or cannot be verified.
- Treating endpoint parameters and client-side navigation as untrusted; neither should substitute for authorization.
- Reviewing related endpoints for consistent access-control enforcement.
How teams detect issues like this
- Use static analysis or code review to identify sensitive routes and handlers without authorization checks.
- Review endpoint-level permission logic, including direct access paths that bypass menus or user-interface controls.
- Test role-based access policies to confirm that low-privilege accounts cannot invoke restricted reports or reminder operations.
- Apply policy checks in CI or security review workflows to require authorization coverage for sensitive endpoints.

