Submit #1058433: dayrui XunRuiCMS 4.7.4 Remote Code Executioninfo

Titeldayrui XunRuiCMS 4.7.4 Remote Code Execution
BeschreibungXunRuiCMS 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.
Quelle⚠️ https://github.com/riyuedeqi/xunruicms-4.7.4-api-down-rce/blob/main/README.zh-CN.md
Benutzer
 riyuedeqi (UID 101865)
Einreichung26.10.2026 23:30 (vor 29 Tagen)
Moderieren25.11.2026 07:50 (29 days later)
StatusAkzeptiert
VulDB Eintrag443649 [dayrui XunRuiCMS bis 4.7.4 Attachment Download API Api.php down id erweiterte Rechte]
Punkte20

Do you know our Splunk app?

Download it now for free!