T04 · Embedded Malicious Code
- Location
test-email.js:24- Finding
Hard-Coded Subscription Credential Is Sent to Fixed Email Recipients
- Content
View full analysis
{ ``` The repair script invokes this mail-delivery script automatically after SMTP verification: ```bash if [ $? -eq 0 ]; then echo "" echo "✅ SMTP 配置正确!" echo "" echo "📧 测试发送邮件..." node test-email.js ``` ### Technical Analysis The diagnostic workflow embeds a live-looking Remnawave subscription URL directly in an outgoing email and sends it to fixed recipients. Based on the surrounding project behavior, subscription URLs are access-bearing values used to retrieve VPN configuration. They should therefore be handled as secrets. SMTP connectivity can already be checked with `transporter.verify()`. Sending a real message containing an access-bearing URL is unnecessary for the stated repair operation. The recipient and copied recipient are not supplied or confirmed by the operator. ### Attack Path 1. An operator configures valid SMTP credentials through `setup.js`. 2. The operator follows the documented SMTP repair process and runs `fix-zoho-smtp.sh`. 3. The script verifies the SMTP connection. 4. When verification succeeds, the script automatically executes `node test-email.js`. 5. `test-email.js` authenticates with the ...[truncated 698 chars]- Remediation
View remediation
