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

目标: 1000 元 · 已筹: 1336

100%

CWE-379 在具有不安全权限的目录中创建临时文件 类漏洞列表 47

CWE-379 在具有不安全权限的目录中创建临时文件 类弱点 47 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-379属于临时文件权限配置不当漏洞。当程序在权限过宽的目录中创建临时文件时,未授权用户可探测文件存在并推断应用身份,进而可能利用竞争条件或符号链接进行攻击。开发者应确保临时目录权限严格受限,仅允许目标进程访问,或使用原子操作创建文件,避免暴露敏感信息或引发权限提升风险。

MITRE CWE 官方描述
CWE:CWE-379 在权限不安全的目录中创建临时文件 英文:该产品在目录中创建临时文件,而该目录的权限允许非预期实体确定该文件的存在或访问该文件。 在某些操作系统上,临时文件的存在对于拥有足够权限访问该目录的任何用户而言都是显而易见的。由于该文件可见,使用临时文件的应用程序可能会被识别。如果攻击者能够访问系统上的进程列表,则其已获取关于用户当时正在执行的操作的信息。通过将此信息与用户正在运行的应用程序相关联,攻击者有可能发现用户的操作行为。由此,可能导致更高级别的安全防护被突破。
常见影响 (1)
ConfidentialityRead Application Data
Since the file is visible and the application which is using the temp file could be known, the attacker has gained information about what the user is doing at that time.
缓解措施 (3)
RequirementsMany contemporary languages have functions which properly handle this condition. Older C temp file functions are especially susceptible.
ImplementationTry to store sensitive tempfiles in a directory which is not world readable -- i.e., per-user directories.
ImplementationAvoid using vulnerable temp file functions.
代码示例 (1)
In the following code examples a temporary file is created and written to. After using the temporary file, the file is closed and deleted from the file system.
FILE *stream; if( (stream = tmpfile()) == NULL ) { perror("Could not open new temporary file\n"); return (-1); } // write data to tmp file ... // remove tmp file rmtmp();
Bad · C
try { File temp = File.createTempFile("pattern", ".suffix"); temp.deleteOnExit(); BufferedWriter out = new BufferedWriter(new FileWriter(temp)); out.write("aString"); out.close(); } catch (IOException e) { }
Bad · Java
CVE ID标题CVSS风险等级Published
CVE-2021-39828 Adobe Digital Editions 安全漏洞 — Digital Editions 5.8 Medium2021-09-27
CVE-2021-39827 Adobe Digital Editions 安全漏洞 — Digital Editions 6.5 Medium2021-09-27
CVE-2021-28613 Adobe Creative Cloud Desktop Application 访问控制错误漏洞 — Creative Cloud (desktop component) 7.4 High2021-09-27
CVE-2021-28568 Adobe Genuine Software Service 访问控制错误漏洞 — GoCart 5.8 Medium2021-09-08
CVE-2021-36002 Adobe Captivate 安全漏洞 — Captivate 5.0 Medium2021-09-01
CVE-2021-28633 Creative Cloud Desktop Application 安全漏洞 — Creative Cloud (desktop component) 6.1 Medium2021-08-24
CVE-2021-28623 Adobe Premiere Elements 安全漏洞 — Premiere 6.2 -2021-06-28
CVE-2021-28597 Adobe Photoshop 安全漏洞 — Photoshop Elements 6.2 -2021-06-28
CVE-2021-31411 Vaadin flow 安全漏洞 — Vaadin 6.3 Medium2021-05-05
CVE-2021-21100 Adobe Digital Editions 安全漏洞 — Digital Editions 7.8 High2021-04-15
CVE-2021-29428 Gradle 安全漏洞 — gradle 8.8 High2021-04-13
CVE-2021-21068 Adobe Creative Cloud Desktop Application 安全漏洞 — Creative Cloud (desktop component) 6.6 -2021-03-12
CVE-2021-21363 HugoMario swagger-codegen 安全漏洞 — swagger-codegen 5.3 Medium2021-03-11
CVE-2021-21331 Datadog API 安全漏洞 — datadog-api-client-java 3.0 Low2021-03-03
CVE-2020-8831 Apport 后置链接漏洞 — Apport 6.5 Medium2020-04-22
CVE-2016-9486 ForeScout CounterACT 权限许可和访问控制漏洞 — Windows SecureConnector agent 7.8 -2018-07-13
CVE-2013-1815 OpenStack PackStack 不安全文件创建漏洞 — Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) 6.1 Medium2013-04-10

CWE-379(在具有不安全权限的目录中创建临时文件) 是常见的弱点类别,本平台收录该类弱点关联的 47 条 CVE 漏洞。