Skip to content

[vulnerability][acl] ACL is skipped for class instances as source objects in Object.assign() #333

Description

@t2ym

[vulnerability][acl] ACL is skipped for class instances as source objects in Object.assign()

Root Cause

Reproducible Code

window.Class = class Class {};
// This access must throw if acl.Class[S_PROTOTYPE][S_INSTANCE][S_ALL]: '---'
Object.assign({}, new Class());

Fix

  • Check constructors of source objects as well as the object themselves

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions