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][acl] By-value ACL is skipped for calls to non-with-scoped local functions
Root Cause
In a with-clause, ACL is skipped for calls to non-with-scoped local functions due to the hooked __with__ object have the property value true for the non-with-scoped local variables
true is not a function and cannot be tracked to the corresponding ACL
Reproducible Code
{let_parseInt=window.parseInt;let_Date=window.Date;with({}){// hooked as { _parseInt: true, _Date: true }_parseInt('1');// ACL for window.parseInt is not appliednew_Date();// ACL for window.Date is not applied}}
[vulnerability][acl] By-value ACL is skipped for calls to non-with-scoped local functions
Root Cause
with
-clause, ACL is skipped for calls to non-with-scoped local functions due to the hooked__with__
object have the property valuetrue
for the non-with-scoped local variablestrue
is not a function and cannot be tracked to the corresponding ACLReproducible Code
Fix
Policy.defaultAcl()
to get the object reference value and apply its ACLThe text was updated successfully, but these errors were encountered: