Description
parseusbs before 1.9 contains an OS command injection vulnerability where the volume listing path argument (-v flag) is passed unsanitized into an os.popen() shell command with ls, allowing arbitrary command injection via crafted volume path arguments containing shell metacharacters. An attacker can provide a crafted volume path via the -v flag that injects arbitrary commands during volume content enumeration.
Problem types
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Product status
Any version before 1.9.0
1.9.0 (semver)
99f05996494e7e41ea0c7e13145ba20eb793e46b (git)
Credits
Mobasi Security Team
References
github.com/khyrenz/parseusbs/pull/10 (Pull Request)
github.com/...ommit/99f05996494e7e41ea0c7e13145ba20eb793e46b (Patch Commit)
mobasi.ai/sentinel (Mobasi Sentinel Vulnerability Index)
www.vulncheck.com/...mand-injection-via-volume-path-argument (VulnCheck Advisory: parseusbs < 1.9 Command Injection via Volume Path Argument)