| Reporter | Title | Published | Views | Family All 5 |
|---|---|---|---|---|
| Geeklog < 1.3.12 comment.php order Parameter SQL Injection | 5 Jul 200500:00 | – | nessus | |
| CVE-2005-2152 | 6 Jul 200504:00 | – | cve | |
| CVE-2005-2152 | 6 Jul 200504:00 | – | cvelist | |
| EUVD-2005-2153 | 7 Oct 202500:30 | – | euvd | |
| CVE-2005-2152 | 6 Jul 200504:00 | – | nvd |
| Source | Link |
|---|---|
| nessus | www.nessus.org/u |
| cve | www.cve.mitre.org/cgi-bin/cvename.cgi |
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(18622);
script_version("1.19");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/04/11");
script_cve_id("CVE-2005-2152");
script_bugtraq_id(14143);
script_name(english:"Geeklog User Comment Retrieval SQL Injection");
script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a PHP script that is affected by a SQL
injection flaw.");
script_set_attribute(attribute:"description", value:
"The installed version of Geeklog suffers from a SQL injection
vulnerability due to the application's failure to sanitize user-
supplied input via the 'order' parameter of the 'comment.php' script.
By leveraging this flaw, an attacker may be able to recover sensitive
information, such as password hashes, launch attacks against the
underlying database, and the like.");
# https://web.archive.org/web/20081201121344/http://www.hardened-php.net/advisory-062005.php
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?94c28482");
script_set_attribute(attribute:"solution", value:
"Upgrade to Geeklog version 1.3.11 sr1 or later.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:H/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:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2005/07/04");
script_set_attribute(attribute:"plugin_publication_date", value:"2005/07/06");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:geeklog:geeklog");
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) 2005-2022 Tenable Network Security, Inc.");
script_dependencies("geeklog_detect.nasl");
script_require_keys("Settings/ParanoidReport", "www/geeklog");
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, embedded: 0);
if (!can_host_php(port:port)) exit(0);
# Test an install.
install = get_kb_item(string("www/", port, "/geeklog"));
if (isnull(install)) exit(0);
matches = eregmatch(string:install, pattern:"^(.+) under (/.*)$");
if (!isnull(matches))
{
dir = matches[2];
# Try to exploit the flaw enough to cause a syntax error.
w = http_send_recv3(method:"GET",
item:string(
dir, "/comment.php?",
"mode=display&",
"format=flat&",
# nb: it's best if this is an unused cid.
"pid=99999&",
# nb: this will generate a syntax error since it's invalid
# for an ORDER clause.
"order=", SCRIPT_NAME
),
port:port
);
if (isnull(w)) exit(1, "the web server did not answer");
res = w[2];
# There's a problem if we get a SQL error.
if ("A SQL error has occured." >< res)
{
security_warning(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