Visible to the public Optimal Sanitization Synthesis for Web Application Vulnerability Repair

TitleOptimal Sanitization Synthesis for Web Application Vulnerability Repair
Publication TypeConference Paper
Year of Publication2016
AuthorsYu, Fang, Shueh, Ching-Yuan, Lin, Chun-Han, Chen, Yu-Fang, Wang, Bow-Yaw, Bultan, Tevfik
Conference NameProceedings of the 25th International Symposium on Software Testing and Analysis
PublisherACM
Conference LocationNew York, NY, USA
ISBN Number978-1-4503-4390-9
KeywordsAutomata, Collaboration, human factors, Metrics, pubcrawl, Resiliency, safe coding standards, Sanitization Synthesis, string analysis
Abstract

We present a code- and input-sensitive sanitization synthesis approach for repairing string vulnerabilities that are common in web applications. The synthesized sanitization patch modifies the user input in an optimal way while guaranteeing that the repaired web application is not vulnerable. Given a web application, an input pattern and an attack pattern, we use automata-based static string analysis techniques to compute a sanitization signature that characterizes safe input values that obey the given input pattern and are safe with respect to the given attack pattern. Using the sanitization signature, we synthesize an optimal sanitization patch that converts malicious user inputs to benign ones with minimal editing. When the generated patch is added to the web application, it is guaranteed that the repaired web application is no longer vulnerable. We present refinements to previous sanitization synthesis algorithms that reduce the runtime sanitization cost significantly. We evaluate our approach on open source web applications using common input and attack patterns, demonstrating the effectiveness of our approach.

URLhttp://doi.acm.org/10.1145/2931037.2931050
DOI10.1145/2931037.2931050
Citation Keyyu_optimal_2016