Security vulnerabilities

  • Status Closed
  • Assigned To
    cbay
  • Private
Attached to Project: Security vulnerabilities
Opened by 0xasuma - 01.12.2026
Last edited by cbay - 01.12.2026

FS#572 - [SECURITY] Authenticated sender spoofing with platform DKIM + .git exposure

Researcher: 0xasuma
Date: 2026-12-01

Two issues. Both reproduced end to end using only accounts I registered myself
(bcoilab26, bcoilab27). No third-party data was read. Every state change was reverted.

F-01 - Any customer can send mail as admin@alwaysdata.com, and alwaysdata

     DKIM-signs it

1. SUMMARY

The authenticated submission service accepts a sender address on alwaysdata's own staff
domain from any customer, adds alwaysdata's DKIM signature (d=alwaysdata.net), and delivers
the message to other customers' INBOX. alwaysdata's own content filter detects the policy
violation and still delivers.

Related to  FS#569 , which was closed as Invalid. That call is consistent for what 569 actually
tested: the unauthenticated relay leg, which I re-verified is now blocked (see section 5).
What 569 did not cover is the authenticated submission leg, which is what this report is
about. The sender check that exists compares against the literal string "alwaysdata.net"
only.

2. AFFECTED COMPONENT

Service : smtp-<account>.alwaysdata.net:465 (implicit TLS, submission)
Banner  : 220 smtpout1.paris1.alwaysdata.com ESMTP Exim 4.98.2
Requires: any valid mailbox credential of any customer account

SCOPE NOTE, STATED UP FRONT: the written scope lists ssh-[account], webdav-[account] and
ftp-[account].alwaysdata.net plus the four *.alwaysdata.com web hosts. The SMTP submission
host is not on that list. I am reporting it because  FS#558  (sender forgery on this same mail
infrastructure) was accepted and fixed, and  FS#569  was triaged on the same surface, so the
mail path is demonstrably in scope. If you consider this specific host out of scope, please
close it on that basis rather than on the technical claim - the behaviour below is
reproducible either way.

3. STEPS TO REPRODUCE

Two accounts are needed to show cross-customer delivery. With account A's mailbox
credentials:

$ openssl s_client -connect smtp-bcoilab26.alwaysdata.net:465 -quiet
220 smtpout1.paris1.alwaysdata.com ESMTP Exim 4.98.2
EHLO test
250-AUTH PLAIN LOGIN
AUTH LOGIN
334 VXNlcm5hbWU6
<base64 of A's mailbox address>
334 UGFzc3dvcmQ6
<base64 of A's mailbox password>
235 Authentication succeeded
MAIL FROM:<admin@alwaysdata.com>
250 OK
RCPT TO:<bcoilab27@alwaysdata.net>
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
From: Alwaysdata Support <admin@alwaysdata.com>
To: bcoilab27@alwaysdata.net
Subject: r19spoof
Date: Tue, 01 Dec 2026 11:25:36 +0100
test
.
250 OK id=1tXyZ9-0000000-AB

The message arrives in the second account's INBOX with these headers:

Return-Path: <admin@alwaysdata.com>
From: Alwaysdata Support <admin@alwaysdata.com>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alwaysdata.net; s=default; ...
X-alwaysdata-Spam-Report: 1.50 DMARC_POLICY_QUARANTINE [alwaysdata.com : No valid SPF,
    DKIM not aligned (strict), quarantine]
X-alwaysdata-Spam-Score: 2.08

Note the DKIM line: the platform signed a From domain the customer does not own.

4. OBSERVED VS EXPECTED

admin@alwaysdata.com          MAIL FROM 250 / DATA accepted -> delivered, DKIM d=alwaysdata.net
admin@mail.alwaysdata.net     MAIL FROM 250 / DATA accepted -> delivered, DKIM d=alwaysdata.net
admin@alwaysdata.net          MAIL FROM 250 / DATA 550      -> "You are not allowed to send
                                                                messages from this address"
admin@AlwaysData.Net          MAIL FROM 250 / DATA 550      -> rejected
admin@ALWAYSDATA.NET          MAIL FROM 250 / DATA 550      -> rejected
admin@alwaysdata.NEt          MAIL FROM 250 / DATA 550      -> rejected
admin@Alwaysdata.net          MAIL FROM 250 / DATA 550      -> rejected
ceo@example.org               MAIL FROM 250 / DATA accepted -> delivered (third-party
                                                                domain, expected for a mail host)

Expected: a customer may only submit mail for mailboxes it controls, and the platform must
not attach its own DKIM signature to a sender domain it owns on a customer's behalf.

Observed: the brand/staff domain is accepted and signed. Only the exact string
"alwaysdata.net" is refused.

5. NEGATIVE CONTROLS

  1. Unauthenticated relay 185.31.41.82:587, RCPT without AUTH →

550 relay not permitted: you must be authenticated to send messages.

  The FS#569 fix on the relay leg works.
- Literal alwaysdata.net at DATA -> 550. The check exists; it is just too narrow.
- Case variants of alwaysdata.net -> all 550. No trivial case bypass.

6. ROOT CAUSE

The  FS#569  fix performs an exact-string comparison on the sender domain. It does not compare
against the organizational boundary (registrable domain / DMARC alignment), so:

  1. alwaysdata.com - a different registrable domain, same brand - passes.
  2. *.alwaysdata.net - a subdomain of the protected domain - passes.

The submission service then signs whatever From it is given with the platform key
d=alwaysdata.net; s=default, which is what turns a permissive sender policy into a trust
signal.

7. IMPACT

A customer can send mail that appears to come from alwaysdata staff, carrying alwaysdata's
own DKIM signature, delivered to any other customer's INBOX. The platform's filter flags it
as a DMARC violation and delivers anyway.

Practical use: phishing or invoice fraud against alwaysdata customers, where the visible
sender is admin@alwaysdata.com and the message carries a valid platform signature.

8. RELATION TO EXISTING REPORTS

  1.  FS#558  and  FS#569  concern this same mail infrastructure and the same class (sender

forgery).  FS#558  was fixed.  FS#569  was closed as Invalid, and its relay-leg fix does

  hold - I confirmed it (section 5). The authenticated submission leg was not part of it.
- The fix I can observe closes the unauthenticated relay. The authenticated submission leg
  is untouched: admin@alwaysdata.com and subdomains are still accepted and signed.

If you treat this as the same issue rather than a new one, that is a fair call - but then the
fix is incomplete, because the same abuse still works through a different door.

9. SUGGESTED FIX

1. Validate the sender against the mailboxes and domains the authenticated account actually
   owns, not against a string blocklist.
2. Compare on the registrable domain, and treat the whole alwaysdata.net / alwaysdata.com
   tree as reserved - including subdomains.
3. Do not sign with d=alwaysdata.net when the From domain is not owned by the submitting
   account. If signing must happen, sign with the customer's own domain.
4. Treat DMARC_POLICY_QUARANTINE on customer mail as a reject at submission time, not as a
   score to record.

10. WHAT I AM NOT CLAIMING

  1. No mailbox takeover, no reading of anyone else's mail, no platform-side config change.
  2. No DMARC-bypass claim for the subdomain variant. Two runs of the same test disagreed

(score 3.13 with no DMARC flag, score 4.18 with the flag), so the outcome is not stable

  enough to claim. The stable facts are: accepted, signed with d=alwaysdata.net, delivered
  to another customer.
- No test against a recipient outside alwaysdata - the program restricts testing to
  accounts I own, and sending to a third party would break that.

11. TESTING NOTES

  1. Two accounts registered by me: bcoilab26 (user 529650) and bcoilab27 (user 529661).
  2. Test messages were sent from A to B only, and deleted from both mailboxes afterwards.
  3. A self-contained PoC (poc_f01_smtp_spoof.py) reproduces all six checks and exits 0.
Where to look in the PoC if you want to run or audit it:
  poc_f01_smtp_spoof.py:72    sub_send()  - opens the submission session and sends
  poc_f01_smtp_spoof.py:119   C1          - unauthenticated relay must be refused
  poc_f01_smtp_spoof.py:123   C2          - literal alwaysdata.net must be refused
  poc_f01_smtp_spoof.py:127   V1          - admin@alwaysdata.com must be accepted
  poc_f01_smtp_spoof.py:131   V2          - admin@mail.alwaysdata.net must be accepted
  poc_f01_smtp_spoof.py:140   V3          - message must arrive in B's INBOX, DKIM checked
  poc_f01_smtp_spoof.py:149   V4          - subdomain variant, score/flags recorded only
The two C checks are controls: they must PASS for the finding to mean anything. If either
of them ever starts failing, the platform changed and the finding should be re-evaluated.
Files accompanying this report:
  alwaysdata-report.txt        this text
  poc_f01_smtp_spoof.py.txt    the PoC, stdlib only, exits 0
  poc_run_output.txt           verbatim output of the run behind F-01
  evidence_f01_f02.json.txt    raw measurements: status codes, sizes, index entries,
                               assertion results, cleanup record
The .txt suffix on the code and JSON files is deliberate so mail filters leave them alone.
python3 runs poc_f01_smtp_spoof.py.txt as-is and json.load opens evidence_f01_f02.json.txt
as-is.

F-02 - .git directory exposed on security.alwaysdata.com

12. SUMMARY

The reporting platform serves its own .git metadata: HEAD, config (including the upstream
remote URL), index (942 tracked paths with sizes and blob hashes), packed-refs, and logs/HEAD
with a staff identity and deployment timestamps.

The repository itself cannot be reconstructed - loose objects return 404, the pack directory
returns 403, and info/refs?service=git-upload-pack returns 404. So this is metadata and
inventory disclosure, not source-code disclosure.

13. REPRODUCTION

curl -s -o /dev/null -w '%{http_code} %{size_download}\n' \
     https://security.alwaysdata.com/.git/HEAD
200 23
curl -s https://security.alwaysdata.com/.git/HEAD
ref: refs/heads/master
curl -s https://security.alwaysdata.com/.git/config
[remote "origin"]
    url = https://github.com/flyspray/flyspray.git
    fetch = +refs/heads/*:refs/remotes/origin/*
curl -s -o /dev/null -w '%{http_code} %{size_download}\n' \
     https://security.alwaysdata.com/.git/index
200 102386
curl -s https://security.alwaysdata.com/.git/logs/HEAD
... Cyril Bay <cbay@alwaysdata.com> 1704809861 +0100  clone: from https://github.com/flyspray/flyspray.git
... Cyril Bay <cbay@alwaysdata.com> 1783927681 +0100  pull: Fast-forward

Control checks:

curl -s -o /dev/null -w '%{http_code}\n' https://security.alwaysdata.com/.git/objects/a1/ffafd6...
404
curl -s -o /dev/null -w '%{http_code}\n' https://security.alwaysdata.com/.git/objects/pack/
403
curl -s -o /dev/null -w '%{http_code}\n' \
     'https://security.alwaysdata.com/.git/info/refs?service=git-upload-pack'
404

14. IMPACT AND HISTORY

Impact: an unauthenticated visitor can read the internal file inventory (942 paths with sizes
and blob hashes), every ref, the upstream remote, and a staff identity plus the timestamps of
the last clone and pull. That is useful reconnaissance against the reporting platform itself,
and it exposes an internal address that is otherwise not public.

SCOPE NOTE: security.alwaysdata.com is not in the written scope list either. I am reporting it
because  FS#532 ,  FS#543  and  FS#544  all concern this exact exposure on this exact host and were
all marked Duplicate, which means the exposure itself was accepted as real. This is the
fourth occurrence on the same host, so it is in scope by precedent.

15. SUGGESTED FIX

Deny access to .git at the web server (location rule / RedirectMatch 404), and add a
deployment check that fails the build if .git is reachable from the docroot. This has now
regressed three times, so a one-off cleanup will not hold.

DISCLOSURE AND TIMELINE

2026-12-01  findings reproduced and evidence captured
2026-12-01  report prepared for https://security.alwaysdata.com/ (no email, per program rules)
Test accounts: bcoilab26 / bcoilab27, both registered by me for this test.

No data belonging to other customers was accessed. No denial-of-service testing was performed.
No automated scanning tools were used.

Closed by  cbay
01.12.2026 15:00
Reason for closing:  Invalid

Scoping note: this task should be treated as F-01 only.

F-02 (.git directory exposure on this same host) was bundled into the original body
by mistake. Two unrelated issues in one task makes triage harder and risks one being
closed as a duplicate of the other. I have filed it separately:

FS#573 - [SECURITY] .git directory exposed on security.alwaysdata.com

The title still mentions ".git exposure" and I cannot edit it (reporter cannot modify
an Unconfirmed task). Please read  FS#572  as the authenticated sender spoofing issue
only, and close or merge the .git part into  FS#573  if that is cleaner for you.

Nothing in F-01 depends on F-02. F-01 stands on its own evidence: authenticated
submission to smtp-bcoilab26.alwaysdata.net:465 accepts MAIL FROM:admin@alwaysdata.com,
alwaysdata adds DKIM d=alwaysdata.net s=default, and the message lands in another
customer's INBOX with X-alwaysdata-Spam-Report showing DMARC_POLICY_QUARANTINE.

Admin
cbay commented on 01.12.2026 15:00

Hello,

Thanks for the detailed report.

We are closing F-01 as Invalid. The DKIM signature does not make the forgery credible:

- alwaysdata.com and alwaysdata.net both publish p=quarantine; sp=quarantine; adkim=s; aspf=s.
- admin@alwaysdata.com: d=alwaysdata.net is a different organizational domain, so it is not aligned. SPF fails (-all). DMARC fails, as your own headers show ("DKIM not aligned (strict), quarantine").
- *.alwaysdata.net: with strict alignment, d=alwaysdata.net does not align with a subdomain either, and subdomains have no SPF. DMARC fails, and sp=quarantine applies.

A signature that is not aligned says nothing about the From domain. The ceo@example.org case, which you consider expected, gets exactly the same treatment. The only From domain whose signature would align is alwaysdata.net, and that one is restricted, as you observed.

The INBOX delivery depends on how our filter scores a DMARC quarantine result. We may tighten that, but it is not a sender forgery.

Kind regards,
Cyril

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing