You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[vulnerability] Incorrect global object contexts are applied in self-assignment expressions
Root Cause
context property of getter/setter functions of the wrapper property of $hook$.global().wrapperProperty is set before the assignment but modified to that for the RHS value during evaluation of the RHS, and then its ACL is applied on the assignment to the LHS property with the RHS context while the LHS context is expected.
Reproducible Code Example
/* /path.js */var_global_A=1;({// /path.js,inaccessible should be applied // but /path.js,inaccessible,accessible is actually appliedinaccessible: _global_A={accessible: _global_A// RHS: /path.js,inaccessible,accessible}.accessible});
Fix
Modify the $hook$.global() to assure the correct contexts are always applied
[vulnerability] Incorrect global object contexts are applied in self-assignment expressions
Root Cause
context
property of getter/setter functions of the wrapper property of$hook$.global().wrapperProperty
is set before the assignment but modified to that for the RHS value during evaluation of the RHS, and then its ACL is applied on the assignment to the LHS property with the RHS context while the LHS context is expected.Reproducible Code Example
Fix
$hook$.global()
to assure the correct contexts are always appliedcontext
is included in the wrapper property nameThe text was updated successfully, but these errors were encountered: