目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1325

100%

CWE-367 检查时间与使用时间(TOCTOU)的竞争条件 类漏洞列表 356

CWE-367 检查时间与使用时间(TOCTOU)的竞争条件 类弱点 356 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-367 属于竞态条件漏洞,指系统在检查资源状态后、实际使用前,资源状态发生不可控变化,导致检查失效。攻击者利用这一时间窗口,通过并发操作篡改资源,从而绕过安全验证或执行未授权操作。开发者应避免在检查与使用间插入耗时操作,采用原子性操作或加锁机制确保状态一致性,以消除竞争条件带来的安全风险。

MITRE CWE 官方描述
CWE:CWE-367 检查时-使用时(TOCTOU)竞态条件 英文:产品在利用资源之前会检查该资源的状态,但在检查与利用之间,资源的状态可能发生变化,从而导致检查结果失效。
常见影响 (6)
Integrity, OtherAlter Execution Logic, Unexpected State
The attacker can gain access to otherwise unauthorized resources.
Integrity, OtherModify Application Data, Modify Files or Directories, Modify Memory, Other
Race conditions such as this kind may be employed to gain read or write access to resources which are not normally readable or writable by the user in question.
Integrity, OtherOther
The resource in question, or other resources (through the corrupted one), may be changed in undesirable ways by a malicious user.
Non-RepudiationHide Activities
If a file or other resource is written in this method, as opposed to in a valid way, logging of the activity may not occur.
Non-Repudiation, OtherOther
In some cases it may be possible to delete files a malicious user might not otherwise have access to, such as log files.
缓解措施 (5)
ImplementationThe most basic advice for TOCTOU vulnerabilities is to not perform a check before the use. This does not resolve the underlying issue of the execution of a function on a resource whose state and identity cannot be assured, but it does help to limit the false sense of security given by the check.
ImplementationWhen the file being altered is owned by the current user and group, set the effective gid and uid to that of the current user and group when executing this statement.
Architecture and DesignLimit the interleaving of operations on files from multiple processes.
Implementation, Architecture and DesignIf you cannot perform operations atomically and you must share access to the resource between multiple processes or threads, then try to limit the amount of time (CPU cycles) between the check and use of the resource. This will not fix the problem, but it could make it more difficult for an attack to succeed.
ImplementationRecheck the resource after the use call to verify that the action was taken appropriately.
代码示例 (2)
The following code checks a file, then updates its contents.
struct stat *sb; ... lstat("...",sb); // it has not been updated since the last time it was read printf("stated file\n"); if (sb->st_mtimespec==...){ print("Now updating things\n"); updateThings(); }
Bad · C
The following code is from a program installed setuid root. The program performs certain file operations on behalf of non-privileged users, and uses access checks to ensure that it does not use its root privileges to perform operations that should otherwise be unavailable the current user. The program uses the access() system call to check if the person running the program has permission to access…
if(!access(file,W_OK)) { f = fopen(file,"w+"); operate(f); ... } else { fprintf(stderr,"Unable to open file %s.\n",file); }
Bad · C
CVE ID标题CVSS风险等级Published
CVE-2023-3891 Lapce 安全漏洞 — Lapce 7.3 High2023-09-15
CVE-2023-4155 Linux kernel 安全漏洞 — kernel 5.3 Medium2023-09-13
CVE-2023-38141 Microsoft Windows Kernel 安全漏洞 — Windows 10 Version 1809 7.8 High2023-09-12
CVE-2023-38146 Microsoft Windows Themes 安全漏洞 — Windows 11 version 21H2 8.8 High2023-09-12
CVE-2023-28075 Dell BIOS 安全漏洞 — CPG BIOS 6.9 Medium2023-08-16
CVE-2023-35378 Microsoft Projected File System 竞争条件问题漏洞 — Windows 10 Version 1809 7.0 High2023-08-08
CVE-2023-28576 Qualcomm Chipsets 安全漏洞 — Snapdragon 6.4 Medium2023-08-08
CVE-2023-35311 Microsoft Outlook 安全漏洞 — Microsoft 365 Apps for Enterprise 8.8 High2023-07-11
CVE-2023-33156 Microsoft Defender 安全漏洞 — Microsoft Malware Protection Engine 6.3 Medium2023-07-11
CVE-2023-33154 Microsoft Windows Partition Management Driver 安全漏洞 — Windows 10 Version 1809 7.8 High2023-07-11
CVE-2023-1295 Linux kernel 安全漏洞 — Linux Kernel 7.8 High2023-06-28
CVE-2022-4149 Netskope 安全漏洞 — Netskope Client 7.0 High2023-06-15
CVE-2023-29337 Microsoft NuGet Client 安全漏洞 — NuGet 6.2.3 7.1 High2023-06-14
CVE-2023-2007 DPT I2O Controller driver 安全漏洞 — Linux kernel's DPT I2O Controller driver 7.8 -2023-04-24
CVE-2023-1586 AVG Technologies AVG Antivirus 安全漏洞 — Avast Antivirus 6.5 Medium2023-04-19
CVE-2023-1585 AVG Technologies AVG Antivirus 安全漏洞 — Avast Antivirus 6.5 Medium2023-04-19
CVE-2023-0006 Palo Alto Networks GlobalProtect 安全漏洞 — GlobalProtect app 6.3 Medium2023-04-12
CVE-2022-33270 Qualcomm Chipsets 安全漏洞 — Snapdragon 7.5 High2023-04-04
CVE-2022-3093 Tesla 安全漏洞 — Model 3 6.4 -2023-03-29
CVE-2022-36980 Ivanti Avalanche 安全漏洞 — Avalanche 9.8 -2023-03-29
CVE-2023-0778 Podman 安全漏洞 — podman 6.8 -2023-03-27
CVE-2023-22883 Zoom Client 安全漏洞 — Zoom Client for Meetings for IT Admin Windows installers 7.2 High2023-03-16
CVE-2023-24861 Microsoft Windows Win32K 竞争条件问题漏洞 — Windows 10 Version 1809 7.0 High2023-03-14
CVE-2023-23389 Microsoft Defender 安全漏洞 — Microsoft Malware Protection Engine 6.3 Medium2023-03-14
CVE-2022-33257 Qualcomm 芯片 安全漏洞 — Snapdragon 9.3 Critical2023-03-07
CVE-2022-34398 Dell BIOS 安全漏洞 — CPG BIOS 7.5 High2023-02-01
CVE-2023-21555 Microsoft Windows 安全漏洞 — Windows 10 Version 1809 8.1 High2023-01-10
CVE-2023-21537 Microsoft Message Queuing 安全漏洞 — Windows 10 Version 1809 7.8 High2023-01-10
CVE-2022-36927 Zoom Rooms 安全漏洞 — Zoom Rooms for macOS 8.8 High2023-01-09
CVE-2022-36929 Zoom Rooms 安全漏洞 — Zoom Rooms for Windows 7.8 High2023-01-09

CWE-367(检查时间与使用时间(TOCTOU)的竞争条件) 是常见的弱点类别,本平台收录该类弱点关联的 356 条 CVE 漏洞。