Apache 0.8.x/1.0.x / NCSA HTTPd 1.x - 'test-cgi' Directory Listing

Author: @stake
type: remote
platform: cgi
port: 
date_added: 1996-04-01  
date_updated: 2012-08-11  
verified: 1  
codes: CVE-1999-0070;OSVDB-55371  
tags:   
aliases:   
screenshot_url:   
application_url:   

raw file: 20435.txt  
source: https://www.securityfocus.com/bid/2003/info

NCSA HTTPd and comes with a CGI sample shell script, test-cgi, located by default in /cgi-bin. This script does not properly enclose an "ECHO" command in quotes, and as a result "shell expansion" of the * character can occur under some configurations. This allows a remote attacker to obtain file listings, by passing *, /*, /usr/* etc., as variables. The ECHO command expands the * to give a directory listing of the specified directory. This could be used to gain information to facilitate future attacks. This is identical to a problem with another sample script, nph-test-cgi. See references.

http://target/cgi-bin/test-cgi?/*
http://target/cgi-bin/test-cgi?*