Authenticated File Upload to Restricted Tickets (CVE-2024-37147)

Vulnerability Information:

Hello Friend, although I reported other CVEs first, in this article I will be presenting my first published CVE.

First I’ll explain what GLPI is and what it’s for:

GLPI is an open-source software tool used for IT asset management and service management. It helps organizations keep track of their hardware and software assets, manage IT support requests, and handle maintenance tasks.

Three months after the report, GLPI released version 10.0.16, and the fix for the vulnerability I had reported earlier came with it.

Patched Code:

But without further ado, let’s get to the PoC of this vulnerability:

The exploitation of this vulnerability was quite exciting and not too complicated.

I started by creating a ticket as a user without any permissions.

Now in the account with administrator privileges, I’ve checked that the ticket was created with the ID 2024052702.

For this proof of concept, I have also created a ticket in the administrator account so that we can test the upload from a standard user account. This ticket is associated with the ID 2024052703, which will be needed later to execute the file upload in a Restricted Ticket.

With the admin ticket ID, we can check that the normal user doesn’t have access to the ticket content.

When I realized that I had no way of knowing the content of the administrator ticket, I decided to explore its other features besides the chat. That’s when I discovered I could upload documents into the ticket chat.

So I immediately intercepted the request made to the server when we tried to upload a file.

When I came across the ID of my ticket in the request, I immediately thought, “Could it be that by changing my ticket ID to the ID of another ticket, I can assign the file I uploaded to a ticket that isn’t mine?”.

I proceeded to test whether it would be possible to associate the file with the ticket we previously created using the administrator account.

And Voila! We received a success message on the front end.

We were also check in the admin panel that our user had added a file to the ticket that the normal user couldn’t access.

The body cannot live without the mind

  • Morpheus