2018 · 51 citations · 31 references
ComputingComputer ScienceCybersecurityApplication SecurityComputer SecuritySecurity ArchitectureBinary ExploitationString AlgorithmsGenetic Algorithms For SearchRegular Expression Denial Of ServiceRegular Expression MatchingRescueString Searching
Regular expression (regex) with modern extensions is one of the most popular string processing tools. However, poorly-designed regexes can yield exponentially many matching steps, and lead to regex Denial-of-Service (ReDoS) attacks under well-conceived string inputs. This paper presents Rescue, a three-phase gray-box analytical technique, to automatically generate ReDoS strings to highlight vulnerabilities of given regexes. Rescue systematically seeds (by a genetic search), incubates (by another genetic search), and finally pumps (by a regex-dedicated algorithm) for generating strings with maximized search time. We implemenmted the Rescue tool and evaluated it against 29,088 practical regexes in real-world projects. The evaluation results show that Rescue found 49% more attack strings compared with the best existing technique, and applying Rescue to popular GitHub projects discovered ten previously unknown ReDoS vulnerabilities.
31
Introduction to automata theory, languages, and computation
Computer Languages · 1980 · 6.9K citations
Darrell Whitley · Statistics and Computing · 1994 · 4.5K citations
Three models for the description of language
Noam Chomsky · IEEE Transactions on Information Theory · 1956 · 2.8K citations
Finite Automata and Their Decision Problems
M. O. Rabin, D. Scott · IBM Journal of Research and Development · 1959 · 1.9K citations