Add several staff-write checks
fix(acl): add several staff-write checks (#13353)
Add several staff-write checks312b5d-fix-add-several-staff-write-checks-cve-2026-102940fixadd several staff write checks acl
Committed by bradymiller
commit message
fix(acl): add several staff-write checks (#13353)
Adds missing checks and ownership scoping across a handful of
staff-write endpoints.
- `interface/billing/sl_eob_invoice.php`,
`interface/billing/sl_eob_patient_note.php`: add `acct/eob` write-mode
guard matching the sibling `sl_eob_search.php` gate.
- `library/ajax/upload.php`: gate the DICOM state save/fetch actions on
`patients/docs` (view for fetch, `write|addonly` for save) and verify
the target document belongs to a category the caller can access.
- `library/classes/Controller.class.php`: register the classic
`document` controller in `CONTROLLER_ACL_MAP` so the base dispatcher
enforces `patients/docs` before routing.
- `controllers/C_Document.class.php`: require `patients/docs`
`write|addonly` plus source-document accessibility in
`move_action_process` before any mutation; `retrieve_action` no longer
bypasses the `patient_id` binding check when the caller passes an empty
`patient_id`. Internal callers that set `returnRetrieveKey` (Zend
Documents plugin, patient-picture, custom_report) remain unaffected.
- `interface/modules/custom_modules/oe-module-prior-authorizations`: add
`patients/docs` guards on the report and create/update entry points, and
change `AuthorizationService::storeAuthorizationInfo` to scope its
UPDATE by (`id AND pid`) so a row can only be modified from a session on
its owning patient.
- `.phpstan/baseline/argument.type.php`: reduce one baseline count in
`C_Document.class.php` since `move_action_process` now casts explicitly.
---------
Co-authored-by: Michael A. Smith <[email protected]>Editor assessment
This commit patches CVE-2026-102940. A thorough inventory message. The body lists each staff-write endpoint with the ACL it now requires: write-mode guards on the EOB billing screens, DICOM state actions gated on patients/docs with write or addonly, the classic document controller registered in the ACL map, move_action_process requiring source accessibility, and an UPDATE scoped by id and pid. It also explains the empty patient_id bypass that retrieve_action no longer allows. The PR number in the subject is the only clutter.