Skip to content
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

Disallow unrestricted polymorphic deserialization in DataSet #39304

Merged

Conversation

GrabYourPitchforks
Copy link
Member

Fixes CVE-2020-1147 (see MSRC advisory, GitHub announcement)
See also https://go.microsoft.com/fwlink/?linkid=2132227 for documentation.

This is a direct port from the release/3.1 branch, plus the license header changes that Steve made a few days ago.

@ghost
Copy link

ghost commented Jul 14, 2020

Hello @GrabYourPitchforks!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 10 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost
Copy link

ghost commented Jul 14, 2020

Tagging subscribers to this area: @roji, @ajcvickers
Notify danmosemsft if you want to be subscribed.

@GrabYourPitchforks GrabYourPitchforks added NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) and removed auto-merge labels Jul 14, 2020
@GrabYourPitchforks
Copy link
Member Author

Some recent changes to the build system means that this no longer builds successfully on my box. Will dig into it once other Patch Tuesday release stuff is out of the way.

No changes required to the core logic, just need to figure out the magic .csproj settings to get this to work again.

<ProjectReference Include="..\..\System.ComponentModel.TypeConverter\src\System.ComponentModel.TypeConverter.csproj" />
<ProjectReference Include="..\..\System.Runtime\src\System.Runtime.csproj" />
<ProjectReference Include="..\..\System.Runtime.Extensions\src\System.Runtime.Extensions.csproj" />
<ProjectReference Include="..\..\System.Private.Uri\src\System.Private.Uri.csproj" />
Copy link
Member

Choose a reason for hiding this comment

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

Should these stay as Reference?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, because they reach into System.Private.CoreLib. We can only add <Reference> links to reference assemblies that are completely self-contained.

@GrabYourPitchforks GrabYourPitchforks removed the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Jul 14, 2020
@GrabYourPitchforks
Copy link
Member Author

CI isn't enqueuing some test legs. However, of the test legs that have run, they're all passing. Going ahead with the commit.

Copy link

@ZerglingX6 ZerglingX6 left a comment

Choose a reason for hiding this comment

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

Aha,this commit can make a bug in my current code.Because I use the filesysteminfo in datatable.It trigger the rule in pagelink 21322227.I cant understand it.

@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants