Last Updated: 2020-10-17 16:22:00 UTC
by Rick Wanner (Version: 1)
Discovered by Tripwire VERT, CVE-2020-5135 is a buffer overflow vulnerability in the popular SonicWall Network Security Appliance (NSA) which can permit an unauthenticated bad guy to execute arbitrary code on the device.
The following versions of SonicWall are vulnerable:
SonicOS 220.127.116.11-79n and earlier
SonicOS 18.104.22.168-4n and earlier
SonicOS 22.214.171.124-93o and earlier
SonicOSv 126.96.36.199-44v-21-794 and earlier
After some research, I am unclear how many devices may be vulnerable to this attack. Tenable/Tripwire implies it could be up to approximately 800,000 devices (as detected by Shodan).
I expect that not all of these devices have the VPN enabled, and some have been updated already, so the number is probably quite a bit lower, but still significant.
I have not been able to find a way to remotely detect which devices are vulnerable. Nmap can be used to detect SonicWall instances, but does not provide enough information to determine the OS version or probe for the vulnerability.
PORT STATE SERVICE REASON VERSION 80/tcp open http-proxy syn-ack ttl 53 SonicWALL SSL-VPN http proxy |_http-server-header: SonicWALL SSL-VPN Web Server 443/tcp open ssl/http-proxy syn-ack ttl 53 SonicWALL SSL-VPN http proxy |_http-server-header: SonicWALL SSL-VPN Web Server 50001/tcp filtered unknown no-response
If any of you know of a reliable scanning technique to detect this vulnerability please let me know at our contact page and I will update the diary.
SonicWall released updates last week which fix this vulnerability and several others. Although no known exploit has been detected in the wild. I expect, give recent historical attacks on VPNs, I would expect this one will get a lot of interest from bad guys. I strongly recommend updating as soon as reasonable.
More information can be found at the following links:
-- Rick Wanner MSISE - rwanner at isc dot sans dot edu - http://namedeplume.blogspot.com/ - Twitter:namedeplume (Protected)