Skip to content
RCE Write-up Advanced

Multiple Vulnerabilities On GestSup 3.2.44

GestSup 3.2.44 contains multiple vulnerabilities, including an unauthenticated account takeover via a user modification endpoint, SQL injection, dangerous file manipulation, file read, and stored XSS. An unauthenticated attacker could chain these to achieve remote code execution on the server.

Pierre Martin Follow

Published on synacktiv.com

22/01/2024 - Téléchargement

Pierre Martin (@_Worty), Romain Brun (@SpawnZii), on synacktiv.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely multiple root causes: missing authentication checks, unsafe SQL query construction, unsafe file operations, and insufficient input validation.

What the attacker needed

Unauthenticated for account takeover; authenticated as admin for some steps; ability to upload a logo; ability to create and merge tickets

The fix

The vulnerabilities were fixed in version 3.2.45.

How it was found

  1. Create a ticket and note its ID.
  2. Upload a PHP payload as the new application logo.
  3. Use SQL injection to update the storage_filename field of an attachment to point to the uploaded logo with a crafted name.
  4. Merge two tickets to trigger the attachment renaming routine.
  5. Access the renamed PHP file to execute commands.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

This report describes several security flaws in a ticketing application called GestSup. The most serious is that an attacker can change any user's email address without logging in, then reset the password to take over the account. Combined with other bugs, an attacker could run their own code on the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.