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

Any File format can be uploaded on the Patient ID Card #1428

Open
Gicheha opened this issue Mar 10, 2019 · 13 comments
Open

Any File format can be uploaded on the Patient ID Card #1428

Gicheha opened this issue Mar 10, 2019 · 13 comments
Labels

Comments

@Gicheha
Copy link
Contributor

Gicheha commented Mar 10, 2019

A) Your outreachy username : gicheha

B) Issue title : Patient ID card can be updated using executable files and scripts

C) Site affected: The patient site, on the documents section

D) Bug report date : March 10, 2019

E) OS/ browser used: Windows/Chrome

F) Which workflow module in LHEHR : “Documents” under “Patient”.

G) Steps to reproduce the bug :
●Select the Patient/Client menu item and select the finder option.
● Select a patient or search for one using the search fields.
● Once a patient is selected, select the summary option on the patients menu.
● On the summary screen, select the documents tab.
● Select patient information
● Select Patient ID card
● Choose the file to upload then click on the upload button

H) At point of bug, the expected behavior : Files of undesired format should be rejected and a prompt shown to advise the user on the appropriate file format.

I) Details of what actually happened : There was no prompt or alert box for the invalid
information, whereas the PHP errors and warnings were displayed on the screen.

J) Provide relevant screenshots :
Patient ID card file upload
excecutable_file

k) Estimated bug Severity : The bug is critical as it is a security flaw

@muarachmann
Copy link
Member

muarachmann commented Mar 10, 2019 via email

@Gicheha
Copy link
Contributor Author

Gicheha commented Mar 10, 2019

Thanks...I am on it

@Gicheha
Copy link
Contributor Author

Gicheha commented Mar 11, 2019

@muarachmann Kindly assist with the location of the affected files, I have only managed to find the PHP script for uploading the Profile photo...the file explorer page is Javascript generated making it a bit tricky to trace the files...Thanks in advance

@muarachmann
Copy link
Member

@Gicheha what files have you found?

@Gicheha
Copy link
Contributor Author

Gicheha commented Mar 12, 2019

@muarachmann I think we are not getting each other...I mean the files containing the code that uploads the patient docs, those are the files I cannot get

@muarachmann
Copy link
Member

@aethelwulffe could you please help here thanks

@muarachmann muarachmann added outreachy For outreachy issues and bug hunts Feature: Patient Demographics labels Mar 12, 2019
@aethelwulffe
Copy link
Contributor

I will try to hunt them down. A good little project would be to gather up all the functions and put them in a monolithic feature directory under /modules. I think that this still uses the old document tree asset.

@aethelwulffe
Copy link
Contributor

LibreEHR\controllers\C_Document.class.php:

@aethelwulffe
Copy link
Contributor

LibreEHR\interface\patient_file\upload_dialog.php
LibreEHR\library\classes\Document.class.php:

@Gicheha
Copy link
Contributor Author

Gicheha commented Mar 12, 2019

@aethelwulffe @muarachmann thanks a lot checking it out

@aethelwulffe
Copy link
Contributor

I think under interface/patient_file/summary and other places, but these file names will get you everywhere you need to get to.

@GH-aditya
Copy link

I want to contribute

@muarachmann
Copy link
Member

hI @GH-aditya we are actually porting to Laravel here https://github.com/LibreHealthIO/lh-ehr-laravel. Please go through this and ping me if you have any issues LibreHealthIO/lh-ehr-laravel#27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants