T09 · Insecure Skill Coding Practices
- Location
scripts/translator.py:55- Finding
Customer Email Content Is Sent to a Third-Party Translation Service by Default
- Content
View full analysis
Vulnerability Details
File Location:
config/config.py:61-67;scripts/translator.py:55-58
Vulnerability Type: Unrestricted disclosure of sensitive email content to an external service
Risk Level: HighVulnerable Code
config/config.py:61-67:python TRANSLATION_CONFIG = { 'enabled': True, # Enable auto translation / Whether translation is enabled 'default_target_lang': 'zh-CN', # Target language # Translation engine: 'google_free' (free Google Translate), 'baidu' (Baidu Translate requires API), 'none' (disable) 'engine': 'google_free',scripts/translator.py:55-58:python if self.engine == 'google_free' and self.translator: try: result = self.translator.translate(text, dest=self.target_lang) return result.text, TrueTechnical Analysis
External translation is enabled in the default configuration. When an email is classified as being in a non-target language, its complete body is passed to the
googletransclient. This operation sends customer-controlled and potentially confidential correspondence to an external translation provider.Email inquiries can contain names, email addresses, telephone numbers, delivery addresses, product designs, pricing expectations, order details, or other commercially sensitive information. The implementation performs no redaction, field-level filtering, consent check, data classification, or destination allowlisting before transmission.
Translation is part of the declared functionality, but automatically disclosing complete email bodies to an external provider exceeds the minimum privilege necessary when a local translator, approved enterprise provider, or explicit opt-in could be used. The documentation mentions translation APIs but does not adequately warn that complete customer correspondence may leave the local environment.
Attack Path
- Trans ...[truncated 997 chars]
- Remediation
View remediation
Remediation Suggestions
- Disable third-party translation by default:
python 'enabled': False, 'engine': 'none', - Require explicit administrator opt-in before sending any email content externally.
- Display a clear disclosure identifying the translation provider, data transmitted, purpose, and applicable retention policy.
- Redact email addresses, telephone numbers, physical addresses, identifiers, signatures, and other sensitive fields before translation.
- Prefer an approved enterprise API with contractual data-processing controls or a locally hosted translation engine.
- Add configurable destination allowlisting and prevent fallback to unapproved providers.
- Record only minimal audit metadata rather than email content, and never log translated requests or provider responses containing sensitive data.
- Add tests confirming that disabled translation causes no external network request.
- Disable third-party translation by default:
