ID CVE-2016-7966
Summary Through a malicious URL that contained a quote character it was possible to inject HTML code in KMail's plaintext viewer. Due to the parser used on the URL it was not possible to include the equal sign (=) or a space into the injected HTML, which greatly reduces the available HTML functionality. Although it is possible to include an HTML comment indicator to hide content.
References
Vulnerable Configurations
  • KDE KMail 4.4.0
    cpe:2.3:a:kde:kmail:4.4.0
  • Debian Linux 8.0 (Jessie)
    cpe:2.3:o:debian:debian_linux:8.0
  • SUSE Linux Enterprise 12.0
    cpe:2.3:o:suse:linux_enterprise:12.0
  • Fedora 25
    cpe:2.3:o:fedoraproject:fedora:25
CVSS
Base: 7.5 (as of 27-12-2016 - 10:31)
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Access
VectorComplexityAuthentication
NETWORK LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
nessus via4
  • NASL family Ubuntu Local Security Checks
    NASL id UBUNTU_USN-3100-1.NASL
    description Roland Tapken discovered that the KDE-PIM Libraries incorrectly filtered URLs. A remote attacker could use this issue to perform an HTML injection attack in the KMail plain text viewer. 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-12-01
    plugin id 94044
    published 2016-10-13
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=94044
    title Ubuntu 12.04 LTS : kdepimlibs vulnerability (USN-3100-1)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2016-1200.NASL
    description This update for kcoreaddons fixes the following issues : - CVE-2016-7966: HTML injection in plain text viewer (boo#1002977)
    last seen 2019-02-21
    modified 2017-01-03
    plugin id 94128
    published 2016-10-19
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=94128
    title openSUSE Security Update : kcoreaddons (openSUSE-2016-1200)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DLA-673.NASL
    description Roland Tapken discovered that insufficient input sanitizing in KMail's plain text viewer allowed attackers the injection of HTML code. This might open the way to the exploitation of other vulnerabilities in the HTML viewer code, which is disabled by default. For Debian 7 'Wheezy', these problems have been fixed in version 4:4.8.4-2+deb7u1. We recommend that you upgrade your kdepimlibs packages. NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA 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-07-10
    plugin id 94204
    published 2016-10-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=94204
    title Debian DLA-673-1 : kdepimlibs security update
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2016-F7A079F775.NASL
    description the new package fixes the CVE-2016-7966. for more info please take a look at https://www.kde.org/info/security/advisory-20161006-1.txt Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2017-01-03
    plugin id 94750
    published 2016-11-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=94750
    title Fedora 23 : kdepimlibs (2016-f7a079f775)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2016-C9D15BBCBB.NASL
    description the new package fixes the CVE-2016-7966. for more info please take a look at https://www.kde.org/info/security/advisory-20161006-1.txt Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2017-01-03
    plugin id 94525
    published 2016-11-04
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=94525
    title Fedora 24 : kdepimlibs (2016-c9d15bbcbb)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-3697.NASL
    description Roland Tapken discovered that insufficient input sanitising in KMail's plain text viewer allowed the injection of HTML code.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 94205
    published 2016-10-24
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=94205
    title Debian DSA-3697-1 : kdepimlibs - security update
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2016-92C112A380.NASL
    description the new package fixes the CVE-2016-7966. for more info please take a look at https://www.kde.org/info/security/advisory-20161006-1.txt Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2017-01-03
    plugin id 94836
    published 2016-11-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=94836
    title Fedora 25 : kdepimlibs (2016-92c112a380)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2016-1B042A79BD.NASL
    description KDE PIM Applications 16.08.2, https://www.kde.org/announcements/announce-applications-16.08.2.php Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2017-01-03
    plugin id 94413
    published 2016-10-31
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=94413
    title Fedora 24 : 1:kdepim-runtime / 7:kdepim / kdepim-addons / kdepim-apps-libs / etc (2016-1b042a79bd)
refmap via4
bid 93360
debian DSA-3697
fedora FEDORA-2016-92c112a380
mlist [oss-security] 20161004 Re: KMail vulnerabilites: need 3 CVE
suse openSUSE-SU-2016:2559
Last major update 27-12-2016 - 13:42
Published 23-12-2016 - 17:59
Back to Top