Skip to content

C#: Introduce RemoteFlowSink class #3124

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

Merged
merged 9 commits into from
Apr 6, 2020

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Mar 25, 2020

This PR adds the class RemoteFlowSink as an abstraction of any data flow node that can be read by an external user. This currently means:

  • Any node that is also an XSS sink (including unencoded HTML output).
  • Emails contents.
  • Writes to cookies.
  • Writes to (Inner)Text properties of objects belonging to System.Web.UI, that is, possibly implicitly HTML encoded output (which, in particular, is not relevant for the XSS queries).

RemoteFlowSink is used as sinks for the queries cs/sensitive-data-transmission and cs/information-exposure-through-exception.

Note for review: I moved some existing sources and sinks into security/dataflow/flow{sinks,sources} to keep things consistent, so this PR is best reviewed commit-by-commit.

@hvitved hvitved added the C# label Mar 25, 2020
@hvitved hvitved requested a review from calumgrant March 25, 2020 14:48
@hvitved hvitved requested a review from a team as a code owner March 25, 2020 14:48
@hvitved hvitved force-pushed the csharp/dataflow/sources-and-sinks branch from 682f0f8 to 95b6f6a Compare March 25, 2020 19:06
@hvitved
Copy link
Contributor Author

hvitved commented Mar 27, 2020

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.

Looks like a very nice reorganisation and it's great to catch a few more results.

@calumgrant calumgrant merged commit 6cce0de into github:master Apr 6, 2020
@hvitved hvitved deleted the csharp/dataflow/sources-and-sinks branch April 6, 2020 11:55
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