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
AI Score
Confidence
Low
EPSS
Percentile
43.6%
e107 is prone to remote SQL injection vulnerability.
# SPDX-FileCopyrightText: 2008 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:e107:e107";
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.800303");
script_version("2023-07-28T05:05:23+0000");
script_tag(name:"last_modification", value:"2023-07-28 05:05:23 +0000 (Fri, 28 Jul 2023)");
script_tag(name:"creation_date", value:"2008-11-11 09:00:11 +0100 (Tue, 11 Nov 2008)");
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-4785");
script_name("e107 alternate_profiles plugin newuser.php SQL Injection Vulnerability");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2008 Greenbone AG");
script_family("Web application abuses");
script_dependencies("e107_detect.nasl");
script_mandatory_keys("e107/installed");
script_require_ports("Services/www", 80);
script_xref(name:"URL", value:"http://www.milw0rm.com/exploits/6849");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/31940");
script_tag(name:"impact", value:"Successful exploitation could allow an attacker to compromise the application,
access or modify data in the underlying database.");
script_tag(name:"affected", value:"e107 version 0.7.13, alternate_profiles plugin on all running platform.");
script_tag(name:"insight", value:"The flaw exists in newuser.php file, which does not validate user input data
in the alternate_profiles via the id parameter.");
script_tag(name:"solution", value:"Upgrade to e107 version 0.7.22 or later.");
script_tag(name:"summary", value:"e107 is prone to remote SQL injection vulnerability.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"remote_banner_unreliable"); #TODO: This test is broken and just checking if a file exists
script_xref(name:"URL", value:"http://e107.org/edownload.php");
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 + "/e107_plugins/alternate_profiles/newuser.php";
req = http_get( item:url, port:port );
res = http_keepalive_send_recv( port:port, data:req );
if( "newuser" >< res && res =~ "^HTTP/1\.[01] 200" ) {
report = http_report_vuln_url( port:port, url:url );
security_message( port:port, data:report );
exit( 0 );
}
exit(99);