JJ sample CGI program Escape Character Vulnerability

BID:2002

Info

JJ sample CGI program Escape Character Vulnerability

Bugtraq ID: 2002
Class: Input Validation Error
CVE:
Remote: Yes
Local: Yes
Published: Dec 24 1996 12:00AM
Updated: Dec 24 1996 12:00AM
Credit: Posted to BugTraq on December 24, 1996 by Aleph One < [email protected] >
Vulnerable: Rob McCool jj.c 1.0
+ NCSA httpd 1.5.2 a
+ NCSA httpd 1.5.2
+ NCSA httpd 1.5.1
+ NCSA httpd 1.5 a-export
+ NCSA httpd 1.4.2
+ NCSA httpd 1.4.1
+ NCSA httpd 1.4
+ NCSA httpd 1.3
Not Vulnerable:

Discussion

JJ sample CGI program Escape Character Vulnerability

JJ is a sample CGI program distributed with NCSA HTTPd servers. It passes unfiltered user data directly to the /bin/mail program, and as such can be used to escape to a shell using the ~ character on systems with a /bin/mail which allows this. The attacker must know the password the program requests, but by default the program uses HTTPdRocKs or SDGROCKS. These default passwords must be changed in the program's source code. The consequence of a successful exploit is a shell with the UID of the server.

Exploit / POC

JJ sample CGI program Escape Character Vulnerability

See discussion.

Solution / Fix

JJ sample CGI program Escape Character Vulnerability

Solution:
Remove the offending program jj from /cgi-bin

References

JJ sample CGI program Escape Character Vulnerability

References:
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report