Sourcefabric Newscoop is prone to multiple cross-site scripting and
SQL-injection vulnerabilities because it fails to properly sanitize
user-supplied input before using it in dynamically generated content.
Exploiting these issues could allow an attacker to steal cookie-
based authentication credentials, compromise the application,
access or modify data, or exploit latent vulnerabilities in the
underlying database.
Sourcefabric Newscoop 3.5.4 is vulnerable; prior versions may also
be affected.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_sourcefabric_newscoop_52941.nasl 5700 2017-03-23 16:03:37Z cfi $
#
# Sourcefabric Newscoop Multiple Cross Site Scripting and SQL Injection Vulnerabilities
#
# Authors:
# Michael Meyer <[email protected]>
#
# Copyright:
# Copyright (c) 2012 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################
tag_summary = "Sourcefabric Newscoop is prone to multiple cross-site scripting and
SQL-injection vulnerabilities because it fails to properly sanitize
user-supplied input before using it in dynamically generated content.
Exploiting these issues could allow an attacker to steal cookie-
based authentication credentials, compromise the application,
access or modify data, or exploit latent vulnerabilities in the
underlying database.
Sourcefabric Newscoop 3.5.4 is vulnerable; prior versions may also
be affected.";
tag_solution = "Updates are available. Please see the references for more details.";
if (description)
{
script_id(103461);
script_bugtraq_id(52941);
script_tag(name:"cvss_base", value:"7.5");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_version("$Revision: 5700 $");
script_cve_id("CVE-2012-1934");
script_name("Sourcefabric Newscoop Multiple Cross Site Scripting and SQL Injection Vulnerabilities");
script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/52941");
script_xref(name : "URL" , value : "http://dev.sourcefabric.org/browse/CS-4184");
script_xref(name : "URL" , value : "http://dev.sourcefabric.org/browse/CS-4183");
script_xref(name : "URL" , value : "http://dev.sourcefabric.org/browse/CS-4182");
script_xref(name : "URL" , value : "http://www.sourcefabric.org/en/products/newscoop_release/570/Newscoop-352-is-out!.htm");
script_xref(name : "URL" , value : "http://dev.sourcefabric.org/browse/CS-4181");
script_xref(name : "URL" , value : "http://www.sourcefabric.org/en/newscoop/latestrelease/1141/Newscoop-355-and-Newscoop-4-RC4-security-releases.htm");
script_tag(name:"last_modification", value:"$Date: 2017-03-23 17:03:37 +0100 (Thu, 23 Mar 2017) $");
script_tag(name:"creation_date", value:"2012-04-10 10:02:36 +0200 (Tue, 10 Apr 2012)");
script_category(ACT_ATTACK);
script_tag(name:"qod_type", value:"remote_vul");
script_family("Web application abuses");
script_copyright("This script is Copyright (C) 2012 Greenbone Networks GmbH");
script_dependencies("find_service.nasl", "http_version.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
script_tag(name : "solution" , value : tag_solution);
script_tag(name : "summary" , value : tag_summary);
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
port = get_http_port( default:80 );
if( ! can_host_php( port:port ) ) exit( 0 );
foreach dir( make_list_unique( "/newscoop", cgi_dirs( port:port ) ) ) {
if( dir == "/" ) dir = "";
url = dir + "/admin/password_check_token.php?f_email=1&token=%22%3E%3Cscript%3Ealert%28/openvas-xss-test/%29;%3C/script%3E";
if( http_vuln_check( port:port, url:url, pattern:"<script>alert\(/openvas-xss-test/\);</script>", check_header:TRUE, extra_check:"Bad input parameters" ) ) {
report = report_vuln_url( port:port, url:url );
security_message( port:port, data:report );
exit( 0 );
}
}
exit( 99 );
dev.sourcefabric.org/browse/CS-4181
dev.sourcefabric.org/browse/CS-4182
dev.sourcefabric.org/browse/CS-4183
dev.sourcefabric.org/browse/CS-4184
www.securityfocus.com/bid/52941
www.sourcefabric.org/en/newscoop/latestrelease/1141/Newscoop-355-and-Newscoop-4-RC4-security-releases.htm
www.sourcefabric.org/en/products/newscoop_release/570/Newscoop-352-is-out!.htm