Trustwave Unveils New Offerings to Maximize Value of Microsoft Security Investments. Learn More

Trustwave Unveils New Offerings to Maximize Value of Microsoft Security Investments. Learn More

Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Offensive Security
Solutions to maximize your security ROI
Microsoft Exchange Server Attacks
Stay protected against emerging threats
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats
SpiderLabs Blog

Vulnerability Causing Deletion of All Users in CrushFTP Admin Area

During a recent penetration test, Trustwave SpiderLabs researchers discovered a weak input validation vulnerability in the CrushFTP application which caused the deletion of all users. CrushFTP is a secure high- speed file transfer server that runs on almost any OS. It handles a wide array of protocols, and security options. It gives the server administrator the ability to customize, monitor, and control every aspect of the server’s operations:

CrushFTP stores details of registered users within the filesystem in the users/MainUsers directory.

The contents of this directory are shown below, with the default users crushadmin, default, and TempAccount, each having their own directory.


Figure 1: MainUsers directory content

Admin users have privileges to create additional accounts on the web interface. While testing for weak input validation, researchers tried various special characters in the username and realized that quotes and periods were not being blocked. As a result, it became possible to create a user named ““.” When this particular user was selected to be deleted the “.” was parsed directly to the filesystem without sanitization and was taken to mean part of the path which resulted in all users being removed.

The below screenshot shows the user manager page on the web interface.


Figure 2: User manager page on the web interface


A new directory containing details for the user ““.” was created on the file system.



Figure 3: New directory details for user “”.”


The user ““.” was selected to be deleted.



Figure 4: Deleting user “”.”


The below log lines show commands sent to the server when the user ““.” was deleted.

SERVER|10/26/2022 01:50:39.523|SETTINGS:users/MainUsers/&quot delete

SERVER|10/26/2022 01:50:39.532|SETTINGS:users/MainUsers/. Delete

The “.” was parsed directly to the filesystem without sanitization and all folders under MainUsers were deleted.



Figure 5: All folders under MainUsers deleted


On the web interface, researchers saw that the user list was empty.


Figure 6: Empty user list


As a result, users were not able to login.



Figure 7: Failed login


Responsible Disclosure

As a part of Trustwave’s Responsible Disclosure policy, we reached out to the vendor to ensure that a patch was released prior to public disclosure. CrushFTP was responsive and easy to work with throughout this process. The vendor fixed this issue in version 10.3.0_44:


Post-authentication vulnerabilities are often overlooked. However, when the post-authentication vulnerability exposes an administrator to attack, these issues deserve a closer look due to the risk associated with a successful attack. Given the right circumstances, a successful exploit can produce disastrous results.  


TWSL2023-002: Input validation Vulnerability in CRUSHFTP

Trustwave SpiderLabs Security Advisory TWSL2023-002

Latest SpiderLabs Blogs

Secure Access Service Edge: Another Multi-Tool for the SOC

Over the years, several security defense architectures have merged into a single solution. Endpoint detection tools can perform sophisticated detections and correlations that used to require a...

Read More

Search & Spoof: Abuse of Windows Search to Redirect to Malware

Trustwave SpiderLabs has detected a sophisticated malware campaign that leverages the Windows search functionality embedded in HTML code to deploy malware. We found the threat actors utilizing a...

Read More

The Sentinel’s Watch: Building a Security Reporting Framework

Imagine being on shift as the guard of a fortress. Your job is to identify threats as they approach the perimeter. The more methods you have for detecting those threats, the better your chances of...

Read More