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

目标: 1000 元 · 已筹: 1336

100%

CWE-23 相对路径遍历 类漏洞列表 439

CWE-23 相对路径遍历 类弱点 439 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-23 相对路径遍历漏洞源于软件未正确过滤外部输入中的“..”序列,导致构造的文件路径突破受限目录边界。攻击者通常利用此缺陷读取或修改系统敏感文件,获取未授权访问权限。开发者应避免直接使用用户输入拼接路径,需通过白名单验证、规范化路径或限制访问范围来彻底中和危险字符,从而防止路径逃逸。

MITRE CWE 官方描述
CWE:CWE-23 Relative Path Traversal(相对路径遍历) 英文:产品使用外部输入来构建一个应位于受限目录内的路径名,但它未能正确中和(neutralize)诸如“..”之类的序列,这些序列可解析为该目录之外的位置。
常见影响 (4)
Integrity, Confidentiality, Availability Execute Unauthorized Code or Commands
The attacker may be able to create or overwrite critical files that are used to execute code, such as programs or libraries.
Integrity Modify Files or Directories
The attacker may be able to overwrite or create critical files, such as programs, libraries, or important data. If the targeted file is used for a security mechanism, then the attacker may be able to bypass that mechanism. For example, appending a new account at the end of a password file may allow …
Confidentiality Read Files or Directories
The attacker may be able read the contents of unexpected files and expose sensitive data by traversing the file system to access files or directories that are outside of the restricted directory. If the targeted file is used for a security mechanism, then the attacker may be able to bypass that mech…
Availability DoS: Crash, Exit, or Restart
The attacker may be able to overwrite, delete, or corrupt unexpected critical files such as programs, libraries, or important data. This may prevent the product from working at all and in the case of a protection mechanisms such as authentication, it has the potential to lockout every user of the pr…
缓解措施 (3)
Implementation Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range…
Implementation Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked. Use a built-in path canonicalization function (such as realpath(…
Operation Use an application firewall that can detect attacks against this weakness. It can be beneficial in cases in which the code cannot be fixed (because it is controlled by a third party), as an emergency prevention measure while more comprehensive software assurance measures are applied, or to provide defense in depth [REF-1481].
Effectiveness: Moderate
代码示例 (2)
The following URLs are vulnerable to this attack:
http://example.com/get-files.jsp?file=report.pdf http://example.com/get-page.php?home=aaa.html http://example.com/some-page.asp?page=index.html
Bad · Other
http://example.com/get-files?file=../../../../somedir/somefile http://example.com/../../../../etc/shadow http://example.com/get-files?file=../../../../etc/passwd
Attack · Other
The following code could be for a social networking application in which each user's profile information is stored in a separate file. All files are stored in a single directory.
my $dataPath = "/users/cwe/profiles"; my $username = param("user"); my $profilePath = $dataPath . "/" . $username; open(my $fh, "<", $profilePath) || ExitError("profile read error: $profilePath"); print "<ul>\n"; while (<$fh>) { print "<li>$_</li>\n"; } print "</ul>\n";
Bad · Perl
../../../etc/passwd
Attack
CVE ID 标题 CVSS 风险等级 Published
CVE-2021-32954 Advantech WebAccess/SCADA 路径遍历漏洞 — Advantech WebAccess/SCADA 7.5 - 2021-06-18
CVE-2021-24035 Facebook WhatsApp for Android 路径遍历漏洞 — WhatsApp Business for Android 9.1 - 2021-06-11
CVE-2021-29488 SABnzbd 安全漏洞 — sabnzbd 4.3 Medium 2021-05-07
CVE-2021-29101 Esri GeoEvent Server 路径遍历漏洞 — ArcGIS GeoEvent Server 7.5 - 2021-05-05
CVE-2021-29100 ESRI ArcGIS Earth 路径遍历漏洞 — ArcGIS Earth 7.8 - 2021-05-05
CVE-2020-4039 susi_server 路径遍历漏洞 — susi_server 8.6 High 2021-04-30
CVE-2020-7861 AnySupport 路径遍历漏洞 — AquaNPlayer 8.4 High 2021-04-22
CVE-2020-8570 Kubernetes 路径遍历漏洞 — Kubernetes Java Client 7.5 - 2021-01-21
CVE-2020-17518 Apache Flink 路径遍历漏洞 — Apache Flink 7.5 - 2021-01-05
CVE-2019-19287 Siemens XHQ 信息泄露漏洞 — XHQ 7.5 - 2020-12-14
CVE-2020-8271 Citrix Systems SD-WAN Center 路径遍历漏洞 — Citrix SD-WAN Center 9.8 - 2020-11-16
CVE-2020-25172 B. Braun Melsungen AG OnlineSuite AP 路径遍历漏洞 — OnlineSuite 9.8 - 2020-11-06
CVE-2020-8254 Pulse Secure Pulse Desktop Client 路径遍历漏洞 — Pulse Secure Desktop Client 8.8 - 2020-10-28
CVE-2019-17640 Eclipse Vert.x 路径遍历漏洞 — Eclipse Vert.x 9.8 - 2020-10-15
CVE-2020-3597 Cisco Nexus Data Broker 路径遍历漏洞 — Cisco Nexus Data Broker 5.4 Medium 2020-10-08
CVE-2020-1904 Facebook WhatsApp 路径遍历漏洞 — WhatsApp for iOS 5.5 - 2020-10-06
CVE-2020-7376 Rapid7 Metasploit Framework 安全漏洞 — Metasploit Framework 7.1 High 2020-08-24
CVE-2020-7377 Metasploit Framework module 路径遍历漏洞 — Metasploit Framework 8.1 High 2020-08-24
CVE-2020-5410 VMware Spring Cloud Config 路径遍历漏洞 — Spring Cloud Config 6.5 - 2020-06-02
CVE-2020-12026 Advantech WebAccess Node 路径遍历漏洞 — Advantech WebAccess Node 8.1 - 2020-05-08
CVE-2020-12006 Advantech WebAccess Node 路径遍历漏洞 — Advantech WebAccess Node 8.1 - 2020-05-08
CVE-2020-12010 Advantech WebAccess Node 路径遍历漏洞 — Advantech WebAccess Node 6.6 - 2020-05-08
CVE-2020-10619 Advantech WebAccess/NMS 路径遍历漏洞 — WebAccess/NMS 9.1 - 2020-04-09
CVE-2020-10631 Advantech WebAccess/NMS 路径遍历漏洞 — WebAccess/NMS 9.8 - 2020-04-09
CVE-2020-7008 VISAM VBASE Editor和VBASE Web-Remote Module 路径遍历漏洞 — VBASE Editor 7.5 - 2020-04-03
CVE-2020-5284 ZEIT Next.js 路径遍历漏洞 — next.js 4.4 Medium 2020-03-30
CVE-2020-5280 http4s 路径遍历漏洞 — http4s 7.6 High 2020-03-25
CVE-2020-8865 Horde Groupware Webmail 路径遍历漏洞 — Groupware Webmail Edition 8.8 - 2020-03-23
CVE-2020-5405 Pivotal Software Spring Cloud Config 路径遍历漏洞 — Spring Cloud Config 6.5 - 2020-03-05
CVE-2020-5237 OneuploaderBundle 路径遍历漏洞 — oneup/uploader-bundle 8.8 High 2020-02-05

CWE-23(相对路径遍历) 是常见的弱点类别,本平台收录该类弱点关联的 439 条 CVE 漏洞。