Skip to content

Java: Make XssSink extensible.#4042

Merged
codeql-ci merged 1 commit into
github:mainfrom
aschackmull:java/xsssink-extensible
Aug 31, 2020
Merged

Java: Make XssSink extensible.#4042
codeql-ci merged 1 commit into
github:mainfrom
aschackmull:java/xsssink-extensible

Conversation

@aschackmull
Copy link
Copy Markdown
Contributor

This makes XssSink an abstract class such that it can be extended. I've also included some minor cleanup such that XSS.qll doesn't claim the canonical dataflow library.

@aschackmull aschackmull requested a review from a team as a code owner August 11, 2020 11:12
@adityasharad adityasharad changed the base branch from master to main August 14, 2020 18:33
}

class ServletWriterSourceToWritingMethodFlowConfig extends TaintTracking::Configuration {
private class ServletWriterSourceToWritingMethodFlowConfig extends TaintTracking2::Configuration {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for using TaintTracking2 versus TaintTracking ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The result of this configuration is used in the definition of XssSink. So this config must come from a different library copy than any config that uses XssSink (otherwise we'd have negative recursion through the dataflow library). In this PR I simply switch use of the two copies around, such that the queries can use the default copy.

@codeql-ci codeql-ci merged commit 9d6b2e7 into github:main Aug 31, 2020
@aschackmull aschackmull deleted the java/xsssink-extensible branch September 1, 2020 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants