Repository navigation
Open
Labels
Description
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
IJobby name.POST /catalog/{jobType}/triggerresolves the type from the URL (Type.GetTypeand a scan of the loaded assemblies) and enqueues anything that implementsIJob, also a type that never ran and is not in the catalog.IJob<T>input goes throughSystem.Text.Jsonwith no polymorphic handling. Option: only accept types the catalog lists (or a registered allow-list). - Embedded mode is open without a handler. With
UseNexJobDashboardand noIDashboardAuthorizationHandlerregistered, 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
- CSP without
'unsafe-inline'for scripts. The pages use inline scripts and inline handlers everywhere, so Dashboard: no security headers (framing, content sniffing, referrer, CSP) #595 keeps it. Removing it means moving the scripts to a served file and the handlers to event listeners (a large change; the permanent test of Dashboard: a test that stored values are HTML-encoded on every page #590 should land first). Cache-Control: no-storeon the pages that show job payloads (the stream endpoint already sendsno-cache).Strict-Transport-Securityis not sent: the dashboard may be served over plain HTTP by design (localhost), so it is the proxy's job; the wiki could say so.- Review of the playground endpoints (
EnablePlayground,api/scenarios/*): they arePOSTactions covered by the origin check of Dashboard: POST actions accept cross-site requests (no CSRF protection) #594, but their own input handling was not read.
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) andshowLogswere not run through a quote and</script>payload. /settingsand/listenersrendered 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
traceparentheader. - 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-transitiveonce; 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