ID CVE-2006-6772
Summary Format string vulnerability in the inputAnswer function in file.c in w3m before 0.5.2, when run with the dump or backend option, allows remote attackers to execute arbitrary code via format string specifiers in the Common Name (CN) field of an SSL certificate associated with an https URL.
References
Vulnerable Configurations
  • cpe:2.3:a:w3m:w3m:0.5.1
    cpe:2.3:a:w3m:w3m:0.5.1
CVSS
Base: 9.3 (as of 28-12-2006 - 13:30)
Impact:
Exploitability:
CWE CWE-134
CAPEC
  • Format String Injection
    An attacker includes formatting characters in a string input field on the target application. Most applications assume that users will provide static text and may respond unpredictably to the presence of formatting character. For example, in certain functions of the C programming languages such as printf, the formatting character %s will print the contents of a memory location expecting this location to identify a string and the formatting character %n prints the number of DWORD written in the memory. An attacker can use this to read or write to memory locations or files, or simply to manipulate the value of the resulting text in unexpected ways. Reading or writing memory may result in program crashes and writing memory could result in the execution of arbitrary code if the attacker can write to the program stack.
  • String Format Overflow in syslog()
    This attack targets the format string vulnerabilities in the syslog() function. An attacker would typically inject malicious input in the format string parameter of the syslog function. This is a common problem, and many public vulnerabilities and associated exploits have been posted.
Access
VectorComplexityAuthentication
NETWORK MEDIUM NONE
Impact
ConfidentialityIntegrityAvailability
COMPLETE COMPLETE COMPLETE
nessus via4
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-200701-06.NASL
    description The remote host is affected by the vulnerability described in GLSA-200701-06 (w3m: Format string vulnerability) w3m in -dump or -backend mode does not correctly handle printf() format string specifiers in the Common Name (CN) field of an X.509 SSL certificate. Impact : An attacker could entice a user to visit a malicious website that would load a specially crafted X.509 SSL certificate containing '%n' or other format string specifiers, possibly resulting in the execution of arbitrary code with the rights of the user running w3m. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-07-11
    plugin id 24204
    published 2007-01-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=24204
    title GLSA-200701-06 : w3m: Format string vulnerability
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2007-078.NASL
    description - Resolves: rh#221484: CVE-2006-6772 w3m is vulnerable to format string attack via CN field of SSL/TLS certificate when invoked with -dump/-backend Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-21
    plugin id 24200
    published 2007-01-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=24200
    title Fedora Core 5 : w3m-0.5.1-15.fc5 (2007-078)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_W3M-2433.NASL
    description A format string problem in w3m -dump / -backend mode could be used by a malicious server to crash w3m or execute code. (CVE-2006-6772)
    last seen 2019-02-21
    modified 2018-07-19
    plugin id 27475
    published 2007-10-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=27475
    title openSUSE 10 Security Update : w3m (w3m-2433)
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-399-1.NASL
    description A format string vulnerability was discovered in w3m. If a user were tricked into visiting an HTTPS URL protected by a specially crafted SSL certificate, an attacker could execute arbitrary code with user privileges. Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-13
    plugin id 27987
    published 2007-11-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=27987
    title Ubuntu 5.10 / 6.06 LTS / 6.10 : w3m vulnerabilities (USN-399-1)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2007-077.NASL
    description - Resolves: rh#221484 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2015-10-21
    plugin id 24199
    published 2007-01-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=24199
    title Fedora Core 6 : w3m-0.5.1-15.fc6 (2007-077)
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_9347D82D9A6611DBB271000E35248AD7.NASL
    description An anonymous person reports : w3m-0.5.1 crashes when using the -dump or -backend options to open a HTTPS URL with a SSL certificate where the CN contains '%n%n%n%n%n%n'.
    last seen 2019-02-21
    modified 2018-12-19
    plugin id 23989
    published 2007-01-08
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=23989
    title FreeBSD : w3m -- format string vulnerability (9347d82d-9a66-11db-b271-000e35248ad7)
  • NASL family SuSE Local Security Checks
    NASL id SUSE9_11376.NASL
    description A format string problem in w3m -dump / -backend mode could be used by a malicious server to crash w3m or execute code. (CVE-2006-6772)
    last seen 2019-02-21
    modified 2012-04-23
    plugin id 41111
    published 2009-09-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=41111
    title SuSE9 Security Update : w3m (YOU Patch Number 11376)
  • NASL family SuSE Local Security Checks
    NASL id SUSE_W3M-2439.NASL
    description A format string problem in w3m -dump / -backend mode could be used by a malicious server to crash w3m or execute code. (CVE-2006-6772)
    last seen 2019-02-21
    modified 2012-05-17
    plugin id 29594
    published 2007-12-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=29594
    title SuSE 10 Security Update : w3m (ZYPP Patch Number 2439)
refmap via4
bid
  • 21735
  • 24332
confirm
fedora
  • FEDORA-2007-077
  • FEDORA-2007-078
fulldisc 20061225 w3m format string bug
gentoo GLSA-200701-06
misc http://sourceforge.net/tracker/index.php?func=detail&aid=1612792&group_id=39518&atid=425439
openpkg OpenPKG-SA-2006.44
sectrack 1017440
secunia
  • 23492
  • 23588
  • 23717
  • 23773
  • 23792
suse SUSE-SA:2007:005
ubuntu USN-399-1
vupen ADV-2006-5164
xf
  • w3m-certificate-format-string(31114)
  • w3m-inputanswer-format-string(34821)
statements via4
contributor Mark J Cox
lastmodified 2007-03-14
organization Red Hat
statement Red Hat Enterprise Linux 5 is not vulnerable to this issue as it contains a backported patch.
Last major update 18-10-2011 - 00:00
Published 27-12-2006 - 18:28
Last modified 13-08-2018 - 17:47
Back to Top