-
Notifications
You must be signed in to change notification settings - Fork 728
Conversation
Thank you very much. Good have a PR here. Two questions:
|
Yes, for now. I'd like to review it at a later time.
There is just one more pattern-file using ++ (util/regexp-assemble/regexp-942130.data) and I've checked it but you are correct. |
Thank you for infos. Good to know you think it can be revised. I am aware we are not quite portable yet. @franbuehler : Could you give us a hand with reviewing the effect of the update to the regex-assembly script? I will review PR and merge afterwards. |
Thank you for the PR. I have tested it and confirm that it solves the 2 ReDoS issues in question. However, I have also looked at some of the machine generated regexes and I get a delta. I do not really think it is due to your change on the assemble script, but we will probably need to investigate some more. Examples: 932130, 942280. |
Can you share the deltas? |
|
Thanks, I will take a look. |
Thank you. We probably need to make sure we test the regex assembly against the regexes in the rules with every PR. Otherwise we can not make sure, the rules really, really are up to date with the assembly src files and the latest version of the scripts. |
Yes. Unfortunately we modify the patterns in place either by appending or prepending another pattern, making it case insensitive, or a combination of these, so we will need to incorporate this in the input file somehow. I have some ideas I'm going to explore. |
Let's test the old assembly script and the new assembly script. If every delta is related to your change, then OK and we merge. If we have additional deltas, you did not anticipate, we need to look further into the changes of this PR. |
Sorry, but we have a substantial delta. Here are the generated regexes in v3.2/dev and 1417. A striking one is the additional trailing |
Thanks for checking it. That's unfortunate 😞 |
We decided in the June community meeting to take out the regex assembly change out of this PR and then merge the updated regex. The updated assembly script would be added separately as a 2nd assembly script aimed at this rule. That would allow us to ship the new release with this fix. |
This is an interim solution and these changes will eventually be added back to regexp-assemble.pl
Should address the remaining problem with SpiderLabs#1359.
Updated. Please let me know if this is what you had in mind. |
Works as advertised. Thank you very much for the PR and for creating the 2nd script. Merging now. |
Should fix remaining issue in #1359.