google / google/tsunami-security-scanner-plugins
AI PRP: Exposed n8n UI/REST API leading to RCE
- Dominant language
- Java
- Stars
- 1k
- Forks
- 222
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 1
Description
Hello.
I would like to start implementing a plugin to detect exposed n8n automation
instances where internal UI/REST API endpoints are accessible without
authentication.
The detector uses a multi-signal fingerprinting approach to confirm the
presence of n8n before testing REST API exposure. Fingerprinting is
performed using one or more of the following indicators:
- n8n web UI endpoints (e.g. /workflows or redirect behavior from /)
- Authentication UI (/signin)
- n8n-specific headers or frontend markers
Once n8n presence is confirmed, the detector checks for unauthenticated
access to internal REST endpoints such as /rest/workflows.
In all supported n8n versions, the /rest/* API is intended to be accessible
only to authenticated users. When exposed, attackers can enumerate,
modify, and execute workflows containing built-in command execution
nodes, which can lead to remote code execution on the host system.
This issue may affect:
- Legacy n8n deployments where authentication is disabled
- Modern n8n (1.x) deployments where reverse proxy or access control
misconfiguration exposes internal REST endpoints
Contributor guide
Assessment
This issue has not been assessed yet.