Uvdesk 1.1.1 - RCE via Insecure File Upload

Summary

NameUvdesk 1.1.1 - RCE via Insecure File Upload
Code name
ProductUvdesk
Affected versionsVersion 1.1.1
StatePublic
Release date2023-04-04

Vulnerability

KindInsecure file upload
Rule
RemoteYes
CVSSv3.1 VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSSv3.1 Base Score9.9
Exploit availableYes
CVE ID(s)

Description

Uvdesk version 1.1.1 allows an authenticated remote attacker to execute commands on the server. This is possible because the application does not properly validate profile pictures uploaded by customers.

Vulnerability

This vulnerability occurs because the application does not properly validate profile pictures uploaded by customers.

Exploitation

The application only accepts images (validates content and mimetype), however it does not correctly validate the image extension. Thanks to this we can inject PHP code in the image comments (so as not to corrupt it), and then through a proxy we change the image extension to .php.

inject-code-comments

burpsuite-bad-image

command-execute-success

Evidence of exploitation

Our security policy

We have reserved the CVE-2023-0265 to refer to this issue from now on.

System Information

  • Version: Uvdesk 1.1.1

  • Operating System: GNU/Linux

Mitigation

There is currently no patch available for this vulnerability.

Credits

The vulnerability was discovered by Carlos Bello from Fluid Attacks' Offensive Team.

References

Vendor page https://github.com/uvdesk/community-skeleton

Timeline

Time-lapse-logo

2023-01-14

Vulnerability discovered.

Time-lapse-logo

2023-01-14

Vendor contacted.

Time-lapse-logo

2023-01-14

Vendor replied acknowledging the report.

Time-lapse-logo

2023-04-04

Public Disclosure.

Fluid Logo Footer

Hacking software for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.