CWE-130: Improper Handling of Length Parameter Inconsistency

CWE-130 là gì?

CWE-130 là Improper Handling of Length Parameter Inconsistency. Lỗi phát sinh khi the product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data. Hiện có 39 lỗ hổng trong kho dữ liệu liên quan đến CWE-130 và 1 trong số đó nằm trong danh mục khai thác thực tế của CISA.

Đang phân tích dữ liệu...

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

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

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

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

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

  • length manipulation
  • length tampering

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
Đọc bộ nhớ, Thay đổi bộ nhớ, Thay đổi tùy ngữ cảnhTính bí mật, Tính toàn vẹn-

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óaWhen processing structured incoming data containing a size field followed by raw data, ensure that you identify and resolve any inconsistencies between the size field and the actual size of the data.
  2. Hiện thực hóaDo not let the user control the size of the buffer.
  3. Hiện thực hóaValidate that the length of the user-supplied data is consistent with the buffer size.

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

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-130, dựa theo mức độ ưu tiên

Nguồn (2)

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.