Description
parseusbs before 1.9 contains an OS command injection vulnerability in parseUSBs.py where LNK file paths are passed unsanitized into an os.popen() shell command, allowing arbitrary command execution via crafted .lnk filenames containing shell metacharacters. An attacker can craft a .lnk filename with embedded shell metacharacters that execute arbitrary commands on the forensic examiner's machine during USB artifact parsing.
Problem types
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (CWE-78)
Product status
Any version before 1.9
1.9 (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-crafted-lnk-filename (VulnCheck Advisory: parseusbs < 1.9 Command Injection via Crafted LNK Filename)