-
-
Notifications
You must be signed in to change notification settings - Fork 429
feat: refactoring (944110 PL1) #3715
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
Conversation
|
Failing tests are including keywords in multiple XML attributes. I found only one exploits which is splitted accross multiple XML elements/attributes and it is going to be catched also after my modification to the rule. Was not able to find a non-XML exploit which is splitted into multiple variables. Solutions:
|
|
I would go with 2. |
|
After reading (and re-reading) this one, and the exploit you mentioned there, idk if just going with 1) instead, and just document it. But 2) sounds good also, if you think it adds value. |
|
@fzipi Can you look at it now? Thnx. |
fzipi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now. Thanks!
Rule
944110is matching same variables in both main and chained rules. This is:The list of variables in the chained rule should be replaced with a MATCHED_VARS variable as we only need to match against variables matched by the main rule. Also, the current behavior may create more FPs as main rule may match variable1 and the chained rule may match variable2 (which wasn't matched by main rule).
Also, the chained rule was missing
t:lowercaseso it was possible to bypass this check.