Skip to content

Commit

Permalink
Inclusion of user-agent and client address on back-end shell argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Nov 13, 2024
1 parent 0d9d219 commit c494a49
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions api/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,13 @@
return;
}

array_push($args, $username, $password);
array_push(
$args,
$username,
$password,
base64_encode($_SERVER['HTTP_USER_AGENT']),
$_SERVER['REMOTE_ADDR']
);
break;

case "auth_login_email":
Expand All @@ -346,7 +352,13 @@
return;
}

array_push($args, $email, $password);
array_push(
$args,
$email,
$password,
base64_encode($_SERVER['HTTP_USER_AGENT']),
$_SERVER['REMOTE_ADDR']
);
break;

case "auth_fetch_all":
Expand Down

0 comments on commit c494a49

Please sign in to comment.