---
title: "Web Attack: Test-CGI Directory Listing CVE-1999-0070"
url: https://www.broadcom.com/support/security-center/attacksignatures/detail?asid=20508
description: Attack Signature Detail Page
---

# Web Attack: Test-CGI Directory Listing CVE-1999-0070

## Severity: Medium

This attack could pose a moderate security threat. It does not require immediate action.

## Description

This signature detects attempts to access the Sample Test CGI program through HTTP.

## Additional Information

NCSA HTTPd 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.

## Affected

- Apache Software Foundation Apache 0.8.11, 0.8.14, 1.0, 1.0.2, 1.0.3, 1.0.5
- NCSA httpd 1.3, 1.4, 1.4.1, 1.4.2, 1.5 a-export, 1.5.1, 1.5.2, 1.5.2 a

## Response

Locating and auditing of the client and server is recommended.  
Also disable the test scripts on the server.

## Additional Resources

- [CVE-1999-0045](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-1999-0045)
- [CVE-1999-0070](http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-1999-0070)
- [SecurityFocus BID: 2003](http://www.securityfocus.com/bid/2003)
- [SecurityFocus BID: 686](http://www.securityfocus.com/bid/686)
