Auto-patching Use-after-free Vulnerability via Memory Access Pattern Tracking

利用記憶體存取路徑追蹤技術自動化修復記憶體釋放再利用漏洞

Files

The full text is not publicly available.

Date

2017

Type

Language

英文

Abstract

釋放再利用漏洞是一項相當常被用於攻擊的漏洞,尤其常見於瀏覽器這種相對大型的程式,這種漏洞發生在程式使用了一塊已經被釋放的記憶體,將導致無法預期的錯誤甚至被攻擊。有許多的學者嘗試提出偵測並且抵禦的機制,但由於這種漏洞的特性所導致的困難度,目前仍然並沒有一篇論文是能夠對於這種漏洞做出修補的。
我們提出了一個自動化修復釋放再利用漏洞的機制由UAF Patcher, 以將所找到的漏洞自動地進行修復。藉由這個機制,我們可以找到產生出漏洞的根本原因,並且修復程式,使其無法再使用被釋放過的記憶體,從而修復漏洞。
我們也將這套機制實作成一個系統以驗證我們的構想,在我們的實驗當中,這套系統可以成功的修復NIST所發佈的Juliet Test Suite當中94.8%的實驗程式,並且成功的修復兩個廣泛使用的專案所發生過的釋放再利用漏洞。
Use-after-free vulnerability is one of the most critical and common attacks, especially for exploiting web browsers. Use-after-free is caused by usage of dangling pointers, which point to a deallocated memory area. There are numerous researchers working on detection and mitigation of this problem. However, the problem of patching use-after-free still remains unsolved because analyzing and fixing use-after-free are challenging problems.
In this paper, we present UAF Patcher, the first patching approach to automatically patch use-after-free vulnerabilities. UAF Patcher is able to patch use-after-free vulnerabilities with a path that can trigger the using of dangling pointer. It finds the root cause of this use-after-free vulnerability, where the dangling pointer is created. Then the access patterns of the dangling pointer are found. With these access patterns, the patched program is able to clear the dangling pointer. Thus the root cause of UAF can be resolved.
We implemented our UAF Patcher technique into a proof-of-concept system. The experiment with Juliet Test Suite is conducted on this system. The result shows that 94.8% of test cases are successfully patched. We also evaluate our system on 2 real-world vulnerabilities. This evaluation shows that UAF Patcher is able to locate and patch these use-after-free vulnerabilities in the real world software.
Full item page Statistics

Cite this item

Chang, T.-Y. (2017). Auto-patching Use-after-free Vulnerability via Memory Access Pattern Tracking. https://thesis.lib.nycu.edu.tw/handle/20.500.14371/67253

BibTeX RIS

Citation generated in APA 7th edition style; please check it before use.

Share

Permanent link: https://thesis.lib.nycu.edu.tw/handle/20.500.14371/67253