N8n Mcp Trigger Without Authentication
Description
Detects when an MCP Server Trigger node in the published version of an n8n workflow does not authenticate its clients, because its Authentication option is None, a value n8n does not check or an expression n8n resolves only when the workflow runs, so any MCP client that reaches its URL can list the tools connected to it and call them. Anyone who learns or guesses that URL can then run those tools without an account on the instance, together with the credentials and the access to other systems they hold.
Detection Strategy
• Lists every workflow the API key's user can see through the n8n public API, all of them for an owner or admin key, and reads only the version of each one that is published, skipping disabled nodes
• Reads the Authentication option of each MCP Server Trigger node, an option left unset counting as None, the n8n default, and counts an option that is an expression in double braces as unchecked, since its value is only known when n8n evaluates it; the evidence then says the option is set by an expression, without its text
• Reports a vulnerability when the option is None or any value other than basicAuth, bearerAuth, headerAuth, jwtAuth or n8nOAuth2; a workflow whose listing omits the published version field, or whose published version has no node list, is recorded as unreadable rather than reported as clean
Search for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Continuous Hacking Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' pentesting team, fill out this contact form.