Improper certificate validation occurs within `utils/email utils.py` and `utils/email debug.py`, which disables TLS hostname and certificate checks for STARTTLS and SMTPS. This allows network-positioned attackers to use forged certificates to intercept SMTP credentials and subsequent email traffic, such as password-reset links.