Technical impact
OpenEMR versions before 8.3.0 contain an insecure direct object reference in the file portal/lib/paylib.php. The script writes the request‑supplied form_pid value, or the patient_id_cc from Sphere data, directly to onsite_portal_activity without verifying that it matches the ID of the authenticated patient. Because of this oversight, authenticated portal users can submit portal‑save, review‑save, AuthorizeNet, Stripe, or Sphere requests that create or modify payment‑audit records owned by other patients. The consequence is a loss of data integrity and the potential for financial fraud, as an attacker can alter billing records of unrelated patients.
Affected Systems
OpenEMR before 8.3.0 is affected. All releases of the OpenEMR portal before 8.3.0 contain the vulnerable file portal/lib/paylib.php and are listed as impacted.
Risk and Exploitability
The CVSS score of 7.1 indicates a high severity vulnerability that could be leveraged by authenticated users. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog, so current exploitation frequency is unknown. However, because the attack requires only legitimate portal authentication, an attacker who obtains a patient’s credentials could submit forged payment requests and modify other patients’ billing records. The lack of an EPSS score makes precise probability assessment difficult, but the high CVSS suggests the potential impact is serious.