CWE-123: Write-what-where Condition

CWE-123 là gì?

CWE-123 là Write-what-where Condition. Lỗi phát sinh khi any condition where the attacker has the ability to write an arbitrary value to an arbitrary location, often as the result of a buffer overflow. Hiện có 17 lỗ hổng trong kho dữ liệu liên quan đến CWE-123 và không có lỗ hổng nào nằm trong danh mục khai thác thực tế của CISA.

Thứ hạng OWASP Top 10-
Tổng số CVE liên quan (365 ngày)17
Mức trừu tượngCơ bản
Khả năng khai thácCao

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

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

Không có dữ liệu

Chưa có dữ liệu về lỗ hổng trong CISA KEV cho CWE-123

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

TheoMitre CWE

Đặc điểm

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

Giai đoạn hình thành

  • Hiện thực hóa

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

Dữ liệu MITRE CWE chính thức
Tác độngPhạm viDiễn giải
Thay đổi bộ nhớ, Thực thi mã hoặc lệnh trái phép, Chiếm đặc quyền hoặc mạo danh, Từ chối dịch vụ: sập, thoát hoặc khởi động lại, Vượt qua cơ chế bảo vệTính toàn vẹn, Tính bí mật, Tính sẵn sàng, Kiểm soát truy cậpClearly, write-what-where conditions can be used to write data to areas of memory outside the scope of a policy. Also, they almost invariably can be used to execute arbitrary code, which is usually outside the scope of a program's implicit security policy. If the attacker can overwrite a pointer's worth of memory (usually 32 or 64 bits), they can redirect a function pointer to their own malicious code. Even when the attacker can only modify a single byte arbitrary code execution can be possible. Sometimes this is because the same problem can be exploited repeatedly to the same effect. Other times it is because the attacker can overwrite security-critical application-specific data -- such as a flag indicating whether the user is an administrator.
Từ chối dịch vụ: sập, thoát hoặc khởi động lại, Thay đổi bộ nhớTính toàn vẹn, Tính sẵn sàngMany memory accesses can lead to program termination, such as when writing to addresses that are invalid for the current process.
Vượt qua cơ chế bảo vệ, KhácKiểm soát truy cập, KhácWhen the consequence is arbitrary code execution, this can often be used to subvert any other security service.

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

Dữ liệu MITRE CWE chính thức
  1. Lựa chọn ngôn ngữ · Kiến trúc và thiết kếUse a language that provides appropriate memory abstractions.
  2. Vận hànhUse OS-level preventative functionality integrated after the fact. Not a complete solution.

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.)Cao
Phân tích động tự độngUse tools that are integrated during compilation to insert runtime error-checking mechanisms related to memory safety errors, such as AddressSanitizer (ASan) for C/C++ [REF-1518].Crafted inputs are necessary to reach the code containing the error, such as generated by fuzzers. Also, these tools may reduce performance, and they only report the error condition - not the original mistake that led to the error.Khá

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

Nguồn (5)

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.