vendor:
Chromium
by:
Project Zero
8,8
CVSS
HIGH
Arguments Flag Override
20
CWE
Product Name: Chromium
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2020
Arguments Flag Override Vulnerability in Parser::ParseVariableDeclaration
The vulnerability exists in the ParseVariableDeclaration function of the Parser class, which is used for parsing declarations. The code is using the 'm_currentNodeFunc' variable regardless of the 'buildAST' boolean, which may change a wrong function's 'grfpn' flag. This can lead to the 'PNodeFlags::fpnArguments_overriddenByDecl' flag being set, making the function's arguments uninitialized. A proof-of-concept exploit is provided, which can be used to trigger the vulnerability.
Mitigation:
The vulnerability can be mitigated by ensuring that the 'm_currentNodeFunc' variable is not used when 'buildAST' is false.