Skip to content

Dashboard security: open decisions, left-out hardening and what the audit did not cover #598

Open

Description

@oluciano

Left open by the security audit of the Dashboard surface (2026-10-17; summary in the comment on #590). None of these is a confirmed vulnerability; they are decisions, hardening and coverage the audit did not reach. Groom each before doing it.

1. Informational findings (decide: accept, document or change)

  • The catalog trigger accepts any IJob by name. POST /catalog/{jobType}/trigger resolves the type from the URL (Type.GetType and a scan of the loaded assemblies) and enqueues anything that implements IJob, also a type that never ran and is not in the catalog. IJob<T> input goes through System.Text.Json with no polymorphic handling. Option: only accept types the catalog lists (or a registered allow-list).
  • Embedded mode is open without a handler. With UseNexJobDashboard and no IDashboardAuthorizationHandler registered, every request is authorized (the wiki says so). The standalone host is localhost-only by default and warns when exposed without a handler. Option: a startup warning in embedded mode too, or an explicit opt-in to run without a handler.
  • The pages show what is stored. Input JSON, checkpoint JSON, error messages and stack traces are shown as stored (the wiki now says so, fix(dashboard): send security headers on every response (#595) #597). Option: a way to hide or mask the payload for users who can see the queues but not the data.
  • Third-party request on every page. The font stylesheet comes from fonts.googleapis.com (the CSP of Dashboard: no security headers (framing, content sniffing, referrer, CSP) #595 allows it). Option: a system font stack or a bundled font, which also drops the dependency for restricted networks.

2. Hardening that was left out on purpose

3. What the audit did not cover

  • Only the in-memory provider and the standalone host were used; the embedded middleware with a real ASP.NET Core pipeline (authentication middleware, antiforgery, forwarded headers behind a proxy) was not exercised. The origin check of Dashboard: POST actions accept cross-site requests (no CSRF protection) #594 in particular should be tried behind a reverse proxy that rewrites the host.
  • Quote and script contexts were probed for the handlers fixed in Dashboard: confirmations never appear and inline handler values are mis-encoded (onclick) #592 and for the attribute and text positions; the inline <script> data of the Catalog (the active workers map) and showLogs were not run through a quote and </script> payload.
  • /settings and /listeners rendered none of the markers (the listener registry did not reach the page in the probe); they were read, not probed.
  • Message content in the broker triggers (Kafka, RabbitMQ, SQS, Service Bus, Pub/Sub, Salesforce): how a message body or header becomes a job (type name, queue, tags, trace) was read only for the Kafka traceparent header.
  • Denial of service (large payloads, many requests, the log and stream endpoints) was out of scope.
  • Dependencies were checked with dotnet list package --vulnerable --include-transitive once; there is no recurring check (the build audits direct dependencies only by default). Option: a scheduled CI step.

Definition of Done

Each item above is closed with a decision written here (done, accepted, or its own issue), so the list does not go stale. Related: #590, #594, #595, #592.

Activity

  1. added
    enhancement
    backlog
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions