n8n GSuiteAdmin Prototype Pollution to Remote Code Execution - #2713
Open
carlospolop wants to merge 1 commit into
Open
n8n GSuiteAdmin Prototype Pollution to Remote Code Execution#2713carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://simonkoeck.com/writeups/n8n-gsuiteadmin-prototype-pollution-rce Content Categories: Based on the analysis, this content was categorized under "Pentesting Web > Deserialization > NodeJS - proto & Prototype Pollution > Prototype Pollution to RCE". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview
The post details a prototype-pollution vulnerability in n8n's
GSuiteAdminnode that can be chained with theGitnode to achieve remote code execution. The vulnerable User Create and User Update operations place attacker-controlled custom-field names into a normal JavaScript object without rejecting special keys such as__proto__,constructor, orprototype. By using__proto__as the schema name, an a...🔧 Technical Details
Finding prototype pollution in dynamic object construction: Search for attacker-controlled strings used as keys on ordinary JavaScript objects, particularly patterns such as
target[userKey] ??= {}followed bytarget[userKey][nestedKey] = value. IfuserKeyis__proto__, the first lookup can returnObject.prototype. Because that result is not nullish, initialization is skipped, and the nested assignment becomesObject.prototype[nestedKey] = value. Also investigateconstructorandprototypein nested assignments, recursive merges, and object-path utilities.Converting prototype pollution into environment-variable injection: After gaining control of an enumerable property on
Object.prototype, look for application components or libraries that create process-environment maps using plain objects such as{}. These maps...🤖 Agent Actions
Updated:
src/pentesting-web/deserialization/nodejs-proto-prototype-pollution/prototype-pollution-to-rce.mdAdded concise coverage of:
??=prototype pollution sources.GIT_SSH_COMMANDenvironment injection through plain objects.for...in/TypeORM denial-of-service effects.Validation passed: diff checks, citations, code fences, forbidden-source exclusion, and single-file scope. Full mdBook build was skipped because
mdbookis unavailable.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.