CWE-337: Predictable Seed in Pseudo-Random Number Generator (PRNG)

CWE-337 là gì?

CWE-337 là Predictable Seed in Pseudo-Random Number Generator (PRNG). Lỗi phát sinh khi A Pseudo-Random Number Generator (PRNG) is initialized from a predictable seed, such as the process ID or system time.

THỨ HẠNG OWASP TOP 10:20254 — A04:2025 — Cryptographic Failures
Tổng số CVE liên quan (365 ngày)-
Mức trừu tượngBiến thể
Khả năng khai thác-

Không có dữ liệu

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

Không có dữ liệu

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

Đị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: REALIZATION: This weakness is caused during implementation of an architectural security tactic.

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

Dữ liệu MITRE CWE chính thức
Tác độngPhạm viDiễn giải
Vượt qua cơ chế bảo vệ, Thay đổi tùy ngữ cảnhKhácThe use of predictable seeds significantly reduces the number of possible seeds that an attacker would need to test in order to predict which random numbers will be generated by the PRNG. A protection mechanism that depends on a PRNG could be compromised.

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

Dữ liệu MITRE CWE chính thức
  1. Use non-predictable inputs for seed generation.
  2. Thư viện hoặc framework · Kiến trúc và thiết kế, Yêu cầuUse products or modules that conform to FIPS 140-2 [REF-267] to avoid obvious entropy problems, or use the more recent FIPS 140-3 [REF-1192] if possible.
  3. Hiện thực hóaUse a PRNG that periodically re-seeds itself using input from high-quality sources, such as hardware devices with high entropy. However, do not re-seed too frequently, or else the entropy source might block.

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

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.