The product, by default, initializes an internal variable with an insecure or less secure value than is possible.
N/A
Threat Mapped score: 0.0
Industry: Finiancial
Threat priority: Unclassified
CVE: CVE-2022-36349
insecure default variable initialization in BIOS firmware for a hardware board allows DoS
N/A
N/A
Phase | Note |
---|---|
Implementation | N/A |
Intro: This code attempts to login a user using credentials from a POST request:
Body: Because the $authorized variable is never initialized, PHP will automatically set $authorized to any value included in the POST request if register_globals is enabled. An attacker can send a POST request with an unexpected third value 'authorized' set to 'true' and gain authorized status without supplying valid credentials.
// $user and $pass automatically set from POST request if (login_user($user,$pass)) { $authorized = true; } ... if ($authorized) { generatePage(); }