Trustwave SpiderLabs Uncovers Unique Cybersecurity Risks in Today's Tech Landscape. Learn More

Trustwave SpiderLabs Uncovers Unique Cybersecurity Risks in Today's Tech Landscape. Learn More

Services
Capture
Managed Detection & Response

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

twi-managed-portal-color
Co-Managed SOC (SIEM)

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

twi-briefcase-color-svg
Advisory & Diagnostics

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

tw-laptop-data
Penetration Testing

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

twi-database-color-svg
Database Security

Prevent unauthorized access and exceed compliance requirements.

twi-email-color-svg
Email Security

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

tw-officer
Digital Forensics & Incident Response

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

tw-network
Firewall & Technology Management

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

Solutions
BY TOPIC
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
Partners
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: https://www.crushftp.com/.

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.

19535_image002

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.

19536_image004

Figure 2: User manager page on the web interface

 

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

 

19537_image006

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

 

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

 

19538_image008

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.

 

19539_image010

Figure 5: All folders under MainUsers deleted

 

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

19540_image012

Figure 6: Empty user list

 

As a result, users were not able to login.

 

19541_image014

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: https://www.crushftp.com/version10_build.html.

Conclusion

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.  

Reference

TWSL2023-002: Input validation Vulnerability in CRUSHFTP

Trustwave SpiderLabs Security Advisory TWSL2023-002

Latest SpiderLabs Blogs

Why We Should Probably Stop Visually Verifying Checksums

Hello there! Thanks for stopping by. Let me get straight into it and start things off with what a checksum is to be inclusive of all audiences here, from Wikipedia [1]:

Read More

Agent Tesla's New Ride: The Rise of a Novel Loader

Malware loaders, critical for deploying malware, enable threat actors to deliver and execute malicious payloads, facilitating criminal activities like data theft and ransomware. Utilizing advanced...

Read More

Evaluating Your Security Posture: Security Assessment Basics

This is Part 4 in my ongoing project to cover 30 cybersecurity topics in 30 weekly blog posts. The full series can be found here.

Read More