N8n Webhook Without Authentication
Description
Detects when a Webhook node in the published version of an n8n workflow does not authenticate its callers, because its Authentication option is None, a value n8n does not check or an expression n8n resolves only when the workflow runs, so the node starts the workflow for each request it accepts. Anyone who learns or guesses its production URL can then run the workflow with data of their choosing, and make it act with the credentials and the access to other systems its nodes 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 Webhook 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, even when the node also limits its callers with an IP allowlist, which the evidence then shows, or says is set by an expression when it is one; 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.