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
{{ message }}
Repository navigation
Promise's domain property allows escaping VM #15673
... and I never said it was, but it has been the case until now that objects from another context can only be present in a vm context if the user explicitly adds things into the sandbox from another sandbox.
I just realized the domain property is only added if domains are enabled, which is the case in the REPL. That softens the blow for me, but this still sounds like a bug.
Activity
bnoordhuis commentedon Sep 29, 2017
Doesn't really strike me as an issue.
vmis not a security mechanism.edit: no opinion on whether promise hooks should be enabled or not.
TimothyGu commentedon Sep 29, 2017
... and I never said it was, but it has been the case until now that objects from another context can only be present in a vm context if the user explicitly adds things into the sandbox from another sandbox.
I just realized the
domainproperty is only added if domains are enabled, which is the case in the REPL. That softens the blow for me, but this still sounds like a bug.src: do not add .domain to promises in VM contexts
src: do not add .domain to promises in VM contexts
src: do not add .domain to promises in VM contexts