Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CWE-354 (完整性检查值验证不恰当) — Vulnerability Class 83

83 vulnerabilities classified as CWE-354 (完整性检查值验证不恰当). AI Chinese analysis included.

CWE-354 represents a critical integrity verification weakness where software fails to properly validate checksums or integrity check values associated with incoming data. This flaw typically allows attackers to exploit the system by intercepting and modifying messages during transmission, effectively bypassing detection mechanisms that should identify corrupted or tampered content. Without rigorous validation, the application may process maliciously altered data, leading to severe consequences such as data corruption, unauthorized access, or system instability. Developers can mitigate this risk by strictly implementing cryptographic hashing algorithms, such as SHA-256, to generate and verify unique integrity signatures for all critical data packets. Ensuring that every received message is authenticated against its expected hash value before processing guarantees data authenticity and prevents the execution of compromised instructions or the acceptance of forged inputs.

MITRE CWE Description
The product does not validate or incorrectly validates the integrity check values or "checksums" of a message. This may prevent it from detecting if the data has been modified or corrupted in transmission. Improper validation of checksums before use results in an unnecessary risk that can easily be mitigated. The protocol specification describes the algorithm used for calculating the checksum. It is then a simple matter of implementing the calculation and verifying that the calculated checksum and the received checksum match. Improper verification of the calculated checksum and the received checksum can lead to far greater consequences.
Common Consequences (3)
Integrity, Other Modify Application Data, Other
Integrity checks usually use a secret key that helps authenticate the data origin. Skipping integrity checking generally opens up the possibility that new data from an invalid source can be injected.
Integrity, Other Other
Data that is parsed and used may be corrupted.
Non-Repudiation, Other Hide Activities, Other
Without a checksum check, it is impossible to determine if any changes have been made to the data after it was sent.
Mitigations (1)
Implementation Ensure that the checksums present in messages are properly checked in accordance with the protocol specification before they are parsed and used.
Examples (1)
The following example demonstrates the weakness.
sd = socket(AF_INET, SOCK_DGRAM, 0); serv.sin_family = AF_INET; serv.sin_addr.s_addr = htonl(INADDR_ANY); servr.sin_port = htons(1008); bind(sd, (struct sockaddr *) & serv, sizeof(serv)); while (1) { memset(msg, 0x0, MAX_MSG); clilen = sizeof(cli); if (inet_ntoa(cli.sin_addr)==...) n = recvfrom(sd, msg, MAX_MSG, 0, (struct sockaddr *) & cli, &clilen); }
Bad · C
while(true) { DatagramPacket packet = new DatagramPacket(data,data.length,IPAddress, port); socket.send(sendPacket); }
Bad · Java
CVE ID Title CVSS Severity Published
CVE-2023-28002 Fortinet FortiOS 安全漏洞 — FortiOS 5.8 Medium 2023-11-14
CVE-2023-4929 NPort 5000 Series Firmware Improper Validation of Integrity Check Vulnerability — NPort 5000AI-M12 Series 6.5 Medium 2023-10-03
CVE-2023-2975 AES-SIV implementation ignores empty associated data entries — OpenSSL 7.5 - 2023-07-14
CVE-2023-36537 Zoom Rooms 安全漏洞 — Zoom Rooms for Windows 7.3 High 2023-07-11
CVE-2023-34459 OpenZeppelin Contracts's MerkleProof multiproofs may allow proving arbitrary leaves for specific trees — openzeppelin-contracts 5.3 Medium 2023-06-16
CVE-2023-28386 Snap One OvrC Pro 数据伪造问题漏洞 — OvrC Cloud 8.6 High 2023-05-22
CVE-2016-15028 ICEPAY REST-API-NET Checksum Validation RestClient.cs RestClient integrity check — REST-API-NET 4.8 Medium 2023-03-12
CVE-2022-45142 Red Hat Enterprise Linux 安全漏洞 — Samba 9.1 - 2023-03-06
CVE-2022-39845 SAMSUNG Kies 安全漏洞 — Samsung Kies 5.5 Medium 2022-09-09
CVE-2022-39844 SAMSUNG Smart Switch PC 安全漏洞 — Smart Switch PC 5.5 Medium 2022-09-09
CVE-2022-35961 ECDSA signature malleability in OpenZeppelin Contracts — openzeppelin-contracts 7.9 High 2022-08-14
CVE-2022-33711 SAMSUNG USB Driver 安全漏洞 — Samsung USB Driver Windows Installer for Mobile Phones 7.1 - 2022-07-11
CVE-2021-37182 Siemens SCALANCE 安全漏洞 — SCALANCE XM408-4C 9.8 - 2022-06-14
CVE-2022-29898 Remote Code Execution in all versions of various RAD-ISM-900-EN-* devices by PHOENIX CONTACT — RAD-ISM-900-EN-BD/B 9.1 Critical 2022-05-11
CVE-2022-29173 No protection against rollback attacks in go-tuf — go-tuf 8.0 High 2022-05-05
CVE-2022-25946 F5 BIG-IP 安全漏洞 — BIG-IP (Advanced WAF, APM, ASM) 8.7 High 2022-05-05
CVE-2021-4148 Linux kernel 安全漏洞 — kernel 5.5 - 2022-03-23
CVE-2021-3772 Linux kernel 安全漏洞 — kernel 5.9 - 2022-03-02
CVE-2021-41206 Incomplete validation of shapes in multiple TF ops — tensorflow 7.0 High 2021-11-05
CVE-2021-20184 Moodle 信息泄露漏洞 — moodle 4.3 - 2021-01-28
CVE-2019-10155 Libreswan 输入验证错误漏洞 — libreswan 4.2 - 2019-06-12
CVE-2017-3224 Open Shortest Path First (OSPF) protocol implementations may improperly determine LSA recency in affected Quagga and downstream implementations (SUSE, openSUSE, and Red Hat packages) — Protocol 6.9 - 2018-07-24
CVE-2018-5441 PHOENIX CONTACT mGuard 安全漏洞 — PHOENIX CONTACT mGuard 8.1 - 2018-01-30

Vulnerabilities classified as CWE-354 (完整性检查值验证不恰当) represent 83 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.