Skip to content

Conversation

@Abhijoy-Mandal
Copy link
Contributor

Description

Changes regex evaluator in data-prepper-expression and data-prepper-plugins (key-value-processor, mutate-event-processors, mutate-string-processors, obfuscate-processor, split-event-processor and translate-processor) to Re2J to prevent adversarial regex pattern attacks.

All other instances of regex still use default java regex library as they do not process user-input regex patterns.

Issues Resolved

Resolves #6279

Check List

  • [Y] New functionality includes testing.
  • [N/A] New functionality has a documentation issue. Please link to it in this PR.
    • [N/A] New functionality has javadoc added
  • [Y] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Abhijoy Mandal <abhijoym@amazon.com>
Signed-off-by: Abhijoy Mandal <abhijoym@amazon.com>
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.

[BUG] Regex evaluators catastrophic backtracking

2 participants