Disable DynamicLinq to fix CVE (#1242)

* Disable DynamicLinq

* Disable DynamicLinq functionality
This commit is contained in:
Stef Heyenrath
2025-01-22 10:30:52 +01:00
committed by GitHub
parent 888d913729
commit 12d2219752
96 changed files with 107 additions and 3912 deletions

View File

@@ -778,21 +778,21 @@ message HelloReply {
);
// https://stackoverflow.com/questions/51985089/wiremock-request-matching-with-comparison-between-two-query-parameters
server
.Given(Request.Create().WithPath("/linq")
.WithParam("from", new LinqMatcher("DateTime.Parse(it) > \"2018-03-01 00:00:00\"")))
.RespondWith(Response.Create()
.WithBody("linq match !!!")
);
//server
// .Given(Request.Create().WithPath("/linq")
// .WithParam("from", new LinqMatcher("DateTime.Parse(it) > \"2018-03-01 00:00:00\"")))
// .RespondWith(Response.Create()
// .WithBody("linq match !!!")
// );
server
.Given(Request.Create().WithPath("/linq2")
.WithBody(new LinqMatcher("it.applicationId != null"))
.UsingPost()
)
.RespondWith(Response.Create()
.WithBody("linq2 match !!!")
);
//server
// .Given(Request.Create().WithPath("/linq2")
// .WithBody(new LinqMatcher("it.applicationId != null"))
// .UsingPost()
// )
// .RespondWith(Response.Create()
// .WithBody("linq2 match !!!")
// );
server
.Given(Request.Create().WithPath("/myendpoint").UsingAnyMethod())

View File

@@ -107,6 +107,11 @@
<Name>WireMock.Net</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="log4net">
<Version>2.0.17</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.