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 vulnerabilities #86

Open
l2dy opened this issue Sep 29, 2020 · 0 comments
Open

SQL injection vulnerabilities #86

l2dy opened this issue Sep 29, 2020 · 0 comments
Assignees

Comments

@l2dy
Copy link

l2dy commented Sep 29, 2020

e.g. $_GET['table'] is concatenated into a SQL query verbatim.

$user_table = $_GET['table'];
$alias_username=$_POST['alias_username'];
$alias_domain=$_POST['alias_domain'];
$username = $_POST['username'];
$domain= $_POST['domain'];
if ($alias_username=="" || $alias_domain=="" || $username=="" || $domain=="") {
$errors = "Invalid data, the entry was not modified in the database";
} else {
$sql = "SELECT count(*) FROM ".$user_table." WHERE alias_username=? AND alias_domain=? AND id!=?";

@bogdan-iancu bogdan-iancu self-assigned this Sep 29, 2020
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