-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Initial contents for BinaryFormatter security guide #19442
Conversation
Topics we'll want to cover, with samples:
|
1. Added: Initial contents for BinaryFormatter security guide by GrabYourPitchforks · Pull Request #19442 · dotnet/docs (dotnet/docs#19442) 2. Added: crypto_stories.md (https://gist.github.com/mimoo/2038533e7c926a1651108fea5d670386)
There are some roslyn's analyzers related to this, for example CA2300 (and others too). You may like to reference them. |
In my opinion |
@HurricanKai good suggestion! I'd probably recommend |
Co-authored-by: Youssef Victor <31348972+Youssef1313@users.noreply.github.com>
Moved to #19445 |
Summary
This represents the initial contents for the
BinaryFormatter
security guide, which will be linked to from https://aka.ms/binaryformatter and is part of the long-termBinaryFormatter
obsoletion strategy.This is intended to be a living document and will eventually grow to include very detailed guidance for specific scenarios, including code samples. By "living document" I mean that we'll probably update it on a monthly cadence until we're satisfied that the guidance covers the necessary use cases. (See #19442 (comment) for a partial list of topics.)
If this repo isn't the proper place for such a document please let me know and I can figure out where else to put it. But given all of the other serialization-related content in this repo, it seemed like a natural fit.
I'm pushing the contents here now so that we can iterate on the formatting or wording if needed. There is already signoff on the high-level concepts covered by the document.
Todo before checkin
BinaryFormatter
API page and related docs to thisXmlSerializer
andJsonSerializer
BinaryFormatter
cannot be made safe, even with a custom binder (see Initial contents for BinaryFormatter security guide #19442 (comment) for initial list)/cc @Rick-Anderson @gewarren