(CVE-2019-16338) Hancom Office tfo_common Object Use-after-Free in HwordApp
A specially crafted Office Open XML document causes HwordApp to mishandle a tfo_common object, resulting in a use-after-free. This may allow code execution in the context of the application.
starlabs.sg
Published on starlabs.sg
Hangul Office is published by Hancom, Inc. and is considered one of the more popular Office suites used within South Korea. When opening a specially crafted Office Open XML Document (.docx), HwordApp does not properly process a tfocommon object which will cause a use-after-free.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application frees a tfo_common object but continues to reference it while processing the document.
Impact
This may lead to code execution under the context of the application.
What the attacker needed
Victim opens a crafted .docx file
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A use-after-free is a memory bug where a program keeps using a piece of memory after it has been freed. If an attacker can control what gets placed in that freed memory, they may be able to run their own code. Here, simply opening a malicious document could trigger the bug.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.