BF Specification of CVE-2024-26148 — XSS injection with Querybook RichTextEditor

../../../../BF/images/BFVUL/BFCVE-2024-26148(simple)-0.png
Missing Code (in 'React.FunctionComponen()') to Validate (URL schema) of Entered data (props.entityKey) using Safelist mechanism ('http:', 'https:') in Codebase source code (querybook/webapp/lib/richtext/index.tsx#L15) in Local execution space (client-side) leads to Source Code Injection (XSS at ) final error, which can be exploited toward Arbitrary Code Execution (ACE) (everything could be lost) security failure.



vendor:product: pinterest:querybook


Bug Report
Bug Report1


Code with Fix


Code with Bug


NVD Entry

ClassDefinition
DVLData Validation (DVL) class – Data are validated (i.e., syntax check) or sanitized (i.e., escape, filter, or repair) improperly.
OperationDefinition
ValidateValidate operation – Check data syntax (e.g., proper form/grammar or missing symbols/elements) in order to accept or sanitize it.
Cause/ConsequenceDefinition
Code BugCode Bug type – An error in the implementation of an operation – proper operands over an improper operation. It is the roor cause of a security vulnerability. Must be fixed to resolve the vulnerability.
   Missing CodeMissing Code bug - The operation is misplaced entirely absent.
Injection Final ErrorInjection final error/exploit vector type – An exploitable or undefined system behavior caused by validation or sanitization bugs.
   Source Code InjectionSource Code Injection final error – Maliciously inserted new code (incl. with <> elements) into an input used as a part of an executing application code.
Operation AttributeDefinition
MechanismMechanism operation attribute type – Shows how the operation with a bug or faulty operand is performed.
   SafelistSafelist operation attribute – The operation is via a policy based on a set of known good content.
Source CodeSource Code operation attribute type – Shows where the code of the operation with a bug or faulty operand resides within the software, firmware, or hardware.
   CodebaseCodebase operation attribute – The operation is in the programmer's code - in the application itself.
Execution SpaceExecution Space operation attribute type – Shows where the operation with a bug or faulty operand is executed and the privilege level at which it runs.
   LocalLocal operation attribute – The bugged code runs in an environment with access control policy with limited (local user) permission.
Operand AttributeDefinition
Data StateData State operand attribute type – Shows where the data comes from.
   EnteredEntered operand attribute – Data are from a user via a user interface (e.g., input field, dialog or a command prompt).
FailureDefinition
ACEArbitrary Code Execution (ACE) – Execution of unauthorized commands or code execution that could lead to everything being lost; remote code execution (RCE) is a sub-case of ACE on a target system or device from a remote location, typically over a network.