[Forgot Password]
Login  Register Subscribe

30479

 
 

423868

 
 

250038

 
 

909

 
 

195843

 
 

282

Paid content will be excluded from the download.


Download | Alert*
CWE
view XML

Predictable Exact Value from Previous Values

ID: 342Date: (C)2012-05-14   (M)2022-10-10
Type: weaknessStatus: DRAFT
Abstraction Type: Base





Description

An exact value or random number can be precisely predicted by observing previous values.

Applicable Platforms
Language Class: All

Time Of Introduction

  • Architecture and Design
  • Implementation

Common Consequences

ScopeTechnical ImpactNotes
Other
 
Varies by context
 
 

Detection Methods
None

Potential Mitigations

PhaseStrategyDescriptionEffectivenessNotes
  Increase the entropy used to seed a PRNG.
 
  
Architecture and Design
Requirements
 
Libraries or Frameworks
 
Use products or modules that conform to FIPS 140-2 [R.342.1] to avoid obvious entropy problems. Consult FIPS 140-2 Annex C ("Approved Random Number Generators").
 
  
Implementation
 
 Use 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.
 
  

Relationships

Related CWETypeViewChain
CWE-342 ChildOf CWE-905 Category CWE-888  

Demonstrative Examples
None

Observed Examples

  1. CVE-2002-1463 : Firewall generates easily predictable initial sequence numbers (ISN), which allows remote attackers to spoof connections.
  2. CVE-1999-0074 : Listening TCP ports are sequentially allocated, allowing spoofing attacks.
  3. CVE-1999-0077 : Predictable TCP sequence numbers allow spoofing.
  4. CVE-2000-0335 : DNS resolver uses predictable IDs, allowing a local user to spoof DNS query results.

For more examples, refer to CVE relations in the bottom box.

White Box Definitions
None

Black Box Definitions
None

Taxynomy Mappings

TaxynomyIdNameFit
PLOVER  Predictable Exact Value from Previous Values
 
 

References:

  1. Information Technology Laboratory, National Institute of Standards and Technology .SECURITY REQUIREMENTS FOR CRYPTOGRAPHIC MODULES. 2001-05-25.
  2. Michael Howard David LeBlanc John Viega .24 Deadly Sins of Software Security. McGraw-Hill. Section:'"Sin 20: Weak Random Numbers." Page 299'. Published on 2010.
CVE    2
CVE-2020-16226
CVE-2020-28388

© SecPod Technologies