Zenario CMS 9.2 - Insecure file upload (RCE)

9.1

Critical

Discovered by 

Oscar Uribe

Offensive Team, Fluid Attacks

Summary

Full name

Zenario CMS 9.2 - Insecure file upload (RCE)

Code name

State

Public

Release date

Feb 18, 2022

Affected product

Zenario CMS

Affected version(s)

9.2

Fixed version(s)

9.2.55826

Vulnerability name

Insecure file upload (RCE)

Vulnerability type

Remotely exploitable

Yes

CVSS v3.1 vector string

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

CVSS v3.1 base score

9.1

Exploit available

No

Description

Zenario CMS 9.2 allows an authenticated admin user to bypass the file upload restriction by creating a new File/MIME Types using the .phar extension. Then an attacker can upload a malicious file, intercept the request and change the extension to .phar in order to run commands on the server.

Proof of Concept

Steps to reproduce

  1. Once login as admin click on 'Go to Organizer'> 'Configuration'.

  2. Select 'File/MIME Types' in the 'Configuration' menu.

  3. Click on 'Create'.

  4. Create a new custom file type using 'phar' as extension and 'text/plain' as MIME Type and then click on 'Save'.

    The server validates some malicious extensions but still there are some valid executable extensions. For example 'phar' and 'shtml'.

  5. Create a '.phar' file with the following content.

    <?php echo system($_GET['cmd']);
  6. On the admin menu, click on 'Documents'

  7. Click on 'Upload documents'

  8. Click on 'Upload...' and browse the created file.

  9. Select 'Public' and click on 'Save'.

  10. Select the file and click on 'Actions' > 'View public link' in order to get the file location.

  11. Go to the url in the browser.

System Information

  • Version: Zenario CMS 9.2.

  • Operating System: Linux.

  • Web Server: Apache

  • PHP Version: 7.4

  • Database and version: Mysql

Exploit

There is no exploit for the vulnerability but can be manually exploited.

Mitigation

An updated version of Zenario CMS is available at the vendor page.

References

Timeline

Vulnerability discovered

Jan 13, 2022

Vulnerability patched

Feb 8, 2022

Vendor contacted

Jan 13, 2022

Vendor replied

Jan 14, 2022

Public disclosure

Feb 18, 2022

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Start your 21-day free trial

Discover the benefits of our Continuous Hacking solution, which organizations of all sizes are already enjoying.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.

Fluid Attacks' solutions enable organizations to identify, prioritize, and remediate vulnerabilities in their software throughout the SDLC. Supported by AI, automated tools, and pentesters, Fluid Attacks accelerates companies' risk exposure mitigation and strengthens their cybersecurity posture.

SOC 2 Type II

SOC 3

Subscribe to our newsletter

Stay updated on our upcoming events and latest blog posts, advisories and other engaging resources.

© 2025 Fluid Attacks. We hack your software.