fix(mrf): match domain rules literally
Escape the domain so `.` only matches a dot, and use an optional group for the `*.` prefix, which matches the same hosts without exponential backtracking. Bad entries now match nothing instead of raising on every check.
This commit is contained in:
parent
3e9dc477c9
commit
7e157d8cc9
3 changed files with 27 additions and 20 deletions
1
changelog.d/mrf-domain-regex-escape.security
Normal file
1
changelog.d/mrf-domain-regex-escape.security
Normal file
|
|
@ -0,0 +1 @@
|
|||
MRF domain rules now match dots literally, so a rule for `good.example` no longer also matches `goodxexample`, and wildcard rules no longer backtrack on hostile host names
|
||||
Loading…
Add table
Add a link
Reference in a new issue