paint-brush
How We Eliminated Regular Expression Denial of Service and How You Can Tooby@conradirwin
1,050 reads
1,050 reads

How We Eliminated Regular Expression Denial of Service and How You Can Too

by Conrad Irwin5mFebruary 18th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

At Superhuman, we make the fastest email experience in the world. We use regular expressions to process massive amounts of text very rapidly. When regular expressions go wrong, they go devastatingly wrong. Superhuman has accidentally become vulnerable to regular expression denial of service (ReDoS) The problem started after we changed our regular expression to:/("[^"]*"|[^@]*@[#]#) Superhuman is using 100% CPU and not responding…”

Company Mentioned

Mention Thumbnail
featured image - How We Eliminated Regular Expression Denial of Service and How You Can Too
Conrad Irwin HackerNoon profile picture
Conrad Irwin

Conrad Irwin

@conradirwin

Co-Founder & CTO of Superhuman. Programmer, Blogger, Speaker, Dancer.

Learn More
LEARN MORE ABOUT @CONRADIRWIN'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Conrad Irwin HackerNoon profile picture
Conrad Irwin@conradirwin
Co-Founder & CTO of Superhuman. Programmer, Blogger, Speaker, Dancer.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Minds
Theteams
Tefter
Pipfeed
Partlab
Aryan