Eager evaluation shouldn't perform side-effectful operation during constructing previews
Categories
(DevTools :: Console, defect)
Tracking
(firefox-esr115 wontfix, firefox-esr128 wontfix, firefox137 wontfix, firefox138 wontfix, firefox139 fixed)
People
(Reporter: arai, Assigned: arai)
References
Details
(Keywords: sec-low, Whiteboard: [adv-main139-])
Attachments
(3 files, 1 obsolete file)
derived from bug 1960745 comment #9
If eager evaluation hits any error, the Error object is passed to preview, and the preview performs side-effectful operation, that leaks the input to the web content via monkey-patched Error prototypes.
| Assignee | ||
Comment 1•11 months ago
|
||
Updated•11 months ago
|
| Assignee | ||
Comment 2•11 months ago
|
||
| Assignee | ||
Comment 3•11 months ago
|
||
Given the following, I'm assigning sec-low, and I'll land the patch shortly.
- this requires explicit user action on DevTools console
- only the partial input or wrong input (which hits any error) gets leaked to the webpage
- once the user hits enter, the code should be evaluated in the webpage's context, and executing the monkey-patched code should be totally okay and should be the expected behavior. thus, this is a problem only because the eager evaluation isn't supposed to have side effect
- clearly less severe than bug 1960745 which has sec-moderate
Comment 5•11 months ago
|
||
Comment 6•11 months ago
|
||
The patch landed in nightly and beta is affected.
:arai, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox138towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 7•11 months ago
|
||
this patch depends on bug 1960745 patch.
So I'll prepare the uplift after that
| Assignee | ||
Comment 8•11 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D246546
Updated•11 months ago
|
Updated•11 months ago
|
| Assignee | ||
Comment 9•11 months ago
|
||
Actually, this patch doesn't apply cleanly on esr128 and esr115, because of some other refactoring around the value grip and actor parameters.
Given the severity, I'm leaning toward not requesting uplift.
nchevobbe, can I have your opinion?
Comment 10•11 months ago
|
||
(In reply to Tooru Fujisawa [:arai] from comment #9)
Actually, this patch doesn't apply cleanly on esr128 and esr115, because of some other refactoring around the value grip and actor parameters.
Given the severity, I'm leaning toward not requesting uplift.
nchevobbe, can I have your opinion?
that sounds fine to me
| Assignee | ||
Comment 11•11 months ago
|
||
Thank you!
Updated•10 months ago
|
Updated•10 months ago
|
Updated•3 months ago
|
Description
•