Lucene search

K

WordPress fGallery 'fim_rss.php' 'album' Parameter SQL Injection

🗓️ 28 Jan 2008 00:00:00Reported by This script is Copyright (C) 2008-2024 Tenable Network Security, Inc.Type 
nessus
 nessus
🔗 www.tenable.com👁 32 Views

The remote web server has a SQL injection vulnerability due to unsanitized input in 'album' parameter of 'fim_rss.php' script in fGallery WordPress plugi

Show more
Related
Refs
Code
ReporterTitlePublishedViews
Family
Cvelist
CVE-2008-0491
30 Jan 200821:00
cvelist
NVD
CVE-2008-0491
30 Jan 200822:00
nvd
Patchstack
WordPress fGallery Plugin <= 2.4.1 - SQL Injection
30 Jan 200800:00
patchstack
Prion
Sql injection
30 Jan 200822:00
prion
CVE
CVE-2008-0491
30 Jan 200822:00
cve
WPVulnDB
fGallery 2.4.1 - fimrss.php SQL Injection
1 Aug 201400:00
wpvulndb
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

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

if (description)
{
  script_id(30109);
  script_version("1.20");
  script_set_attribute(attribute:"plugin_modification_date", value:"2024/06/05");

  script_cve_id("CVE-2008-0491");
  script_bugtraq_id(27464);
  script_xref(name:"EDB-ID", value:"4845");

  script_name(english:"WordPress fGallery 'fim_rss.php' 'album' Parameter SQL Injection");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP script that is affected by a SQL
injection vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote host is running fGallery, a third-party image gallery
plugin for WordPress.

The version of fGallery installed on the remote host fails to sanitize
input to the 'album' parameter of the 'fim_rss.php' script before
using it in a database query. Regardless of PHP's 'magic_quotes_gpc'
setting, an attacker may be able to exploit this issue to manipulate
database queries, leading to disclosure of sensitive information,
modification of data, or attacks against the underlying database.");
  script_set_attribute(attribute:"solution", value:
"Unknown at this time.");
  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:"vuln_publication_date", value:"2008/01/27");
  script_set_attribute(attribute:"plugin_publication_date", value:"2008/01/28");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:wordpress:wordpress");
  script_set_attribute(attribute:"enable_cgi_scanning", value:"true");
  script_end_attributes();

  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2008-2024 Tenable Network Security, Inc.");

  script_dependencies("wordpress_detect.nasl");
  script_require_keys("installed_sw/WordPress", "www/PHP");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 80);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");
include("url_func.inc");

app = "WordPress";
get_install_count(app_name:app, exit_if_zero:TRUE);

port = get_http_port(default:80, php:TRUE);

install = get_single_install(
  app_name : app,
  port     : port
);

dir = install['path'];
install_url = build_url(port:port, qs:dir);

plugin = 'fGallery';

# Check KB first
installed = get_kb_item("www/"+port+"/webapp_ext/"+plugin+" under "+dir);

if (!installed)
{
  checks = make_array();
  regexes = make_list();
  regexes[0] = make_list('fgallery-plugin', 'msgid "Image Gallery feed');
  checks["/wp-content/plugins/fgallery/languages/fgallery.pot"] = regexes;

  # Ensure plugin is installed
  installed = check_webapp_ext(
    checks : checks,
    dir    : dir,
    port   : port,
    ext    : plugin
  );
}
if (!installed)
audit(AUDIT_WEB_APP_EXT_NOT_INST, app, install_url, plugin + " plugin");

# Try to exploit the issue to generate a SQL syntax error.
exploit = "-1 " + SCRIPT_NAME + " -- ";

w = http_send_recv3(
  method:"GET",
  item: dir + "/wp-content/plugins/fgallery/fim_rss.php?" +
      "album=" + urlencode(str:exploit),
  port: port,
  exit_on_fail: TRUE
);
res = w[2];

# There's a problem if we see a syntax error.
if ("fim_cat WHERE id = " + exploit + "</code>" >< res)
{
  set_kb_item(name: 'www/'+port+'/SQLInjection', value: TRUE);
  security_hole(port);
  exit(0);
}
else
  audit(AUDIT_WEB_APP_EXT_NOT_AFFECTED, app, install_url, plugin + " plugin");

Transform Your Security Services

Elevate your offerings with Vulners' advanced Vulnerability Intelligence. Contact us for a demo and discover the difference comprehensive, actionable intelligence can make in your security strategy.

Book a live demo
28 Jan 2008 00:00Current
6.4Medium risk
Vulners AI Score6.4
CVSS27.5
EPSS0.003
32
.json
Report