The impact of regular expression denial of service (ReDoS) in practice: an empirical study at the ecosystem scale

James C. Davis, Christy A. Coghlan, Francisco Servant, Dongyoon Lee

2018 · 96 citations · 19 references

DOIFull text

Open access

Concepts

Abstract

Regular expressions (regexes) are a popular and powerful means of automatically manipulating text. Regexes are also an understudied denial of service vector (ReDoS). If a regex has super-linear worst-case complexity, an attacker may be able to trigger this complexity, exhausting the victim’s CPU resources and causing denial of service. Existing research has shown how to detect these superlinear regexes, and practitioners have identified super-linear regex anti-pattern heuristics that may lead to such complexity.

References

19