Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Prevent Regex Denial of Service in Sisimai::String.to_plain #244

Conversation

gmcabrita
Copy link

We've hit a ReDoS in production given a email HTML body that looks somewhat like the this: https://gist.githubusercontent.com/gmcabrita/e5dc0332473fc2e3a7a407434c8d21c7/raw/00b12035e5e1b685469f143b94301a50306376ba/example.html

This is the same fix we monkeypatched in our production application.

@azumakuniyuki
Copy link
Member

thank you for the patch, i will merge the PR within a few days.

@gmcabrita gmcabrita force-pushed the fix/to_plain-potential-regex-denial-of-service branch from 979aab8 to 51fe2e6 Compare November 28, 2022 20:07
@azumakuniyuki azumakuniyuki merged commit 0e72027 into sisimai:master Nov 29, 2022
@azumakuniyuki
Copy link
Member

make test at your branch fix/to_plain-potential-regex-denial-of-service has been passed successfully. Thank you, again.

azumakuniyuki added a commit to sisimai/p5-sisimai that referenced this pull request Nov 29, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants