제출 #860031: Node.js jsforce 3.10.16 OS Command Injection정보

제목Node.js jsforce 3.10.16 OS Command Injection
설명[email protected] appears to have a command injection issue in the CLI when the SFDX connection registry is enabled. The public jsforce CLI exposes -c, --connection [connection] as a connection name stored in the connection registry. When JSFORCE_CONNECTION_REGISTRY=sfdx is set, the CLI uses SfdxRegistry. The connection name is passed as the -u option to the Salesforce CLI command, but it is concatenated into a shell command string without escaping. Affected path: bin/jsforce -> lib/cli/cli.js -> registry.getConnectionConfig(options.connection) -> lib/registry/sfdx.js -> child_process.exec(cmd) Relevant code in lib/registry/sfdx.js: _createCommand(command, options = {}, args = []) { return `${this._cliPath ? this._cliPath + '/' : ''}sfdx ${command} ${Object.keys(options) .map((option) => `${option.length > 1 ? '--' : '-'}${option}${options[option] != null ? ' ' + options[option] : ''}`) .join(' ')} --json ${args.join(' ')}`; } async _execCommand(command, options = {}, args = []) { const cmd = this._createCommand(command, options, args); child_process.exec(cmd, ...); } When a crafted connection name is supplied, the generated command becomes similar to: sfdx force:org:display -u x;touch /tmp/jsforce-pwn;# --json The shell interprets ;touch /tmp/jsforce-pwn;# as an additional command.
원천⚠️ https://github.com/jsforce/jsforce/issues/1805
사용자
 wjm2 (UID 99050)
제출2026. 06. 16. PM 03:18 (1 월 ago)
모더레이션2026. 07. 21. PM 05:54 (1 month later)
상태수락
VulDB 항목380946 [jsforce 까지 3.10.16 SFDX Connection Registry lib/registry/sfdx.js _execCommand 권한 상승]
포인트들20

Interested in the pricing of exploits?

See the underground prices here!