CWE-61: UNIX Symbolic Link (Symlink) Following

CWE-61 là gì?

CWE-61 là UNIX Symbolic Link (Symlink) Following. Lỗi phát sinh khi the product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. Hiện có 78 lỗ hổng trong kho dữ liệu liên quan đến CWE-61 và 1 trong số đó nằm trong danh mục khai thác thực tế của CISA.

Thứ hạng OWASP Top 10 (2025)1 — A01:2025 — Broken Access Control
Tổng số CVE liên quan (365 ngày)78
Mức trừu tượngHợp thành
Khả năng khai thácCao

Số lượng lỗ hổng nằm trong CWE-61

78 lỗ hổngTăng 388% so với cùng kỳ

Số lượng lỗ hổng trong CISA KEV của CWE-61

1 lỗ hổng

Định nghĩa chính thức

TheoMitre CWE

Đặc điểm

Dữ liệu MITRE CWE chính thức

Tên gọi khác

  • Symlink following
  • symlink vulnerability

Giai đoạn hình thành

  • Hiện thực hóa: These are typically reported for temporary files or privileged programs.

Hậu quả thường gặp

Dữ liệu MITRE CWE chính thức
Tác độngPhạm viDiễn giải
Đọc tệp hoặc thư mục, Thay đổi tệp hoặc thư mụcTính bí mật, Tính toàn vẹnA product that allows a symbolic link (symlink) as part of a path - whether in internal code or through user input - can allow an attacker to spoof the symbolic link and traverse the file system to unintended locations or access arbitrary files. An attacker could read, write, or /corrupt a file that they originally did not have permissions to access directly.

Biện pháp giảm thiểu rủi ro

Dữ liệu MITRE CWE chính thức
  1. Hiện thực hóaSymbolic link attacks often occur when a program creates a tmp directory that stores files/links. Access to the directory should be restricted to the program as to prevent attackers from manipulating the files.
  2. Phân tách đặc quyền · Kiến trúc và thiết kếFollow the principle of least privilege when assigning access rights to entities in a software system. Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.

Cách phát hiện trong hệ thống

Dữ liệu MITRE CWE chính thức
Phương phápCách làmHiệu quả
Phân tích tĩnh tự độngAutomated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)-

Lỗ hổng điển hình

Dữ liệu MITRE CWE chính thức

Dưới đây là các lỗ hổng tiêu biểu liên quan đến CWE-61, dựa theo mức độ ưu tiên

Nguồn (4)

CWE™ Program, operated by The MITRE Corporation. Copyright © 2006–2026, The MITRE Corporation. The MITRE Corporation hereby grants you a non-exclusive, royalty-free license to use CWE for research, development, and commercial purposes. CWE Terms of Use.

Tìm hiểu thêm

Kiểm tra chuyên sâu cùng giải pháp quản lý rủi ro Web toàn diện

Giải pháp CyStack VulnScan liên tục phát hiện tài sản, xác minh lỗ hổng và giúp đội ngũ bảo mật ưu tiên khắc phục cho toàn bộ doanh nghiệp.