gg2001 / EmailBot

Discord bot for verifying the email domain of server members
https://github.com/gg2001/EmailBot
GNU General Public License v3.0
46 stars 33 forks source link

Fixed bug #7

Closed gerbsec closed 1 year ago

gerbsec commented 2 years ago

So, as it is right now you are able to verify a user by bypassing the domain name restriction. As it tells user to verify you are able to simply bypass the @ split by using something like this:

Allowed domain: test.edu Exploit:

"test@test.edu@"@mydomain.com

this input will bypass the test and all I have to do is run a nc listener on port 25 in a vps and I'll receive the connection with the code and verify. Fixed the issue using two methods, you can choose which one to implement.