Vulnerabilities > CVE-2018-12293 - Integer Overflow or Wraparound vulnerability in multiple products
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
HIGH Integrity impact
HIGH Availability impact
HIGH Summary
The getImageData function in the ImageBufferCairo class in WebCore/platform/graphics/cairo/ImageBufferCairo.cpp in WebKit, as used in WebKitGTK+ prior to version 2.20.3 and WPE WebKit prior to version 2.20.1, is vulnerable to a heap-based buffer overflow triggered by an integer overflow, which could be abused by crafted HTML content.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Forced Integer Overflow This attack forces an integer variable to go out of range. The integer variable is often used as an offset such as size of memory allocation or similarly. The attacker would typically control the value of such variable and try to get it out of range. For instance the integer in question is incremented past the maximum possible value, it may wrap to become a very small, or negative number, therefore providing a very incorrect value which can lead to unexpected behavior. At worst the attacker can execute arbitrary code.
Exploit-Db
description | WebkitGTK+ 2.20.3 - 'ImageBufferCairo::getImageData()' Buffer Overflow (PoC). CVE-2018-12293. Local exploit for Linux platform |
file | exploits/linux/local/45205.txt |
id | EDB-ID:45205 |
last seen | 2018-08-16 |
modified | 2018-08-16 |
platform | linux |
port | |
published | 2018-08-16 |
reporter | Exploit-DB |
source | https://www.exploit-db.com/download/45205/ |
title | WebkitGTK+ 2.20.3 - 'ImageBufferCairo::getImageData()' Buffer Overflow (PoC) |
type | local |
Nessus
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201808-04.NASL description The remote host is affected by the vulnerability described in GLSA-201808-04 (WebkitGTK+: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in WebKitGTK+. Please review the referenced CVE identifiers for details. Impact : A remote attacker could execute arbitrary commands or cause a denial of service condition via a maliciously crafted web content. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 112078 published 2018-08-23 reporter This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/112078 title GLSA-201808-04 : WebkitGTK+: Multiple vulnerabilities NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-3687-1.NASL description A large number of security issues were discovered in the WebKitGTK+ Web and JavaScript engines. If a user were tricked into viewing a malicious website, a remote attacker could exploit a variety of issues related to web browser security, including cross-site scripting attacks, denial of service attacks, and arbitrary code execution. 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 2020-06-01 modified 2020-06-02 plugin id 110611 published 2018-06-19 reporter Ubuntu Security Notice (C) 2018-2019 Canonical, Inc. / NASL script (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/110611 title Ubuntu 16.04 LTS / 17.10 / 18.04 LTS : webkit2gtk vulnerabilities (USN-3687-1)
Packetstorm
data source | https://packetstormsecurity.com/files/download/148960/webkitgtk2203-overflow.txt |
id | PACKETSTORM:148960 |
last seen | 2018-08-18 |
published | 2018-08-16 |
reporter | PeregrineX |
source | https://packetstormsecurity.com/files/148960/WebkitGTK-2.20.3-ImageBufferCairo-getImageData-Buffer-Overflow.html |
title | WebkitGTK+ 2.20.3 ImageBufferCairo::getImageData() Buffer Overflow |
References
- https://usn.ubuntu.com/3687-1/
- https://trac.webkit.org/changeset/232618
- https://bugs.webkit.org/show_bug.cgi?id=186384
- http://www.openwall.com/lists/oss-security/2018/06/14/1
- http://packetstormsecurity.com/files/148200/WebKitGTK-Data-Leak-Code-Execution.html
- https://www.exploit-db.com/exploits/45205/
- http://www.securityfocus.com/archive/1/542087/100/0/threaded
- https://security.gentoo.org/glsa/201808-04