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 #6015

Merged

Commits on Jun 7, 2022

  1. fix redos in preprocessRFC2822 regex

    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)
    vovikhangcdv committed Jun 7, 2022
    Copy the full SHA
    dc0d180 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2022

  1. fix redos using local backtracking regex

    change the direct matching regex to a local backtracking regex to support all characters in the token comment
    vovikhangcdv committed Jun 8, 2022
    Copy the full SHA
    bfd4f23 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2022

  1. update regex by avoid matching more open brackets

    update regex to avoid matching more open brackets from @ichernev suggestion
    vovikhangcdv committed Jul 6, 2022
    Copy the full SHA
    4bbb9f3 View commit details
    Browse the repository at this point in the history