Skip to content
SQL injection Write-up Advanced

Report on CVE-2023–34362

A SQL injection vulnerability in MOVEit Transfer allowed unauthenticated attackers to execute arbitrary code and steal data. Attackers exploited it to install a web shell and retrieve Azure system settings and encryption keys.

medium.com

Published on medium.com

On May 31, 2023, Progress Software issued a security alert about its MOVEit Transfer product. They confirmed a serious SQL injection vulnerability (CVE-2023–34362).

Jyw, on medium.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

The UserEngine.UserGetUsersWithEmailAddress() function builds an SQL query by concatenating uncleaned input parameters.

Impact

Attackers could increase privileges, view and download sensitive data, possibly steal Azure system settings and keys, and execute arbitrary code, leading to loss of system control.

What the attacker needed

Unauthenticated network access to MOVEit Transfer

The fix

Progress provided mitigation measures and updates.

How it was found

  1. Call the guestaccess.aspx page without authentication.
  2. Use the SILHttpSessionWrapper.SetAllSessionVarsFromHeaders() function to set session variables from HTTP request headers.
  3. Send crafted requests through the machine2.aspx page to bypass local host access limits.
  4. Read the session variables using the LoadFromSession() function and pass unfiltered SelfProvisionedRecips to UserGetUsersWithEmailAddress().
  5. The unfiltered email addresses are directly added to the SQL query, allowing arbitrary SQL execution.

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 a serious flaw in a file-transfer program called MOVEit Transfer. The program built database commands by gluing together text that came from users without checking it, so an attacker could sneak in extra commands. That let them read private data and run their own code on the server.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.