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.6 High
AI Score
Confidence
Low
0.01 Low
EPSS
Percentile
84.0%
MyBB with Advanced Forum Signatures (afsignatures) Plugin is prone to an SQL injection (SQLi) vulnerability.
# SPDX-FileCopyrightText: 2011 Greenbone AG
# 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-only
CPE = 'cpe:/a:mybb:mybb';
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.802039");
script_version("2023-07-28T05:05:23+0000");
script_cve_id("CVE-2011-5277", "CVE-2011-5278");
script_tag(name:"last_modification", value:"2023-07-28 05:05:23 +0000 (Fri, 28 Jul 2023)");
script_tag(name:"creation_date", value:"2011-10-14 14:22:41 +0200 (Fri, 14 Oct 2011)");
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_name("MyBB Advanced Forum Signatures (afsignatures) Plugin 'signature.php' SQL Injection Vulnerability");
script_category(ACT_ATTACK);
script_copyright("Copyright (C) 2011 Greenbone AG");
script_family("Web application abuses");
script_dependencies("sw_mybb_detect.nasl");
script_require_ports("Services/www", 80);
script_mandatory_keys("MyBB/installed");
script_xref(name:"URL", value:"http://www.exploit-db.com/exploits/17961");
script_xref(name:"URL", value:"http://packetstormsecurity.org/files/view/105661");
script_xref(name:"URL", value:"http://mods.mybb.com/view/advanced-forum-signatures");
script_tag(name:"impact", value:"Successful exploitation will let attackers to manipulate SQL
queries by injecting arbitrary SQL code and gain sensitive information.");
script_tag(name:"affected", value:"MyBB Advanced Forum Signatures (afsignatures) Plugin Version
2.0.4, Other versions may also be affected.");
script_tag(name:"insight", value:"The flaw is due to input passed via multiple parameters to
'signature.php', which is not properly sanitised before being used in a SQL query.");
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:"MyBB with Advanced Forum Signatures (afsignatures) Plugin is prone to an SQL injection (SQLi) vulnerability.");
script_tag(name:"solution_type", value:"WillNotFix");
script_tag(name:"qod_type", value:"remote_app");
exit(0);
}
include("http_func.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 + "/signature.php";
postData = "afs_bar_right=postcount''SQLi;--";
req = http_post(item:url, port:port, data:postData);
res = http_send_recv(port:port, data:req);
if("MyBB has experienced an internal SQL error and cannot continue." >< res && "You have an error in your SQL syntax" >< res){
report = http_report_vuln_url(port:port, url:url);
security_message(port:port, data:report);
}
exit(0);