Skip to content

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Jun 2, 2020

The taint-tracking configuration in ExposureOfPrivateInformation.ql
overlaps with the XSS taint-tracking configuration, as witnessed by this import chain:

semmle.code.csharp.security.dataflow.ExposureOfPrivateInformation.qll imports
semmle.code.csharp.security.dataflow.flowsinks.ExternalLocationSink imports
semmle.code.csharp.security.dataflow.flowsinks.Remote imports
semmle.code.csharp.security.dataflow.XSS

(The same for CleartextStorage.qll and LogForging.ql.)

The fix is to use TaintTracking2 for the XSS configuration.

The taint-tracking configuration in `ExposureOfPrivateInformation.ql`
overlaps with the XSS taint-tracking configuration, as witnessed by this import chain:

```
semmle.code.csharp.security.dataflow.ExposureOfPrivateInformation.qll imports
semmle.code.csharp.security.dataflow.flowsinks.ExternalLocationSink imports
semmle.code.csharp.security.dataflow.flowsinks.Remote imports
semmle.code.csharp.security.dataflow.XSS
```

(The same for `CleartextStorage.qll` and `LogForging.ql`.)

The fix is to use `TaintTracking2` for the XSS configuration.
@hvitved hvitved added the C# label Jun 2, 2020
@hvitved hvitved requested a review from a team as a code owner June 2, 2020 12:44
Copy link
Contributor

@calumgrant calumgrant left a comment

Choose a reason for hiding this comment

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

Great work Tom!

@calumgrant calumgrant merged commit 00078d1 into github:master Jun 8, 2020
@hvitved hvitved deleted the csharp/overlapping-configs branch June 8, 2020 10:35
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.

2 participants