Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: OpenEMR logs sensitive field - payment reference number #7340

Closed
jubittajohn opened this issue Apr 11, 2024 · 0 comments · Fixed by #7341
Closed

bug: OpenEMR logs sensitive field - payment reference number #7340

jubittajohn opened this issue Apr 11, 2024 · 0 comments · Fixed by #7341
Milestone

Comments

@jubittajohn
Copy link
Contributor

Describe the bug

ASVS: 7.1.1 (Verify that the application does not log credentials or payment details. Session tokens should only be stored in logs in an irreversible, hashed form).
CWE: 532 (Insertion of Sensitive Information into Log File).

The OpenEMR logs check number(sensitive payment detail) when a new "Batch Payment Entry" is made, under the Category ="other" and Event ="other-insert".

To Reproduce

Steps to reproduce the behavior:

  1. Login to OpenEMR using the admin credentials
  2. Navigate to Fees → Batch payments to make a “Batch Payment Entry”
  3. Put the “Date” as the previous date, “Post to date” as current date, “Payment Method” as Check Payment, “Check number” as “123456789”, “Payment Amount” as 100.
  4. Use the default default values for “Paying entity” and “Payment category”
  5. Put the “Payment From” as a user in the system, and click on the “Save changes” button.
  6. Click “OK” on the confirmation and allocation pop-ups.
  7. Navigate to Admin → System → Logs and click on Submit to view the logs.
  8. Check for the log under Category = “other” and Event = “other-insert”.
log-sensitive-payment-detail-before-fix

Expected behavior

The “check number” and other payment details should not be displayed(or masked) in the log

Client configuration

  • Browser: Version 122.0.6261.129 (Official Build) (arm64)
  • OpenEMR version: v7.0.2
  • Operating system: MacOS
@adunsulag adunsulag added this to the 7.0.2.1 milestone Apr 23, 2024
@adunsulag adunsulag changed the title Bug: OpenEMR logs sensitive information such as payment details bug: OpenEMR logs sensitive field - payment reference number May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants