7.5 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
7.7 High
AI Score
Confidence
Low
0.001 Low
EPSS
Percentile
27.8%
Simple Machines Forum is prone to an SQL injection (SQLi) vulnerability.
# Copyright (C) 2009 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.
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.900544");
script_version("2022-05-09T13:48:18+0000");
script_tag(name:"last_modification", value:"2022-05-09 13:48:18 +0000 (Mon, 09 May 2022)");
script_tag(name:"creation_date", value:"2009-04-30 06:40:16 +0200 (Thu, 30 Apr 2009)");
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_cve_id("CVE-2008-6741");
script_name("Simple Machines Forum SQL Injection Vulnerability");
script_xref(name:"URL", value:"http://www.milw0rm.com/exploits/5826");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/29734");
script_xref(name:"URL", value:"http://xforce.iss.net/xforce/xfdb/43118");
script_tag(name:"qod_type", value:"remote_banner");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2009 Greenbone Networks GmbH");
script_family("Web application abuses");
script_dependencies("gb_simple_machines_forum_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("SMF/installed");
script_tag(name:"impact", value:"Successful exploitation will allow attackers to execute arbitrary code,
and can view, add, modify or delete information in the back-end database.");
script_tag(name:"affected", value:"Simple Machines Forum 1.1.4 and prior.");
script_tag(name:"insight", value:"Error exists while sending a specially crafted SQL statements into load.php
when setting the db_character_set parameter to a multibyte character which
causes the addslashes PHP function to generate a \(backslash) sequence that
does not quote the '(single quote) character, as demonstrated via a manlabels
action to index.php.");
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:"Simple Machines Forum is prone to an SQL injection (SQLi) vulnerability.");
script_tag(name:"solution_type", value:"WillNotFix");
exit(0);
}
include("http_func.inc");
include("port_service_func.inc");
include("version_func.inc");
httpPort = http_get_port(default:80);
ver = get_kb_item("www/" + httpPort + "/SMF");
ver = eregmatch(pattern:"^(.+) under (/.*)$", string:ver);
if(ver[1] == NULL){
exit(0);
}
if(version_is_less_equal(version:ver[1], test_version:"1.1.4")){
security_message(httpPort);
}