CWE-340 · Słabość
Generation of Predictable Numbers or Identifiers
- Abstrakcja
- Klasa
- Status
- Niekompletny
- Dodano
- 19 lipca 2006
- Ostatnia zmiana
- 11 grudnia 2025
Opis
The product uses a scheme that generates numbers or identifiers that are more predictable than required.
Skutki
Other
Varies by Context
Przykłady podatności
- CVE-2022-29330 Product for administering PBX systems uses predictable identifiers and timestamps for filenames (CWE-340) which allows attackers to access files via direct request (CWE-425).
- CVE-2001-1141 PRNG allows attackers to use the output of small PRNG requests to determine the internal state information, which could be used by attackers to predict future pseudo-random numbers.
- CVE-1999-0074 Listening TCP ports are sequentially allocated, allowing spoofing attacks.
Słabość nadrzędna
Może prowadzić do
Słabości podrzędne
Kiedy powstaje
- Architecture and Design
- Implementation
Dotyczy
Not Language-Specific
Uwagi
As of CWE 4.5, terminology related to randomness, entropy, and predictability can vary widely. Within the developer and other communities, "randomness" is used heavily. However, within cryptography, "entropy" is distinct, typically implied as a measurement. There are no commonly-used definitions, even within standards documents and cryptography papers. Future versions of CWE will attempt to define these terms and, if necessary, distinguish between them in ways that are appropriate for different communities but do not reduce the usability of CWE for mapping, understanding, or other scenarios.
Źródła
- 24 Deadly Sins of Software Security — Michael Howard, David LeBlanc, John Viega, "Sin 20: Weak Random Numbers." Page 299, McGraw-Hill, 2010
Wpis z katalogu CWE 4.20.