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

D-Link: Multiple Security Vulnerabilities Leading to RCE

On the 30th of October, D-Link published a support announcement and released a new firmware to patch five vulnerabilities that Harold Zang, Technical Security Specialist at Trustwave, identified on the DSL-2888A router. These security vulnerabilities could allow a malicious Wi-Fi or local network user to gain unauthorised access to the router web interface, obtain the router password hash, gain plaintext credentials, and execute system commands on the router.

Finding-1: Insufficient Authentication (CVE-2020-24579)

The router web portal has insufficient authentication in place allowing access to any authenticated administrative page without the requirement to have the correct password. A malicious user located on the same network can directly browse to any authenticated administrative page with invalid credentials.

  1. Browse to the router web interface: http://192.168.1.1/
  2. Submit any string as password
  3. The application will inform the user that the password is invalid, however, a valid access session is achieved
  4. Browse to any authenticated page. For example: /WiFi.shtml.

The following video demonstrates this vulnerability:

Finding-2: Information Leakage (CVE-2020-24577)

Upon establishing connection to the network either via physical connection or via wireless access, a malicious user can obtain the Internet provider connection username and password in plaintext, and the wireless router login username and password in plaintext by directly browsing to the following URLs:

http://DeviceIP:8008/tmp/cfg/lib_cfg_cfgcmd
http://DeviceIP:8008/tmp/.nvram

Screen Shot 2020-11-06 at 1.38.08 pm

Finding-3: FTP Misconfiguration (CVE-2020-24578)

The D-Link DSL-2888A router has a file sharing functionality that allows users to share fileswith other network users via inserting an external drive onto the router. This is then shared via FTP (File Transfer Protocol). However, FTP service allows a network user to escape the shared folder to access the router file system and download other files located on the root folder.

The following provides an example for downloading the “passwd”:
Use the following command on an FTP client to connect to the FTP service with valid credentials (obtained from Finding-2).
ftp <DeviceIP>

Use the following command to navigate to the root folder.
ftp>cd /

Use the following command to download the password hash file.
ftp>cd etc/
ftp>get passwd

Screen Shot 2020-11-06 at 1.41.24 pm

The attacker must first obtain the FTP credentials. Finding-2 disclosed the credential in plaintext.

Finding-4: Hidden Functionality (CVE-2020-24581)

An authenticated user can to execute Linux operation system commands in the router via hidden functionality not available on the router’s web portal interface.

The following is a Proof of Concept URL:
http://DeviceIP/cgi-bin/execute_cmd.cgi?timestamp=1589333279490&cmd=ls

Screen Shot 2020-11-06 at 1.43.45 pm

Screen Shot 2020-11-06 at 1.44.08 pm

The ability to execute operation system commands on a router will allow an attacker to monitor network traffic to steal sensitive data including login credentials, this might also allow a malicious user to install backdoors on the router.

Although exploitation of this requires authentication, Finding-1 provides a way to bypass the authentication.

Finding-5: Improper Authentication (CVE-2020-24580)

The last vulnerability was another insufficient authentication vulnerability. The router uses the source IP address of a connecting user to perform authentication. The allows a malicious user to “spoof” the IP address of a legitimate user with a valid session by changing their IP address to that of an administrator user, to browse to any authenticated administrative web pages.

Trustwave Advisory: TWSL2020-011: Multiple Vulnerabilities in D-Link DSL-2888A

Latest SpiderLabs Blogs

Zero Trust Essentials

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

Read More

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