Skip to content

[C#] Recognize RequireAntiforgeryToken attributes - #22322

Open
theinfosecguy wants to merge 1 commit into
github:mainfrom
theinfosecguy:csharp-require-antiforgery-token
Open

[C#] Recognize RequireAntiforgeryToken attributes#22322
theinfosecguy wants to merge 1 commit into
github:mainfrom
theinfosecguy:csharp-require-antiforgery-token

Conversation

@theinfosecguy

Copy link
Copy Markdown
Contributor

Recognize enabled RequireAntiforgeryToken attributes when UseAntiforgery() is configured.

This handles inherited attributes, explicit opt-outs, and existing MVC antiforgery filters.

Fixes #22238

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.

False positive: "Missing cross-site request forgery token validation" does not recognize [RequireAntiforgeryToken]

1 participant