Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.info-disclosure.developer-exception-page

The developer exception page is enabled without an IsDevelopment() check. In production it exposes stack traces, source snippets and configuration details.

Last updated:

Suite: Security

csharp

The developer exception page is enabled without an IsDevelopment() check. In production it exposes stack traces, source snippets and configuration details.

Category: SECURITY · Engine rule severity: INFO

How to fix it

Only call UseDeveloperExceptionPage() inside if (env.IsDevelopment()); use UseExceptionHandler otherwise.

References

Source: packages/engine/rules/sast/csharp.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.