server icon indicating copy to clipboard operation
server copied to clipboard

Some invalid emails are being accepted when registering

Open Areedtz opened this issue 5 years ago • 2 comments

Describe the Bug

Some invalid emails are being accepted when registering. It's possible to register with an address like Email Example <[email protected]>, where it still is possible to send emails to the address.

However, it's also possible to register with an address like <p>test</p> <[email protected]>. The server isn't able to actually send emails to that even though the user is registered successfully.

Steps To Reproduce

  1. HTTP POST to /api/accounts/register with "email": "<p>test</p> <[email protected]>"

Expected Result

Endpoint returns a "400 Bad Request"

Actual Result

Endpoint returns a "200 Success"

Environment

  • Operating system: Kali 2021.2 (running in Windows Subsystem for Linux)
  • Build Version: 1.40.0
  • Self Hosted: true
  • Environment: Docker
  • Hardware: Ryzen 7 5800X, 32 GB ram

Additional Context

Found this bug while running a fuzzer locally.

Areedtz avatar May 29 '21 12:05 Areedtz

I was not able to reproduce it from web.

image

panna-ahmed avatar Nov 08 '21 09:11 panna-ahmed

We've increased our email address validation on the server and this should no longer be possible. Thank you @panna-ahmed for confirming.

eliykat avatar Nov 09 '21 01:11 eliykat