N8n Form Trigger Without Authentication
Description
Detects when a Form Trigger node in the published version of an n8n workflow does not authenticate who submits the form, because its Authentication option is None, a value n8n does not check or an expression n8n resolves only when the workflow runs, or its version has no such option. An unknown person can then feed the workflow the field values and, when the form has a file field, any file of their choosing, and make it act on them 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
• Counts a Form Trigger node in version 1 as unauthenticated, since that version has no Authentication option
• Reads the Authentication option of each later Form Trigger node, an unset option meaning None, the n8n default; an expression holding only a fixed method name counts as that method, and any other expression counts as unchecked, since its value is only known when the workflow runs
• Reports a vulnerability when the option is None or any value other than basicAuth, bearerAuth, headerAuth, jwtAuth or n8nUserAuth, even when the node also limits who reaches the form with an IP allowlist, which the evidence then shows, or says is set by an expression when it is one, and notes in the evidence when the form accepts files; 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
• The evidence shows a fixed Authentication option as written, for example none, and names any other expression as one the scanner could not resolve, without its text
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 Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' pentesting team, fill out this contact form.