Talks - Guillaume and Quazi: Oh no! My regex is causing a Denial of Service! What can I do about it?

No rating
Conference: PyCon US 2023
Year: 2023

Every modern programming language supports regular expressions. Python uses a backtracking engine to match developer-defined expressions against a wide range of input. Under certain circumstances, backtracking can lead to performance issues, and in extreme cases a denial of service (ReDoS). We will use descriptive examples to demonstrate the core issue, what to look for to detect problematic expressions, as well as how static analysis can help in this context. We will look at techniques to improve regular expression performance and defend against malicious inputs.

Comments

No comments yet. Be the first to comment!

Log in to Comment

Cookies analytics

Nous utilisons des cookies analytics uniquement pour les statistiques et l’amélioration du site. Rien n’est activé sans votre consentement explicite.