getsentry / getsentry/sentry-dotnet

Enhance scrubbing for session and csrf cookies

Open
#2,193 0 comments 1 reaction 0 assignees View on GitHub
.NET Feature Framework: ASP.NET Framework: ASP.NET Core
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

For ASP.NET Core and ASP.NET integrations, we should ensure that session and csrf cookies are *always* scrubbed client-side, regardless of `SendDefaultPii` option.

For session cookies, we should specifically look at Cookie-based authentication. (Token-based auth is not affected.)

For ASP.NET Core:
- https://learn.microsoft.com/aspnet/core/security/authentication/cookie
- https://learn.microsoft.com/aspnet/core/security/anti-request-forgery#cookie-based-authentication

For ASP.NET Framework:
- TODO: Find doc for cookie-based auth
- https://learn.microsoft.com/aspnet/web-api/overview/security/preventing-cross-site-request-forgery-csrf-attacks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.