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

tramyardg-hotel-mgmt-system of version2022.4 has a SQL injection vulnerability #21

Closed
youyou-pm10 opened this issue Dec 28, 2022 · 1 comment
Assignees

Comments

@youyou-pm10
Copy link

List of Vulnerable path

Vulnerable path /app/dao/CustomerDAO.php
Vulnerable path /app/handlers/CustomerHandler.php
Vulnerable path /app/process_update_profile.php
Lines 49-59 of the "CustomerDAO.php" file splice the sql word,so bypass the PDO.
sql.png
Line 98 of the "CustomerHandler.php" use the vulnerable function.
sql2.png
Lines 31-40 of the "process_update_profile.php" use the vulnerable function.
sql3.png

Vulnerability exploitation process:

After the user logged in, click the button "update proflie".
log1.png
Then input the poc and click "update".
log2.png
After that,refresh it and click "update profile",you can see the data from database.
log3.png

POC code:

youyou",password = "", phone = concat(database(),version()) WHERE `customer`.`cid`="10"#
@tramyardg tramyardg self-assigned this Feb 26, 2023
tramyardg added a commit that referenced this issue Feb 26, 2023
@tramyardg
Copy link
Owner

Three things are done to address this issue:

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

No branches or pull requests

2 participants