Accounting User Can Download Patient Reports in openemr in openemr/openemr


Reported on

Mar 11th 2022

Vulnerability Type

Insecure Direct Object Reference

Affected URL


Affected Parameters


Authentication Required?


Issue Summary

Non-privilege users (accounting & front-office) can download patient reports containing medical reports and documents by sending a request to a vulnerable end-point. There is no Access Control enforced, therefore, any authenticated user of OpenEMR can download patient records by just tampering the “Issue_7” parameter to any valid number. By incrementing this value, an unauthorized user can download patient records.


Implement ACL check to ensure that only authorized users of OpenEMR system are able to download patient documents from the vulnerable end-point.


Aden Yap Chuen Zhen ( Rizan, Sheikh ( Ali Radzali

Issue Reproduction

Login to OpenEMR as Admin and capture the POST request to the following end-point:


In Burp, the HTTP POST request, cookie “OpenEMR” & parameter “issue_7” can be tampered.

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 155
Connection: close
Cookie: OpenEMR=E6toaL3R-180fA2-MIw80a-G7PJPCapZxrTYIzY%2Cofj5CXEG
Upgrade-Insecure-Requests: 1

Replace the “OpenEMR” Cookie with Accountant Cookie and increment the “issue_7” parameter to any valid number eg “issue_7=/15/” to access patient documents.

We are processing your report and will contact the openemr team within 24 hours. 2 years ago
r00t.pgp modified the report
2 years ago
r00t.pgp modified the report
2 years ago
We have contacted a member of the openemr team and are waiting to hear back 2 years ago
We have sent a follow up to the openemr team. We will try again in 4 days. 2 years ago
openemr/openemr maintainer validated this vulnerability 2 years ago
r00tpgp has been awarded the disclosure bounty
The fix bounty is now up for grabs
openemr/openemr maintainer
2 years ago


This has been fixed in master and rel-610 branches and will be in OpenEMR's next production release (6.1.0).

openemr/openemr maintainer
2 years ago


OpenEMR 6.1.0 was released, today which fixes this issue.

openemr/openemr maintainer marked this as fixed in 6.1.0 with commit a2e918 2 years ago
The fix bounty has been dropped
2 years ago


Hi, Kindly issue a CVE for this vulnerability. Tq

2 years ago


Dear @admin i've already ping the maintainer, could you please follow up on the CVE creation? Tq

Dear @maintainer, could you kindly confirm that CVE can be created for this report? Tq

openemr/openemr maintainer
2 years ago


Hi, I consent to creation of CVE.

Jamie Slome
2 years ago

Sorted 👍

to join this conversation