The product attempts to initialize a resource but does not correctly do so, which might leave the resource in an unexpected, incorrect, or insecure state when it is accessed.
This can have security implications when the associated resource is expected to have certain properties or values. Examples include a variable that determines whether a user has been authenticated or not, or a register or fuse value that determines the security state of the product. For software, this weakness can frequently occur when implicit initialization is used, meaning the resource is not explicitly set to a specific value. For example, in C, memory is not necessarily cleared when it is allocated on the stack, and many scripting languages use a default empty, null value, or zero value when a variable is not explicitly initialized. For hardware, this weakness frequently appears with reset values and fuses. After a product reset, hardware may initialize registers incorrectly. During different phases of a product lifecycle, fuses may be set to incorrect values. Even if fuses are set to correct values, the lines to the fuse could be broken or there might be hardware on the fuse line that alters the fuse value to be incorrect.
Impact: Read MemoryRead Application DataUnexpected State
Impact: Gain Privileges or Assume Identity
Impact: Varies by Context
The technical impact can vary widely based on how the resource is used in the product, and whether its contents affect security decisions.
// Parameterized Register module example // Secure_mode : REGISTER_DEFAULT[0] : When set to 1 register is read only and not writable// module register_example #( parameter REGISTER_WIDTH = 8, // Parameter defines width of register, default 8 bits parameter [REGISTER_WIDTH-1:0] REGISTER_DEFAULT = 2**REGISTER_WIDTH -2 // Default value of register computed from Width. Sets all bits to 1s except bit 0 (Secure _mode) ) ( input [REGISTER_WIDTH-1:0] Data_in, input Clk, input resetn, input write, output reg [REGISTER_WIDTH-1:0] Data_out );
reg Secure_mode;
always @(posedge Clk or negedge resetn)
verilogregister_example #(
verilog// $user and $pass automatically set from POST request* if (login_user($user,$pass)) { ``` $authorized = true; }
phpphp
...*
module acct_wrapper #( ...
verilog
acct_mem[j] <= 32'hffffffff;** end end ...
module acct_wrapper #( ...
verilog
acct_mem[j] <= 32'h00000000;** end end ...