WebKit: JSC: Stack-Use-After-Free in...

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

Here's a snippet of ObjectPatternNode::appendEntry. ``` void appendEntry(const JSTokenLocation&, ExpressionNode* propertyExpression, DestructuringPatternNode* pattern, ExpressionNode* defaultValue, BindingType bindingType) { m_targetPatterns.append(Entry{ Identifier(), propertyExpression, false, pattern, defaultValue, bindingType }); } Here's the definition of Entry. struct Entry { const Identifier& propertyName; ExpressionNode* propertyExpression; bool wasString; DestructuringPatternNode* pattern; ExpressionNode* defaultValue; BindingType bindingType; }; ``` The Identifier object created by "Identifier()" is in the stack. So it will get freed in the end of the appendEntry method. ### PoC: ``` var {[a]: b, ...[]} = {}; ```

0%
暂无可用Exp或PoC
当前有0条受影响产品信息