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
// securely based toolsecurely(()=>{ArrayS.prototype.slice.call([]);// fails, `call` is actually `111`});
Even though Securely removes the realm it uses to get a hold on intrinsics, accessing the realm is still possible in such scenario.
It is important to note that this scenario counts as an edge case, a tool that is based on Securely is responsible for using it responsibly and make sure access to it is not exposed to outside code at any point.
If the Securely realm would have gone frozen, this might have solved the issue.
As pointed out by @mhofman, the following scenario leaves Securely and tools that rely on it vulnerable:
securely
callback, or an object that is only accessible by calling thesecurely
callbackexample:
Even though Securely removes the realm it uses to get a hold on intrinsics, accessing the realm is still possible in such scenario.
It is important to note that this scenario counts as an edge case, a tool that is based on Securely is responsible for using it responsibly and make sure access to it is not exposed to outside code at any point.
If the Securely realm would have gone frozen, this might have solved the issue.
Worth learning from https://www.npmjs.com/package/get-intrinsic on the matter.
The text was updated successfully, but these errors were encountered: