Skip to content

C#: update MaD sink kinds#13158

Merged
jcogs33 merged 9 commits intogithub:mainfrom
jcogs33:jcogs33/update-csharp-sink-kinds
May 26, 2023
Merged

C#: update MaD sink kinds#13158
jcogs33 merged 9 commits intogithub:mainfrom
jcogs33:jcogs33/update-csharp-sink-kinds

Conversation

@jcogs33
Copy link
Copy Markdown
Contributor

@jcogs33 jcogs33 commented May 12, 2023

Description

This PR updates some C# MaD sink kind names in order to align across languages.
The following sink kind names are updated:

Old kind name New kind name
code code-injection
sql sql-injection
html html-injection
xss js-injection
remote file-content-store

Commit-by-commit review might be best.

(related Java PR: #12916)

Consideration

  • Let me know if any of the updates will be problematic for C# (especially the xss to js-injection and remote to file-content-store updates).
  • Let me know if I should add a change note. (I'm currently assuming it is not needed since C# custom data extensions are not in beta, but let me know if I should add a change note anyways.)

@github-actions github-actions Bot added the C# label May 12, 2023
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged.

Click to show differences in coverage

csharp

Generated file changes for csharp

  • Changes to framework-coverage-csharp.csv:
- package,sink,source,summary,sink:code,sink:encryption-decryptor,sink:encryption-encryptor,sink:encryption-keyprop,sink:encryption-symmetrickey,sink:html,sink:remote,sink:sql,sink:xss,source:file,source:file-write,source:local,source:remote,summary:taint,summary:value
+ package,sink,source,summary,sink:code-injection,sink:encryption-decryptor,sink:encryption-encryptor,sink:encryption-keyprop,sink:encryption-symmetrickey,sink:html,sink:remote,sink:sql-injection,sink:xss,source:file,source:file-write,source:local,source:remote,summary:taint,summary:value

@github-actions
Copy link
Copy Markdown
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged.

Click to show differences in coverage

csharp

Generated file changes for csharp

  • Changes to framework-coverage-csharp.csv:
- package,sink,source,summary,sink:code,sink:encryption-decryptor,sink:encryption-encryptor,sink:encryption-keyprop,sink:encryption-symmetrickey,sink:html,sink:remote,sink:sql,sink:xss,source:file,source:file-write,source:local,source:remote,summary:taint,summary:value
+ package,sink,source,summary,sink:code-injection,sink:encryption-decryptor,sink:encryption-encryptor,sink:encryption-keyprop,sink:encryption-symmetrickey,sink:html,sink:remote,sink:sql-injection,sink:xss,source:file,source:file-write,source:local,source:remote,summary:taint,summary:value

@github-actions
Copy link
Copy Markdown
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged.

Click to show differences in coverage

csharp

Generated file changes for csharp

  • Changes to framework-coverage-csharp.rst:
-    System,"``System.*``, ``System``",25,12154,65,7
+    System,"``System.*``, ``System``",25,12154,65,3
-    Totals,,25,12717,397,7
+    Totals,,25,12717,397,3
  • Changes to framework-coverage-csharp.csv:
- package,sink,source,summary,sink:code,sink:encryption-decryptor,sink:encryption-encryptor,sink:encryption-keyprop,sink:encryption-symmetrickey,sink:html,sink:remote,sink:sql,sink:xss,source:file,source:file-write,source:local,source:remote,summary:taint,summary:value
+ package,sink,source,summary,sink:code-injection,sink:encryption-decryptor,sink:encryption-encryptor,sink:encryption-keyprop,sink:encryption-symmetrickey,sink:html-injection,sink:remote,sink:sql-injection,sink:xss,source:file,source:file-write,source:local,source:remote,summary:taint,summary:value

@jcogs33 jcogs33 force-pushed the jcogs33/update-csharp-sink-kinds branch from 9d29820 to 588a62c Compare May 16, 2023 18:07
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged.

Click to show differences in coverage

csharp

Generated file changes for csharp

  • Changes to framework-coverage-csharp.csv:
- package,sink,source,summary,sink:code,sink:encryption-decryptor,sink:encryption-encryptor,sink:encryption-keyprop,sink:encryption-symmetrickey,sink:html,sink:remote,sink:sql,sink:xss,source:file,source:file-write,source:local,source:remote,summary:taint,summary:value
+ package,sink,source,summary,sink:code-injection,sink:encryption-decryptor,sink:encryption-encryptor,sink:encryption-keyprop,sink:encryption-symmetrickey,sink:file-content-store,sink:html-injection,sink:js-injection,sink:sql-injection,source:file,source:file-write,source:local,source:remote,summary:taint,summary:value
- Dapper,55,,,,,,,,,,55,,,,,,,
+ Dapper,55,,,,,,,,,,,55,,,,,,
- Microsoft.ApplicationBlocks.Data,28,,,,,,,,,,28,,,,,,,
+ Microsoft.ApplicationBlocks.Data,28,,,,,,,,,,,28,,,,,,
- Microsoft.EntityFrameworkCore,6,,,,,,,,,,6,,,,,,,
+ Microsoft.EntityFrameworkCore,6,,,,,,,,,,,6,,,,,,
- MySql.Data.MySqlClient,48,,,,,,,,,,48,,,,,,,
+ MySql.Data.MySqlClient,48,,,,,,,,,,,48,,,,,,
- ServiceStack,194,,7,27,,,,,,75,92,,,,,,7,
+ ServiceStack,194,,7,27,,,,,75,,,92,,,,,7,
- System,65,25,12154,,8,8,9,,4,,33,3,1,17,3,4,10163,1991
+ System,65,25,12154,,8,8,9,,,4,3,33,1,17,3,4,10163,1991

@jcogs33 jcogs33 marked this pull request as ready for review May 16, 2023 18:48
@jcogs33 jcogs33 requested a review from a team as a code owner May 16, 2023 18:48
Copy link
Copy Markdown
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

Thank you for doing this!

I think it makes sense to add a change note in case this is used by the field team.

Comment thread csharp/documentation/library-coverage/cwe-sink.csv
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ The head of this PR and the base branch were compared for differences in the framework coverage reports. The generated reports are available in the artifacts of this workflow run. The differences will be picked up by the nightly job after the PR gets merged.

Click to show differences in coverage

csharp

Generated file changes for csharp

  • Changes to framework-coverage-csharp.csv:
- package,sink,source,summary,sink:code,sink:encryption-decryptor,sink:encryption-encryptor,sink:encryption-keyprop,sink:encryption-symmetrickey,sink:html,sink:remote,sink:sql,sink:xss,source:file,source:file-write,source:local,source:remote,summary:taint,summary:value
+ package,sink,source,summary,sink:code-injection,sink:encryption-decryptor,sink:encryption-encryptor,sink:encryption-keyprop,sink:encryption-symmetrickey,sink:file-content-store,sink:html-injection,sink:js-injection,sink:sql-injection,source:file,source:file-write,source:local,source:remote,summary:taint,summary:value
- Dapper,55,,,,,,,,,,55,,,,,,,
+ Dapper,55,,,,,,,,,,,55,,,,,,
- Microsoft.ApplicationBlocks.Data,28,,,,,,,,,,28,,,,,,,
+ Microsoft.ApplicationBlocks.Data,28,,,,,,,,,,,28,,,,,,
- Microsoft.EntityFrameworkCore,6,,,,,,,,,,6,,,,,,,
+ Microsoft.EntityFrameworkCore,6,,,,,,,,,,,6,,,,,,
- MySql.Data.MySqlClient,48,,,,,,,,,,48,,,,,,,
+ MySql.Data.MySqlClient,48,,,,,,,,,,,48,,,,,,
- ServiceStack,194,,7,27,,,,,,75,92,,,,,,7,
+ ServiceStack,194,,7,27,,,,,75,,,92,,,,,7,
- System,65,25,12154,,8,8,9,,4,,33,3,1,17,3,4,10163,1991
+ System,65,25,12154,,8,8,9,,,4,3,33,1,17,3,4,10163,1991

@michaelnebel michaelnebel self-requested a review May 22, 2023 09:17
Copy link
Copy Markdown
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

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

Thank you!

@michaelnebel
Copy link
Copy Markdown
Contributor

@jcogs33 : It is probably a good idea to run DCA before merging.

@jcogs33
Copy link
Copy Markdown
Contributor Author

jcogs33 commented May 25, 2023

@michaelnebel There were a few failures in the DCA run. Do those look like a cause for concern?

@michaelnebel
Copy link
Copy Markdown
Contributor

@michaelnebel There were a few failures in the DCA run. Do those look like a cause for concern?

That is not related to your changes (looks like transient failures). The analyzed projects don't show any alerts diff - so I think you are changes are good to go :-)
Thank you for doing this for C#!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants