Dangerous regex pattern detection #45
Labels
No labels
Epic
Feature Request
HOLD
audit
automerge
bug
dependencies
documentation
duplicate
good first issue
help wanted
invalid
question
release
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NiXTheDev/regexYbot#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Detect and warn users about potentially dangerous regex patterns that could cause catastrophic backtracking or performance issues.
Background
Certain regex patterns can cause exponential execution time (ReDoS - Regular Expression Denial of Service). Examples:
Implementation Plan
Pattern analysis module
Detection rules
Warning system
Warning message format
Integration points
Acceptance Criteria
Example Scenarios
User: s/(a+)+b/replacement/
Bot: Warning about nested quantifiers
User: s/\d{3}-\d{2}-\d{4}/replacement/
Bot: No warning (safe pattern)
Related
Part of Epic #38