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 in lgin.htm #4

Closed
Ali-Albakara opened this issue Sep 19, 2017 · 4 comments
Closed

SQL Injection in lgin.htm #4

Ali-Albakara opened this issue Sep 19, 2017 · 4 comments
Assignees
Labels

Comments

@Ali-Albakara
Copy link

As lgin.htm tries to grab the user's IP, it prioritizes HTTP_X_FORWARDED_FOR before REMOTE_ADDR. REMOTE_ADDR can be trusted not to be manipulated by the user however HTTP_X_FORWARDED_FOR is very easily manipulated. It needs validation of being a valid IP address. Look into filter_var()

@Ali-Albakara
Copy link
Author

Same issue is present in reg.html

@Ali-Albakara
Copy link
Author

More SQL Injection in reg.html

$sql = "INSERT INTO accounts(username,email,password,regip,reghash) VALUES('".$_REQUEST['username']."', '".$_REQUEST['email']."', '$encpass', '$ip', '$reghash')";

$_REQUEST['username'] is not sanitized nor validated

@booth-f
Copy link
Owner

booth-f commented Sep 20, 2017

Status Update: Fixed in dev source (Awaiting Push)

@booth-f
Copy link
Owner

booth-f commented Jun 1, 2018

A CVE was assigned for this issue:
CVE-2017-1000444

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

No branches or pull requests

2 participants