Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
<data name="net_completed_result" xml:space="preserve">
<value>This operation cannot be performed on a completed asynchronous result object.</value>
</data>
<data name="net_io_eof" xml:space="preserve">
<value>Received an unexpected EOF or 0 bytes from the transport stream.</value>
</data>
<data name="net_io_invalidasyncresult" xml:space="preserve">
<value>The IAsyncResult object was not returned from the corresponding asynchronous method on this class.</value>
</data>
Expand Down Expand Up @@ -90,4 +93,7 @@
<data name="net_dns_unsupported_address_family" xml:space="preserve">
<value>Only the InterNetwork and InterNetworkV6 address families are supported.</value>
</data>
</root>
<data name="net_invalid_dns_name" xml:space="preserve">
<value>The DNS name '{0}' is not a valid domain name.</value>
</data>
</root>
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,15 @@

<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'unix'">
<Compile Include="System\Net\NameResolutionPal.Unix.cs" />
<Compile Include="System\Net\DnsResolverPal.Unsupported.cs" />
<Compile Include="System\Net\DnsResolverPal.Managed.cs" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shipwright · HIGH

The new managed DNS resolver (DnsResolverPal.Managed.cs, DnsSocket.cs, ResolvConf.cs) replaces the unsupported stub on Unix.

Impact: The new managed DNS resolver (DnsResolverPal.Managed.cs, DnsSocket.cs, ResolvConf.cs) replaces the unsupported stub on Unix. This is a significant new attack surface: it parses untrusted DNS responses from the network. The diff shows extensive parsing code but no evidence of response validation against the query (transaction ID, question section matching, source address validation). DNS spoofing/cache poisoning is a…

Suggested fix: Review the cited evidence, fix the risk if confirmed, and rerun Shipwright.

<Compile Include="System\Net\DnsSocket.cs" />
<Compile Include="System\Net\ResolvConf.cs" />
<Compile Include="System\Net\DnsWireEnums.cs" />
<Compile Include="System\Net\DnsMessageHeader.cs" />
<Compile Include="System\Net\DnsMessageReader.cs" />
<Compile Include="System\Net\DnsMessageWriter.cs" />
<Compile Include="System\Net\DnsEncodedName.cs" />
<Compile Include="System\Net\DnsRecordParsing.cs" />
<Compile Include="$(CommonPath)System\Net\InteropIPAddressExtensions.Unix.cs"
Link="Common\System\Net\InteropIPAddressExtensions.Unix.cs" />
<Compile Include="$(CommonPath)System\Net\SocketAddressPal.Unix.cs"
Expand Down Expand Up @@ -169,4 +177,8 @@
<ProjectReference Include="$(LibrariesProjectRoot)System.Threading.ThreadPool\src\System.Threading.ThreadPool.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'unix'">
<ProjectReference Include="$(LibrariesProjectRoot)System.Security.Cryptography\src\System.Security.Cryptography.csproj" />
</ItemGroup>

</Project>
Loading