Bug 263187
| Summary: | Make all senstitive $vm properties not enumerable by Object.getOwnPropertyNames. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Lam <mark.lam> |
| Component: | JavaScriptCore | Assignee: | Mark Lam <mark.lam> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Mark Lam
$vm functions are not meant to be enumerable. That's why all of them have the DontEnum attribute. However, Object.getOwnPropertyNames does not honor this by default. As a result, this can trip up fuzzers that happens to enumerate it with Object.getOwnPropertyNames.
rdar://112814894
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Mark Lam
Pull request: https://github.com/WebKit/WebKit/pull/19104
EWS
Committed 269361@main (86513355ed9f): <https://commits.webkit.org/269361@main>
Reviewed commits have been landed. Closing PR #19104 and removing active labels.