| Title | dayrui XunRuiCMS 4.7.4 Remote Code Execution |
|---|
| Description | XunRuiCMS 4.7.4 (latest release, 2026-10-23) allows an unauthenticated attacker to store attacker-controlled content with an attacker-controlled file extension inside a web-accessible directory, leading to remote code execution on nginx deployments. This is a different issue from the category-configuration eval injection reported separately by the same researcher. The front-end endpoint /index.php?s=api&c=file&m=down (dayrui/Fcms/Library/Api.php:812-906) treats a non-numeric id parameter as a remote URL; when the administrator-configurable remote-attachment option SYS_ATTACHMENT_DOWN_REMOTE is enabled, the branch derives the persisted file extension directly from the URL's last path segment without any whitelist (Api.php:883-893) and stores the fetched content as cache/temp/remote_down_url_<md5(URL)>.<extension>. The path is predictable from md5(URL) and cache/temp is web-accessible; nginx does not honor the shipped .htaccess deny rules, so a stored .php file is executed by the PHP interpreter. Comparable download methods in the same codebase enforce a strict extension whitelist (down_file_ext) plus SSRF checks and content inspection, marking this branch as a filtering omission; the shipped SSRF guard (dr_check_fetch_url) only blocks localhost/private fetch targets, so hosting the payload on an attacker-controlled public server bypasses it. Preconditions verified dynamically: SYS_ATTACHMENT_DOWN_REMOTE enabled; on a default install without the optional member app the endpoint is fully unauthenticated, and with the member app installed any member holding download permission triggers the same chain. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L = 9.4. The vendor was notified through a public security advisory (see proof link) on 2026-10-27; no matching entry exists on the vendor advisory page (45 entries), in VulDB, CVE, or CNVD public data. |
|---|
| Source | ⚠️ https://github.com/riyuedeqi/xunruicms-4.7.4-api-down-rce/blob/main/README.zh-CN.md |
|---|
| User | riyuedeqi (UID 101865) |
|---|
| Submission | 10/26/2026 23:30 (29 days ago) |
|---|
| Moderation | 11/25/2026 07:50 (29 days later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 443649 [dayrui XunRuiCMS up to 4.7.4 Attachment Download API Api.php down id unrestricted upload] |
|---|
| Points | 20 |
|---|