Vulnerabilities > CVE-2006-6772 - Use of Externally-Controlled Format String vulnerability in W3M 0.5.1

047910
CVSS 0.0 - NONE
Attack vector
UNKNOWN
Attack complexity
UNKNOWN
Privileges required
UNKNOWN
Confidentiality impact
UNKNOWN
Integrity impact
UNKNOWN
Availability impact
UNKNOWN
w3m
CWE-134
nessus

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.

Vulnerable Configurations

Part Description Count
Application
W3M
1

Common Attack Pattern Enumeration and Classification (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.

Nessus

  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-399-1.NASL
    descriptionA 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 seen2020-06-01
    modified2020-06-02
    plugin id27987
    published2007-11-10
    reporterUbuntu Security Notice (C) 2007-2019 Canonical, Inc. / NASL script (C) 2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/27987
    titleUbuntu 5.10 / 6.06 LTS / 6.10 : w3m vulnerabilities (USN-399-1)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-200701-06.NASL
    descriptionThe 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
    last seen2020-06-01
    modified2020-06-02
    plugin id24204
    published2007-01-17
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/24204
    titleGLSA-200701-06 : w3m: Format string vulnerability
  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_9347D82D9A6611DBB271000E35248AD7.NASL
    descriptionAn 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
    last seen2020-06-01
    modified2020-06-02
    plugin id23989
    published2007-01-08
    reporterThis script is Copyright (C) 2007-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/23989
    titleFreeBSD : w3m -- format string vulnerability (9347d82d-9a66-11db-b271-000e35248ad7)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_W3M-2439.NASL
    descriptionA 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 seen2020-06-01
    modified2020-06-02
    plugin id29594
    published2007-12-13
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/29594
    titleSuSE 10 Security Update : w3m (ZYPP Patch Number 2439)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_SA_2007_005.NASL
    descriptionThe remote host is missing the patch for the advisory SUSE-SA:2007:005 (w3m). A format string problem in w3m -dump / -backend mode could be used by a malicious server to crash w3m or execute code. In SUSE Linux 10.1, openSUSE 10.2 and SUSE Linux Enterprise Server and Desktop 10 this problem was not exploitable to execute code due to use of the FORTIFY SOURCE extensions. This problem is tracked by the Mitre CVE ID CVE-2006-6772.
    last seen2019-10-28
    modified2007-02-18
    plugin id24459
    published2007-02-18
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/24459
    titleSUSE-SA:2007:005: w3m
  • NASL familySuSE Local Security Checks
    NASL idSUSE_W3M-2433.NASL
    descriptionA 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 seen2020-06-01
    modified2020-06-02
    plugin id27475
    published2007-10-17
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/27475
    titleopenSUSE 10 Security Update : w3m (w3m-2433)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_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 seen2020-06-01
    modified2020-06-02
    plugin id24200
    published2007-01-17
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/24200
    titleFedora Core 5 : w3m-0.5.1-15.fc5 (2007-078)
  • NASL familySuSE Local Security Checks
    NASL idSUSE9_11376.NASL
    descriptionA 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 seen2020-06-01
    modified2020-06-02
    plugin id41111
    published2009-09-24
    reporterThis script is Copyright (C) 2009-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/41111
    titleSuSE9 Security Update : w3m (YOU Patch Number 11376)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_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 seen2020-06-01
    modified2020-06-02
    plugin id24199
    published2007-01-17
    reporterThis script is Copyright (C) 2007-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/24199
    titleFedora Core 6 : w3m-0.5.1-15.fc6 (2007-077)

Statements

contributorMark J Cox
lastmodified2007-03-14
organizationRed Hat
statementRed Hat Enterprise Linux 5 is not vulnerable to this issue as it contains a backported patch.