Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Trustwave and Cybereason Merge to Form Global MDR Powerhouse for Unparalleled Cybersecurity Value. Learn More

Services
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.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
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

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

ABOUT TRUSTWAVE

Trustwave is a globally recognized cybersecurity leader that reduces cyber risk and fortifies organizations against disruptive and damaging cyber threats. Our comprehensive offensive and defensive cybersecurity portfolio detects what others cannot, responds with greater speed and effectiveness, optimizes client investment, and improves security resilience. Learn more about us.

Latest Intelligence

Discover how our specialists can tailor a security program to fit the needs of
your organization.

Request a Demo