October 10, 2023  |
|
|
A comprehensive guide to the dangers of regular expressions in JavaScriptwww.sonarsource.com @philnash@mastodon.social “I first heard about regular expression denial of service (ReDoS) vulnerabilities from GitHub's Dependabot. Several of my projects over the years have had dependencies that suffered from ReDoS vulnerabilities, and I would bet that if you've built any JavaScript project with dependencies, you've also come across this.”
[...]
“In this article, we are going to look deeper into ReDoS and show what can go wrong. We'll investigate real-life examples of vulnerable regular expressions from outage reports and open source. We'll see what can go wrong with seemingly innocent regular expressions like /\s*,\s*/ or /^(.+\.)*localhost$/ . We'll understand what causes expressions like these to be vulnerable and see ways to fix and avoid ReDoS issues.” |
|
|
|
|
|
This email was sent to {{ email | default }}. You can unsubscribe from this list here or update your preferences. |
|