Skip to content
New issue

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

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

Already on GitHub? # to your account

Unauthorized adding patient in add_patient.php #6

Open
xunyang1 opened this issue Dec 23, 2021 · 0 comments
Open

Unauthorized adding patient in add_patient.php #6

xunyang1 opened this issue Dec 23, 2021 · 0 comments

Comments

@xunyang1
Copy link

Version: 1.0
No login is required
Steps to reproduce
1.Send the data packet as shown,You can see that there is no cookie.
image
2.After logging in, I found that the addition was successful
image
Source code review
add_patient.php line13
image
Enter the noAccessIfNotLoggedIn function
image
The problem is that although the redirection is made, exit() is not executed, causeing to continue to execute the code below.
image
Succeeded in adding patient without authorization

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

No branches or pull requests

1 participant