pterodactyl / whmcs

WHMCS Module for Pterodactyl (v0.7.3 and higher)
MIT License
185 stars 77 forks source link

Server can be created on the wrong user #151

Open hwalker928 opened 3 months ago

hwalker928 commented 3 months ago

The issue lies with the filter present here: https://github.com/pterodactyl/whmcs/blob/master/pterodactyl/pterodactyl.php#L310

If the user's email ends with something that an existing user's email is, then the server is created on the other client's account.

For example, a new client with the email "example@gmail.com" would get their service created on the existing user who has the email "myexample@gmail.com".