Bug 1554763 (CVE-2018-7562)

Summary: CVE-2018-7562 glpi: Race condition allowing temporary access to an uploaded executable file leading to code execution
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: fedora
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-13 10:27:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Mariš 2018-03-13 10:18:56 UTC
A remote code execution issue was discovered in GLPI through 9.2.1. There is a race condition that allows temporary access to an uploaded executable file that will be disallowed. The application allows an authenticated user to upload a file when he/she creates a new ticket via front/fileupload.php. This feature is protected using different types of security features like the check on the file's extension. However, the application uploads and creates a file, though this file is not allowed, and then deletes the file in the uploadFiles method in inc/glpiuploaderhandler.class.php.

Upstream bug:

https://github.com/glpi-project/glpi/pull/3650

Reference:

https://membership.backbox.org/glpi-9-2-1-multiple-vulnerabilities/

Comment 1 Adam Mariš 2018-03-13 10:19:57 UTC
Created glpi tracking bugs for this issue:

Affects: fedora-all [bug 1554764]
Affects: epel-7 [bug 1554765]

Comment 2 Remi Collet 2018-03-13 10:27:49 UTC
RPM is not affected (/var/glpi/files outside web space)