Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[bugfix] fix redos in preprocessRFC2822 regex #6013

Closed
wants to merge 2 commits into from

Conversation

vovikhangcdv
Copy link
Contributor

@vovikhangcdv vovikhangcdv commented Jun 7, 2022

Fixes: #6012

Directly match the comment tokens in preprocessRFC2822 regex to resolve the problem Regular Expression Denial of Service (ReDoS)#6012

Fixes: [moment#2936](moment#6012)

Directly match the comment tokens in preprocessRFC2822 regex to resolve the problem [Regular Expression Denial of Service (ReDoS)moment#6012](moment#6012)
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jun 7, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: vovikhangcdv / name: Khang Vo (doublevkay) (dc0d180, 2efdc32)

@vovikhangcdv vovikhangcdv changed the title fix redos in preprocessRFC2822 regex [bugfix] fix redos in preprocessRFC2822 regex Jun 7, 2022
@vovikhangcdv
Copy link
Contributor Author

This fix is not fully supported all characters in the comment token. See #6015 for a more efficient solution using local backtracking regex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regular Expression Denial of Service (ReDoS)
1 participant