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

目标: 1000 元 · 已筹: 1359 元

100%

CWE-797 仅在一个绝对路径位置过滤特殊元素 类漏洞列表 1

CWE-797 仅在一个绝对路径位置过滤特殊元素 类弱点 1 条 CVE 漏洞汇总,含 AI 中文分析。

MITRE CWE 官方描述
The product receives data from an upstream component, but only accounts for special elements at an absolute position (e.g. "byte number 10"), thereby missing remaining special elements that may exist before sending it to a downstream component.
常见影响 (1)
Integrity Unexpected State
代码示例 (1)
The following code takes untrusted input and uses a substring function to filter a 3-character "../" element located at the 0-index position of the input string. It then appends this result to the /home/user/ directory and attempts to read the file in the final resulting path.
my $Username = GetUntrustedInput(); if (substr($Username, 0, 3) eq '../') { $Username = substr($Username, 3); } my $filename = "/home/user/" . $Username; ReadAndSendFile($filename);
Bad · Perl
../../../etc/passwd
Attack
CVE ID 标题 CVSS 风险等级 Published
CVE-2026-59107 vSolution Matrix 共享 SSH 密钥漏洞 — Cynap Pro, Cynap Core Pro 9.8 Critical 2026-10-26

CWE-797(仅在一个绝对路径位置过滤特殊元素) 是常见的弱点类别,本平台收录该类弱点关联的 1 条 CVE 漏洞。