-
Notifications
You must be signed in to change notification settings - Fork 1.8k
C#: Re-factor Xss to use the new data flow API. #12845
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
ff09ed8
to
5a83e1a
Compare
DCA looks good, except for a failure on mono (both variants failed - so most likely a spurious failure). |
After re-running DCA for the mono project (failed in the first attempt), we get an extra alert. |
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.
One comment, otherwise LGTM.
} | ||
} | ||
|
||
private newtype TXssNode = | ||
TXssDataFlowNode(DataFlow2::PathNode node) or | ||
TXssDataFlowNode(DataFlow2::PathNode node) or // Deprecated |
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.
I don't think we want this, as it means we basically have to compute the flow graph twice. Instead, I think for this case we should simply break backwards compatibility.
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.
Ok - that is fair enough.
I will do that instead and add a change node (I suppose that is breaking change which requires bumping the major version number?)
5a83e1a
to
ee108a2
Compare
--- | ||
category: majorAnalysis | ||
--- | ||
* C#: Extending `TaintTrackingConfiguration` in `XSSQuery.qll` no longer affects query results. |
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.
I don't think this change note is needed, TBH. It was never intended for 3rd parties to customize the query by overriding the configuration itself; instead, they could add new sources or sinks.
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.
Alright - I will go ahead and remove it.
ee108a2
to
0fdeeba
Compare
No description provided.