Minimal .NET/C# support for epic #445 (N1-N5; N6 out of scope): - N1: solutions and .csproj/.vbproj/.fsproj at any depth, old vs SDK style, TargetFramework(s)/TargetFrameworkVersion; recorded as target facts (dotnet_runtime, dotnet_solution, dotnet_project). - N2: NuGet components from packages.config, PackageReference (attribute, child element, VersionOverride, Directory.Packages.props), packages.lock.json, obj/project.assets.json and packages/<Id>.<Version>/ with pkg:nuget purls for OSV. PackageReference projects without lockfile or assets are reported as unresolved (sbom_dependencies). Target frameworks past Microsoft's end of support are findings (CWE-1104). - N3-lite: own semgrep rule pack cra_semgrep_csharp.yaml (SQLi, command injection, deserialization, XXE, path traversal, weak crypto/ECB, TLS validation off, hard-coded credentials) with semgrep --test cases; semgrep.rs runs every bundled pack. - N4: web.config/app.config checks (clear-text passwords, debug, customErrors, httpCookies, WCF security) and committed key/publish files. - N5: bin/obj beside projects, NuGet packages/, .vs, .nuget, TestResults are not own code. Control map bindings, fixtures/dotnet/framework48 with a test, and docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
25 lines
852 B
XML
25 lines
852 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<connectionStrings>
|
|
<add name="Orders" connectionString="Data Source=db01;Initial Catalog=Orders;User ID=orders;Password=Orders#2019" providerName="System.Data.SqlClient" />
|
|
</connectionStrings>
|
|
<system.web>
|
|
<compilation debug="true" targetFramework="4.8" />
|
|
<httpRuntime targetFramework="4.8" />
|
|
</system.web>
|
|
<system.serviceModel>
|
|
<bindings>
|
|
<basicHttpBinding>
|
|
<binding name="OrdersBinding">
|
|
<security mode="None" />
|
|
</binding>
|
|
</basicHttpBinding>
|
|
</bindings>
|
|
<services>
|
|
<service name="Plant.Web.OrderService">
|
|
<endpoint address="" binding="basicHttpBinding" bindingConfiguration="OrdersBinding" contract="Plant.Web.IOrderService" />
|
|
</service>
|
|
</services>
|
|
</system.serviceModel>
|
|
</configuration>
|