T09 · Insecure Skill Coding Practices
- Location
gmail_monitor.py:226- Finding
Keyword Filtering Does Not Prevent Transmission of Unmatched Emails
- Content
View full analysis
New Email\n" f"From: {sender}\n" f"Subject: {subject}\n" f"Time: {timestamp}\n" ) if snippet: msg += f"\n{snippet[:200]}...\n" ``` ### Technical Analysis The keyword check only determines whether an email is starred and how its alert is labeled. Regardless of the value of `important`, every fetched unseen message is appended to `new_emails`. `run_once()` subsequently sends every entry in that list to Telegram. Consequently, sender details, subject lines, timestamps, and up to 200 characters of message-body content are transmitted to `api.telegram.org` even when an email does not match any configured keyword. This exceeds the minimum data transmission necessary for the documented keyword-filtered lead-monitoring function. The project documentation describe ...[truncated 1635 chars]- Remediation
View remediation
