n8n Token Exchange Flaw Could Let Attackers Log In as Users From Another Issuer
Overview
n8n, a workflow automation platform, has a serious security flaw that allows attackers to log in as other users under specific conditions. This issue arises in Enterprise instances that trust multiple external token issuers. The platform incorrectly matches incoming JSON Web Tokens (JWTs) to local users based solely on the 'sub' claim, ignoring the 'iss' claim. As a result, a valid token from one issuer could allow access to an account belonging to a user from a different issuer. This flaw raises significant security concerns, especially for organizations that rely on n8n for sensitive workflows, as it could lead to unauthorized access and data breaches.
Key Takeaways
- Affected Systems: n8n Enterprise instances configured to trust multiple external token issuers
- Action Required: Users should review their token issuer configurations to ensure proper validation of both 'sub' and 'iss' claims.
- Timeline: Newly disclosed
Original Article Summary
n8n, the workflow automation platform, handed out the wrong accounts at login. On Enterprise instances configured to trust more than one external token issuer, it matched an incoming JWT to a local user on the sub claim alone and ignored iss. A valid token from issuer A carrying a sub that belongs to someone under issuer B logged you in as them. Their password never
Impact
n8n Enterprise instances configured to trust multiple external token issuers
Exploitation Status
The exploitation status is currently unknown. Monitor vendor advisories and security bulletins for updates.
Timeline
Newly disclosed
Remediation
Users should review their token issuer configurations to ensure proper validation of both 'sub' and 'iss' claims. Patching or updates were not specified.
Additional Information
This threat intelligence is aggregated from trusted cybersecurity sources. For the most up-to-date information, technical details, and official vendor guidance, please refer to the original article linked below.