Intent-Code Divergence
Medium
- Confidence
- 97% confidence
- Finding
- The script catches SMTPAuthenticationError and then silently proceeds to send the message anyway, which can result in unauthorized unauthenticated relay attempts on trusted/internal mail servers. This is dangerous because it masks authentication failures, can enable spoofed sending from arbitrary from_addr values, and misleads operators into believing credentialed delivery succeeded when server policy may have been bypassed.
