TerenYeung / poeditor-cli

POEditor cli is the Standard Tooling for workflow of POEditor.
3 stars 7 forks source link

Command Injection security vulnerability #5

Closed phihag closed 3 years ago

phihag commented 3 years ago

If an attacker controls the configuration file, they can execute arbitrary commands with this software. The variables at https://github.com/TerenYeung/poeditor-cli/blob/master/packages/commands/push.js#L93 are not escaped at all.

TerenYeung commented 3 years ago

If an attacker controls the configuration file, they can execute arbitrary commands with this software. The variables at https://github.com/TerenYeung/poeditor-cli/blob/master/packages/commands/push.js#L93 are not escaped at all.

If your configuraiton file has been controlled by attacker, it means that he has administrator's permission because file IO can be handled by others