ID

VAR-201904-1363


CVE

CVE-2018-4300


TITLE

CUPS web Of the generated session of the interface cookie Vulnerable to information disclosure

Trust: 0.8

sources: JVNDB: JVNDB-2018-015212

DESCRIPTION

The session cookie generated by the CUPS web interface was easy to guess on Linux, allowing unauthorized scripted access to the web interface when the web interface is enabled. This issue affected versions prior to v2.2.10. CUPS is prone to a security weakness. Successfully exploiting this issue may allow attackers to bypass security mechanism. This may lead to other attacks. CPUS is an open source printing system. This vulnerability stems from configuration errors in network systems or products during operation. An unauthorized attacker could exploit the vulnerability to obtain sensitive information of the affected components. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 X41 D-Sec GmbH Security Advisory: X41-2018-005 Multiple Vulnerabilities in Apple smartcardservices =================================================== Overview - -------- Confirmed Affected Versions: e3eb96a6eff9d02497a51b3c155a10fa5989021f Confirmed Patched Versions: 8eef01a5e218ae78cc358de32213b50a601662de Vendor: Apple Vendor URL: https://smartcardservices.github.io/ Credit: X41 D-Sec GmbH, Eric Sesterhenn Status: Public Advisory-URL: https://www.x41-dsec.de/lab/advisories/x41-2018-005-smartcardservices/ Summary and Impact - ------------------ Attackers with local access can exploit security issues in the smartcard driver. These result in memory corruptions, which might lead to code execution. Since smartcards can be used for authentication, the vulnerabilities may allow an attacker to login to the system without valid credentials as any user. X41 did not perform a full test or audit on the software. Product Description - ------------------- The Smart Card Services project is comprised of several components which, when combined, provide the necessary abstraction layer and integration of smart cards into Appleas CDSA implementation. Stack based buffer overflow =========================== Severity Rating: Medium Vector: APDU Response CVE: CVE-2018-4300 CWE: 120 CVSS Score: 7.1 (High) CVSS Vector: CVSS:3.0/AV:P/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H Summary and Impact - ------------------ In file Tokend/CAC/CACRecord.cpp the function CACCertificateRecord::getDataAttribute() might overwrite the value certificate and possibly other stack data, if a smartcard provides malicious data. {% highlight c++ %} unsigned char command[] = { 0x80, 0x36, 0x00, 0x00, 0x64 }; unsigned char result[MAXBUFFERSIZE]; sizet resultLength = sizeof(result); uint8 certificate[CACMAXSIZECERT]; uint8 uncompressed[CACMAXSIZECERT]; sizet certificateLength = 0; try { PCSC::Transaction (cacToken); cacToken.select(mApplication); uint32t cacreturn; do { cacreturn = cacToken.exchangeAPDU(command, sizeof(command), result, resultLength); if ((cacreturn & 0xFF00) != 0x6300) CACError::check(cacreturn); sizet requested = command[4]; if (resultLength != requested + 2) PCSC::Error::throwMe(SCARDEPROTOMISMATCH); memcpy(certificate + certificateLength, result, resultLength - 2); certificateLength += resultLength - 2; // Number of bytes to fetch next time around is in the last byte // returned. command[4] = cacreturn & 0xFF; } while ((cacreturn & 0xFF00) == 0x6300); } catch (...) { return NULL; } {% endhighlight %} As long as the smartcard returns a return code of 0x63FF, more data is copied into the certificate buffer, causing a stack based overflow. A malicious smartcard is able to control all of the overflowed bytes. Workarounds - ----------- None Stack based buffer overflow with limited input ============================================== Severity Rating: Medium Vector: APDU Response CVE: CVE-2018-4301 CWE: 120 CVSS Score: 7.1 (High) CVSS Vector: CVSS:3.0/AV:P/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H Summary and Impact - ------------------ In file Tokend/PKCS11/GemaltoKeyHandle.cpp the function GemaltoPrivateKeyRecord::computeDecrypt() might overwrite the value strData if the supplied dataLength is too big. {% highlight c++ %} void GemaltoPrivateKeyRecord::computeDecrypt(GemaltoToken &gemaltoToken, CKULONG mech, const AccessCredentials *cred, unsigned char *data, sizet dataLength, unsigned char output, size_t &outputLength) { GemaltoToken::log("\nGemaltoPrivateKeyRecord::computeDecrypt <BEGIN>\n"); GemaltoToken::log("GemaltoPrivateKeyRecord::computeDecrypt - mechanism <%lu>\n", mech); GemaltoToken::log("GemaltoPrivateKeyRecord::computeDecrypt - cred <%p>\n", cred); char strData[6000]; memset(strData, '\0', sizeof(strData)); char str = strData; for (size_t i=0; i<dataLength; i++) { str += sprintf(str, "%02x ", data[i]); } GemaltoToken::log("GemaltoPrivateKeyRecord::computeDecrypt - dataLength <%lu> - data <%s>\n", dataLength, strData); GemaltoToken::log("GemaltoPrivateKeyRecord::computeDecrypt - output <%p>\n", output); GemaltoToken::log("GemaltoPrivateKeyRecord::computeDecrypt - outputLength <%lu>\n", outputLength); {% endhighlight %} The attacker might control the data which is to be decrypted, but exploitation is limited by the sprintf() format string. Workarounds - ----------- None Timeline ======== 2018-02-03 Issues found 2018-05-22 Vendor contacted 2018-05-22 Automated vendor reply 2018-05-23 Personal vendor reply 2018-06-05 Requesting technical feedback from the vendor 2018-06-22 Vendor states that the bugs are fixed in public git 2018-07-12 CVE IDs assigned 2018-08-03 https://smartcardservices.github.io/security/ updated 2018-08-11 Advisory released - -- X41 D-SEC GmbH, Dennewartstr. 25-27, D-52068 Aachen T: +49 241 9809418-0, Fax: -9 Unternehmenssitz: Aachen, Amtsgericht Aachen: HRB19989 GeschA$?ftsfA1/4hrer: Markus Vervier -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEpwxVTgxAIcUvTugIo5Klpg50CxAFAlty3ScACgkQo5Klpg50 CxCRNQ/+I+0oXn6oWXNARh+qU+fBxuUx8ydAIgDvEeBQddHAWaHQpVzkE7xgSZbg wUsmCMGEvAd6Jvfc4rH1gHy3jHl4zdLs7XDSslYUC3hc+BgsfvSR078+zNzzZ1yX 7Fe4vpq2Oep4Vbq2Y8wBrh5zui4PoS2afFRHKY5KaEKuzfvQGOS5WcKdFwm0WZNB 4l+b3ie/v2pBA7/YglYACyNkZU8bsNDAumuVeMP5MFdT0S88eE4hCwo3QJ1GurR5 4L5B+QDUwbMCA4pgH5ifOpdgDtHTLnYvoIKZGPT8Vu7lbjlHCdFKOjw52aiBqaHo iac/RBE8EzWjmeqE9UbHB6U0PeFdWbjVGhlPNBn1wErwyj18hK2rZRIJR0kGdBXU +1SXhxYbR4a2pB4VQcIpqWSQqgMe3IwoXIPpY5IIZwV/StjZ6/mnRMxZgiF7JnPQ OgI/F2AWFryJWtEtQ6gXAGEE2dkInVALo0ym509d5gRkkfAcoJXpSM3oa3BcOanV DJ3tMIE0H8UKXwL3EvRn02TvuZpbtvSDUyZniBl9vl5FMQJCK8Zh++jX9dOvplsR a/Ytuxt4KWFtuzU/gaQ5BjBHS80m9M7HJzMMohYY60Yyr4aczZxd8/8lZpggMNKE gDrded2INA+9ybxlcnWpSTIoD+Cl034kCqOWcjVzWW6/tYIiN+Q= =9tdn -----END PGP SIGNATURE-----

Trust: 2.07

sources: NVD: CVE-2018-4300 // JVNDB: JVNDB-2018-015212 // BID: 107785 // VULHUB: VHN-134331 // PACKETSTORM: 148927

AFFECTED PRODUCTS

vendor:applemodel:cupsscope:ltversion:2.2.10

Trust: 1.8

vendor:applemodel:cupsscope:eqversion:2.0.1

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.7.4

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.7.3

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.3.11

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.3.7

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.3.5

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.21

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.20

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.18

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.17

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:2.0.3

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:2.0.2

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:2.0

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.7.2

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.7.1

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.7.0

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.5.4

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.5.3

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.5.2

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.5.1

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.5.0

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.4.7

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.4.6

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.4.5

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.4.4

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.4.3

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.4.2

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.4.1

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.4.0

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.3.6

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.3.4

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.3.3

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.3.2

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.3.10

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.3.1

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.3.0

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.9

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.8

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.7

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.6

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.5

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.4

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.3

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.2

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.12

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.11

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.10

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.1

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.2.0

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.9

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.8

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.7

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.5

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.4

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.3

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.2

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.19

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.16

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.15

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.14

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.13

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.12

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.11

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.10

Trust: 0.3

vendor:applemodel:cupsscope:eqversion:1.1.1

Trust: 0.3

vendor:applemodel:cupsscope:neversion:2.2.10

Trust: 0.3

sources: BID: 107785 // JVNDB: JVNDB-2018-015212 // NVD: CVE-2018-4300

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2018-4300
value: MEDIUM

Trust: 1.0

NVD: CVE-2018-4300
value: MEDIUM

Trust: 0.8

CNNVD: CNNVD-201904-134
value: MEDIUM

Trust: 0.6

VULHUB: VHN-134331
value: MEDIUM

Trust: 0.1

nvd@nist.gov: CVE-2018-4300
severity: MEDIUM
baseScore: 4.3
vectorString: AV:N/AC:M/AU:N/C:P/I:N/A:N
accessVector: NETWORK
accessComplexity: MEDIUM
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: NONE
availabilityImpact: NONE
exploitabilityScore: 8.6
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

VULHUB: VHN-134331
severity: MEDIUM
baseScore: 4.3
vectorString: AV:N/AC:M/AU:N/C:P/I:N/A:N
accessVector: NETWORK
accessComplexity: MEDIUM
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: NONE
availabilityImpact: NONE
exploitabilityScore: 8.6
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.1

nvd@nist.gov: CVE-2018-4300
baseSeverity: MEDIUM
baseScore: 5.9
vectorString: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
attackVector: NETWORK
attackComplexity: HIGH
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: NONE
availabilityImpact: NONE
exploitabilityScore: 2.2
impactScore: 3.6
version: 3.0

Trust: 1.8

sources: VULHUB: VHN-134331 // JVNDB: JVNDB-2018-015212 // CNNVD: CNNVD-201904-134 // NVD: CVE-2018-4300

PROBLEMTYPE DATA

problemtype:CWE-200

Trust: 1.9

sources: VULHUB: VHN-134331 // JVNDB: JVNDB-2018-015212 // NVD: CVE-2018-4300

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201904-134

TYPE

information disclosure

Trust: 0.6

sources: CNNVD: CNNVD-201904-134

CONFIGURATIONS

sources: JVNDB: JVNDB-2018-015212

EXPLOIT AVAILABILITY

sources: VULHUB: VHN-134331

PATCH

title:v2.2.10url:https://github.com/apple/cups/releases/tag/v2.2.10

Trust: 0.8

title:CUPS Security vulnerabilitiesurl:http://www.cnnvd.org.cn/web/xxk/bdxqById.tag?id=91057

Trust: 0.6

sources: JVNDB: JVNDB-2018-015212 // CNNVD: CNNVD-201904-134

EXTERNAL IDS

db:NVDid:CVE-2018-4300

Trust: 2.9

db:BIDid:107785

Trust: 2.0

db:JVNDBid:JVNDB-2018-015212

Trust: 0.8

db:CNNVDid:CNNVD-201904-134

Trust: 0.7

db:AUSCERTid:ESB-2019.3656

Trust: 0.6

db:PACKETSTORMid:148927

Trust: 0.2

db:VULHUBid:VHN-134331

Trust: 0.1

sources: VULHUB: VHN-134331 // BID: 107785 // JVNDB: JVNDB-2018-015212 // PACKETSTORM: 148927 // CNNVD: CNNVD-201904-134 // NVD: CVE-2018-4300

REFERENCES

url:http://www.securityfocus.com/bid/107785

Trust: 2.3

url:https://github.com/apple/cups/releases/tag/v2.2.10

Trust: 2.0

url:https://lists.debian.org/debian-lts-announce/2019/09/msg00028.html

Trust: 1.7

url:https://nvd.nist.gov/vuln/detail/cve-2018-4300

Trust: 1.5

url:http://www.cups.org

Trust: 0.9

url:https://bugzilla.redhat.com/show_bug.cgi?id=1695929

Trust: 0.9

url:https://access.redhat.com/security/cve/cve-2018-4300

Trust: 0.9

url:https://cve.mitre.org/cgi-bin/cvename.cgi?name=cve-2018-4300

Trust: 0.8

url:https://www.auscert.org.au/bulletins/esb-2019.3656/

Trust: 0.6

url:https://smartcardservices.github.io/security/

Trust: 0.1

url:https://smartcardservices.github.io/

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2018-4301

Trust: 0.1

url:https://www.x41-dsec.de/lab/advisories/x41-2018-005-smartcardservices/

Trust: 0.1

sources: VULHUB: VHN-134331 // BID: 107785 // JVNDB: JVNDB-2018-015212 // PACKETSTORM: 148927 // CNNVD: CNNVD-201904-134 // NVD: CVE-2018-4300

CREDITS

Unknown

Trust: 0.9

sources: BID: 107785 // CNNVD: CNNVD-201904-134

SOURCES

db:VULHUBid:VHN-134331
db:BIDid:107785
db:JVNDBid:JVNDB-2018-015212
db:PACKETSTORMid:148927
db:CNNVDid:CNNVD-201904-134
db:NVDid:CVE-2018-4300

LAST UPDATE DATE

2024-11-23T22:41:30.696000+00:00


SOURCES UPDATE DATE

db:VULHUBid:VHN-134331date:2019-09-28T00:00:00
db:BIDid:107785date:2019-04-03T00:00:00
db:JVNDBid:JVNDB-2018-015212date:2019-05-13T00:00:00
db:CNNVDid:CNNVD-201904-134date:2019-09-30T00:00:00
db:NVDid:CVE-2018-4300date:2024-11-21T04:07:09.083

SOURCES RELEASE DATE

db:VULHUBid:VHN-134331date:2019-04-03T00:00:00
db:BIDid:107785date:2019-04-03T00:00:00
db:JVNDBid:JVNDB-2018-015212date:2019-05-13T00:00:00
db:PACKETSTORMid:148927date:2018-08-14T19:32:22
db:CNNVDid:CNNVD-201904-134date:2019-04-03T00:00:00
db:NVDid:CVE-2018-4300date:2019-04-03T18:29:06.017