Lucene search

K
nessusThis script is Copyright (C) 2004-2021 Tenable Network Security, Inc.BBLOG_SQL_INJECT.NASL
HistoryOct 13, 2004 - 12:00 a.m.

bBlog rss.php p Parameter SQL Injection

2004-10-1300:00:00
This script is Copyright (C) 2004-2021 Tenable Network Security, Inc.
www.tenable.com
16

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

0.005 Low

EPSS

Percentile

76.6%

The remote server runs a version of bBlog, a blogging system written in PHP and released under the GPL, which is as old as or older than version 0.7.4.

The remote version of this software is affected by a SQL injection attack in the script ‘rss.php’. This issue is due to a failure of the application to properly sanitize user-supplied input.

An attacker may use this flaw to execute arbitrary PHP code on this host or to take the control of the remote database.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
 script_id(15466);
 script_version("1.19");
 script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

 script_cve_id("CVE-2004-1570");
 script_bugtraq_id(11303);
 
 script_name(english:"bBlog rss.php p Parameter SQL Injection");
 script_summary(english:"Check bBlog version");
 
 script_set_attribute(attribute:"synopsis", value:
"The remote web application is vulnerable to a SQL injection attack.");
 script_set_attribute(attribute:"description", value:
"The remote server runs a version of bBlog, a blogging system written
in PHP and released under the GPL, which is as old as or older than
version 0.7.4. 

The remote version of this software is affected by a SQL injection
attack in the script 'rss.php'.  This issue is due to a failure of
the application to properly sanitize user-supplied input. 

An attacker may use this flaw to execute arbitrary PHP code on this
host or to take the control of the remote database.");
 script_set_attribute(attribute:"solution", value:"Upgrade to version 0.7.4 or later.");
 script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:H/RL:W/RC:ND");
 script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"true");

 script_set_attribute(attribute:"plugin_publication_date", value:"2004/10/13");
 script_set_attribute(attribute:"vuln_publication_date", value:"2004/10/01");

 script_set_attribute(attribute:"plugin_type", value:"remote");
 script_set_attribute(attribute:"cpe", value:"cpe:/a:eaden_mckee:bblog");
 script_end_attributes();

 script_category(ACT_GATHER_INFO);
 script_copyright(english:"This script is Copyright (C) 2004-2021 Tenable Network Security, Inc.");
 script_family(english:"CGI abuses");

 script_dependencie("http_version.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_require_keys("www/PHP");
 exit(0);
}

#
# The script code starts here
#

include("http_func.inc");
include("http_keepalive.inc");

port = get_http_port(default:80, embedded:TRUE);
if(!port) exit(0);
if(!get_port_state(port))exit(0);
if(!can_host_php(port:port))exit(0);


foreach dir (make_list(cgi_dirs(),  "/bblog"))
{
 buf = http_get(item:string(dir,"/index.php"), port:port);
 r = http_keepalive_send_recv(port:port, data:buf, bodyonly:1);
 if( r == NULL )exit(0);
 if(egrep(pattern:"www\.bBlog\.com target=.*bBlog 0\.([0-6]\.|7\.[0-3][^0-9]).*© 2003 ", string:r))
 {
   security_hole(port);
   set_kb_item(name: 'www/'+port+'/SQLInjection', value: TRUE);
 }
}
VendorProductVersionCPE
eaden_mckeebblogcpe:/a:eaden_mckee:bblog

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

0.005 Low

EPSS

Percentile

76.6%

Related for BBLOG_SQL_INJECT.NASL