QID 980229
QID 980229: Dotnet (nuget) Security Update for Hangfire.Core (GHSA-7rq6-7gv8-c37h)
Dashboard UI in Hangfire.Core uses authorization filters to protect it from showing sensitive data to unauthorized users. By default when no custom authorization filters specified, `LocalRequestsOnlyAuthorizationFilter` filter is being used to allow only local requests and prohibit all the remote requests to provide sensible, protected by default settings.
However due to the recent changes, in version 1.7.25 no authorization filters are used by default, allowing remote requests to succeed.
Missing authorization when default options are used for the Dashboard UI, e.g. when no custom authorization rules are used as recommended in the [Using Dashboard](https://docs.hangfire.io/en/latest/configuration/using-dashboard.html#configuring-authorization) documentation article.
It is possible to fix the issue by using the `LocalRequestsOnlyAuthorizationFilter` explicitly when configuring the Dashboard UI. In this case upgrade is not required.
```csharp
// using Hangfire.Dashboard;
app.UseHangfireDashboard("/hangfire", new DashboardOptions
{
Authorization = new []{ new LocalRequestsOnlyAuthorizationFilter(); }
});
```
- GHSA-7rq6-7gv8-c37h -
github.com/advisories/GHSA-7rq6-7gv8-c37h
CVEs related to QID 980229
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-7rq6-7gv8-c37h | Hangfire.Core |
|