Skip to content

block prototype traversal in set-path pollution guard#21451

Open
rootvector2 wants to merge 1 commit into
emberjs:mainfrom
rootvector2:set-path-prototype-guard
Open

block prototype traversal in set-path pollution guard#21451
rootvector2 wants to merge 1 commit into
emberjs:mainfrom
rootvector2:set-path-prototype-guard

Conversation

@rootvector2

Copy link
Copy Markdown
Contributor

the set-path pollution guard in _getPath refuses __proto__ and constructor but not prototype, so set(obj, 'fn.prototype.key', value) walks through a function or class held in the path and the final write lands on its shared prototype; spotted while auditing that guard, fixed by adding prototype to the same check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant