This is some text inside of a div block.
Glitch effect

MOVEit Transfer Critical Vulnerability CVE-2023-34362 Rapid Response

By

Download Your

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Glitch effectGlitch effectGlitch effectGlitch effectGlitch effect

MOVEit Transfer Critical Vulnerability CVE-2023-34362 Rapid Response

|
Contributors:
Glitch effectGlitch effectGlitch effect
Share
Glitch banner

UPDATED: 1 June 2023 @ 1733 ET - Added shareable Huntress YARA rule for assistance in detection effort
UPDATED: 1 June 2023 @ 2023 ET - Added Kostas community Sigma rule to assist in detection efforts
UPDATED: 1 June 2023 @ 2029 ET - Added screenshots for the DLL that creates the human2.aspx file
UPDATED: 2 June 2023 @ 1210 ET - Added CVE identification
UPDATED: 2 June 2023 @ 1750 ET - Added registry locations for enriched investigation and analysis
UPDATED: 5 June 2023 @ 1323 ET - Added video demonstration of proof-of-concept exploitation
UPDATED 5 June 2023 @ 2116 ET - Added video demonstration of RCE and ransomware
LAST UPDATED 12 June 2023 @ 1101 ET - Added latest CVE and other proof-of-concept details

On June 1, 2023, Huntress was made aware of active exploitation attempts against the MOVEit Transfer software application. Previously, on May 31, 2023, the vendor Progress had just released a security advisory expressing there is a critical vulnerability that could lead to unauthorized access.

On June 2, the industry dubbed this vulnerability as CVE-2023-34362.

Progress brought down MOVEit Cloud as part of their response and investigation.

UPDATE 5 June 2023:

Huntress has fully recreated the attack chain exploiting MOVEit Transfer software. To the best of our knowledge, currently no one else has publicly done so.

We have uncovered that the initial phase of the attack, SQL injection, opens the door for even further compromise -- specifically, arbitrary code execution.

See this video demonstration below where we use our exploit to receive shell access with Meterpreter, escalate to [.highlight]NT AUTHORITY\SYSTEM[.highlight] and detonate a cl0p ransomware payload.

For this brief video demonstration, Microsoft Defender is turned off. An adversary can certainly disable antivirus with a local admin account.

This means that any unauthenticated adversary could trigger an exploit that instantly deploys ransomware or performs any other malicious action. Malicious code would run under the MOVEit service account user [.highlight]moveitsvc[.highlight], which is in the local administrators group.  The attacker could disable antivirus protections, or achieve any other arbitrary code execution.

The behavior that the industry observed, adding a [.highlight]human2.aspx[.highlight] webshell, is not necessary for attackers to compromise the MOVEit Transfer software. It's "an option" that this specific threat chose to deploy for persistence, but the attack vector offers the ability to detonate ransomware right away.  Some have already publicly reported to attackers pivoting to other file names.

The recommended guidance is still to patch and enable logging. From our own testing, the patch does effectively thwart our recreated exploit. 

Additionally, a previous demonstration video showcased compromising the MOVEit Transfer API and application itself. With that alone, we upload, download, and potentially exfiltrate files as a threat actor would.

UPDATE 12 June 2023:

A new CVE for our findings has been released as CVE-2023-35036. This refers to different attack vectors for SQL injection and the ability to leak data from the database. Additionally, Rapid7 and Horizon3.ai have publicly released their own recreated proof-of-concept exploit.

Microsoft has now attributed this threat to "Lace Tempest" (per their new naming scheme) or the group behind the cl0p ransomware gang. This is the same conclusion drawn by many across the threat intelligence community as cl0p was attributed to the previous GoAnywhere MFT attack, another file transfer software.

As usual, we will continue to update this blog article and our Reddit post with details as we find them.

What it Does

There is a severe vulnerability in the MOVEit Transfer web application frontend that offers SQL injection, that can be further abused to gain administrative access, exfiltrate files and gain arbitrary code execution.

Ultimately, the observed exploitation is a newly staged [.highlight]human2.aspx[.highlight] file created within the [.highlight]C:\MOVEitTransfer\wwwroot\[.highlight] directory. Note that there is no space between the words [.highlight]MOVEitTransfer[.highlight]. This filesystem path is based on install locations and is customizable (we've also seen it present in other drives like "[.highlight]E:\[.highlight]") so this location may vary for your environment.

This ASPX file stages a SQL database account to be used for further access, described in greater detail below.

Technical Analysis and Investigation

Huntress has identified less than ten organizations with this MOVEit Transfer software in our partner base, however, Shodan suggests that there are over 2,500 servers publicly available on the open Internet.

From our few organizations, only one has seen a full attack chain and all the matching indicators of compromise. 

Reviewing the IIS access logs of the affected host, we believe the attack chain follows these operations.

2023-05-30 17:05:50 192.168.###.### GET / - 443 - 5.252.190.181 user-agent - 2002023-05-30 17:06:00 192.168.###.### POST /guestaccess.aspx - 443 - 5.252.191.14 user-agent - 2002023-05-30 17:06:00 192.168.###.### POST /api/v1/token - 443 - 5.252.191.14 user-agent - 2002023-05-30 17:06:02 192.168.###.### GET /api/v1/folders - 443 - 5.252.191.14 user-agent - 2002023-05-30 17:06:02 192.168.###.### POST /api/v1/folders/605824912/files uploadType=resumable 443 - 5.252.191.14 user-agent - 2002023-05-30 17:06:02 ::1 POST /machine2.aspx - 80 - ::1 CWinInetHTTPClient - 2002023-05-30 17:06:02 192.168.###.### POST /moveitisapi/moveitisapi.dll action=m2 443 - 5.252.191.14 user-agent - 2002023-05-30 17:06:04 192.168.###.### POST /guestaccess.aspx - 443 - 5.252.190.233 user-agent - 2002023-05-30 17:06:08 192.168.###.### PUT /api/v1/folders/605824912/files uploadType=resumable&fileId=963061209 443 - 5.252.190.233 user-agent - 5002023-05-30 17:06:08 ::1 POST /machine2.aspx - 80 - ::1 CWinInetHTTPClient - 2002023-05-30 17:06:08 192.168.###.### POST /moveitisapi/moveitisapi.dll action=m2 443 - 5.252.190.233 user-agent - 2002023-05-30 17:06:11 192.168.###.### POST /guestaccess.aspx - 443 - 5.252.190.116 user-agent - 2002023-05-30 17:06:21 192.168.###.### GET /human2.aspx - 443 - 5.252.191.88 user-agent - 404

(For the sake of brevity the full User-Agent header has been removed from this excerpt)

[.highlight]moveitisapi.dll[.highlight] is used to perform SQL injection when requested with specific headers, and [.highlight]guestaccess.aspx[.highlight] is used to prepare a session and extract CSRF tokens and other field values to perform further actions.

Note that the 404 response code for the [.highlight]human2.aspx[.highlight] file may be appropriate, as (discussed below) the backdoor will return this value if the correct password key is not provided. Perhaps either the threat actor was either impatient in their upload process or just confirming the backdoor was staged properly.

A full [.highlight]human2.aspx[.highlight] file is available for you to review.

This ASPX file:

  • Enforces a static password for access, determined by the [.highlight]X-siLock-Comment[.highlight] HTTP header. If this password is not supplied, the server returns a 404 with no further function. This password seems to vary, and for this reason, you will see multiple hashes being shared as IOCs for [.highlight]human2.aspx[.highlight].
  •  Connects to the database and offers functionality based on a provided [.highlight]X-siLock-Step1[.highlight] header to either:
  • (-2) delete a Health Check Service user from the database
  • (-1) leak Azure information via response header and return a GZIP stream of all files, file owners and file sizes, and institution data present in MOVEit
  • (empty) retrieve any file specified by a [.highlight]X-siLocked-Step2[.highlight] header (a folder ID) and [.highlight]X-SiLocked-Step3[.highlight] header (file ID). If these header values are not provided, then it will add a new “Health Check Service” admin user into the database and create a long-running active session for this account.

From our Managed EDR service, we observed events on May 30 that this affected host had [.highlight]w3wp.exe[.highlight] execute the C# compiler [.highlight]csc.exe[.highlight] which timing lines up with the creation of our [.highlight]human2.aspx[.highlight] backdoor.

As this is compiled, the system will create a DLL under:

[.highlight]C:\Windows\Microsoft.net\Framework64\v4.0.30319\Temporary ASP.NET Files\root\9a11d1d0\5debd404[.highlight]

Note your .NET version number may differ or the last two subdirectories may have different hex values.

In this directory we observe a new artifact [.highlight]App_Web_wrpngvm2.dll[.highlight] (note again these random characters will differ) that was created at the same timestamp, which differs from a [.highlight]App_Web_5h5nuzvn.dll[.highlight] that was created a year prior. After exploring this new artifact via dotPeek, it's apparent that it's the pre-compiled [.highlight]human2.aspx[.highlight] file mentioned above.

The [.highlight]human2_aspx[.highlight] class is responsible for populating the file contents.

The first time an ASPX file is "rendered," .NET will pre-compile it and cache the results in these temporary files. These are leftover artifacts from [.highlight]csc.exe[.highlight] preparing the newly added [.highlight]human2.aspx[.highlight] file.

If you have a second [.highlight]App_web_….dll[.highlight] you have likely been compromised as this indicates the backdoor is compiled and present. Only one should be present for the normal function of the MOVEit application.

Detection Efforts

For our threat hunting efforts, we have used this process monitoring query:

process.parent.name.caseless: [.highlight]w3wp.exe[.highlight] and process.parent.command_line.text : "[.highlight]moveitdmz pool[.highlight]"

Threat hunter Anthony Smith noted that there is a peculiar misspelling in the [.highlight]human2.aspx[.highlight] webshell that may make for a fine addition to a YARA rule (note the variable name [.highlight]azureAccout[.highlight]):

string azureAccout = SystemSettings.AzureBlobStorageAccount;

With that said, we've created our YARA rule that includes this and more to be found here inside of our public Threat Intel repository.

Additionally, Kostas has shared this Sigma rule to hunt for suspicious files including [.highlight]human2.aspx[.highlight], dig through IIS event logs for activity similar to above, and detect malicious DLL files in the temporary ASP.NET files location.

Huntress has crafted detectors to flag any further rogue behavior from the [.highlight]w3wp.exe[.highlight] process staging either C# or VB compilations.

Investigation Tips

There are various settings that may come in handy while investigating compromised machines with MOVEit installed.  A good place to start is with the [.highlight]HKEY_LOCAL_MACHINE\SOFTWARE\Standard Networks\siLock[.highlight] registry key.  The following registry value can help you quickly discover where your root directory is:

HKEY_LOCAL_MACHINE\SOFTWARE\Standard Networks\siLock->WebBaseDir

You may also find your log files for MOVEit at the following registry value:

HKEY_LOCAL_MACHINE\SOFTWARE\Standard Networks\siLock->LogsBaseDir

Machines that we have seen exploited had MySQL installed as the underlying DBMS.  You can find information about how this is configured at: [.highlight]HKEY_LOCAL_MACHINE\SOFTWARE\Standard Networks\siLock\MySQL [.highlight]

Since you may configure MOVEit to use MSSQL or Azure SQL, you may find settings at this registry key: [.highlight]HKEY_LOCAL_MACHINE\SOFTWARE\Standard Networks\siLock\SQLServer[.highlight]

What You Should Do

Progress has released immediate mitigation measures to help prevent the exploitation of this vulnerability.

  • If updating with the above patch is not feasible for your organization, their suggested mitigation is to disable HTTP(s) traffic to MOVEit Transfer by adding firewall deny rules to ports 80 and 443. Note that this will essentially take your MOVEit Transfer application out of service. 

If you are using MOVEit and aren't already working with our team, Huntress is offering our Managed EDR at no charge for newly deployed endpoints through the end of June. Our agent is compatible with any combination of security tools and deployment is simple—get our team of 24/7 threat hunters watching your back in under 15 minutes. Get started here.

Indicators of Attack (IOAs)

Files

  • [.highlight]C:\MOVEitTransfer\wwwroot\human2.aspx[.highlight]

IP addresses

  • [.highlight]89.39.105[.]108[.highlight] (WorldStream)
  • [.highlight]5.252.190[.]0/24[.highlight]
  • [.highlight]5.252.189-195[.]x[.highlight]
  • [.highlight]148.113.152[.]144[.highlight] (reported by the community)
  • [.highlight]138.197.152[.]201[.highlight]
  • [.highlight]209.97.137[.]33[.highlight]

Resources and References

Want to dive into more hacker tradecraft? 

Thanks to Huntress team members Kaleigh Slayton, Jason Phelps, Dray Agha, Sharon Martin, Matt Anderson, Caleb Stewart, Joe Slowik, Anthony Smith, David Carter, Jamie Levy and many others for their contributions to this writeup and rapid response effort.

Blurry glitch effect

Sign Up for Blog Updates

Subscribe today and you’ll be the first to know when new content hits the blog.

Huntress at work