Static Analysis for Regular Expression Denial-of-Service Attacks

James Kirrage, Asiri Rathnayake Mudiyanselage, Hayo Thielecke

Research output: Chapter in Book/Report/Conference proceedingChapter

15 Citations (Scopus)

Abstract

Regular expressions are a concise yet expressive language for expressing patterns. For instance, in networked software, they are used for input validation and intrusion detection. Yet some widely deployed regular expression matchers based on backtracking are themselves vulnerable to denial-of-service attacks, since their runtime can be exponential for certain input strings. This paper presents a static analysis for detecting such vulnerable regular expressions. The running time of the analysis compares favourably with tools based on fuzzing, that is, randomly generating inputs and measuring how long matching them takes. Unlike fuzzers, the analysis pinpoints the source of the vulnerability and generates possible malicious inputs for programmers to use in security testing. Moreover, the analysis has a firm theoretical foundation in abstract machines. Testing the analysis on two large repositories of regular expressions shows that the analysis is able to find significant numbers of vulnerable regular expressions in a matter of seconds.
Original languageEnglish
Title of host publicationNetwork and System Security
Subtitle of host publication7th International Conference, NSS 2013, Madrid, Spain, June 3-4, 2013, Proceedings
EditorsJavier Lopez, Xinyi Huang, Ravi Sandhu
PublisherSpringer
Pages135-148
ISBN (Electronic)978-3-642-38631-2
ISBN (Print)978-3-642-38630-5
DOIs
Publication statusPublished - 1 Jun 2013

Publication series

NameLecture Notes in Computer Science
PublisherSpringer
Volume7873
ISSN (Print)0302-9743

Fingerprint

Dive into the research topics of 'Static Analysis for Regular Expression Denial-of-Service Attacks'. Together they form a unique fingerprint.

Cite this