Lucene search
+L

TWiki < 4.2.4 Multiple XSS / Command Execution Vulnerabilities

🗓️ 16 Dec 2008 00:00:00Reported by Copyright (C) 2008 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 856 Views

TWiki XSS and Command Execution Vulnerabilities in TWiki version prior to 4.2.4

Related
Refs
Code
ReporterTitlePublishedViews
Family
nessus
Tenable Nessus
Twiki < 4.2.4 Multiple Vulnerabilities
8 Dec 200800:00
nessus
nessus
Tenable Nessus
FreeBSD : twiki -- multiple vulnerabilities (f98dea27-d687-11dd-abd1-0050568452ac)
2 Jan 200900:00
nessus
circl
Circl
CVE-2008-5304
6 Dec 200800:00
circl
circl
Circl
CVE-2008-5305
6 Dec 200800:00
circl
cve
CVE
CVE-2008-5304
10 Dec 200800:00
cve
cve
CVE
CVE-2008-5305
10 Dec 200800:00
cve
cvelist
Cvelist
CVE-2008-5304
10 Dec 200800:00
cvelist
cvelist
Cvelist
CVE-2008-5305
10 Dec 200800:00
cvelist
exploitdb
Exploit DB
TWiki 4.x - 'SEARCH' Remote Command Execution
6 Dec 200800:00
exploitdb
exploitdb
Exploit DB
TWiki 4.x - 'URLPARAM' Cross-Site Scripting
6 Dec 200800:00
exploitdb
Rows per page
# SPDX-FileCopyrightText: 2008 Greenbone AG
# 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

CPE = "cpe:/a:twiki:twiki";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.800320");
  script_version("2025-12-11T05:46:19+0000");
  script_tag(name:"last_modification", value:"2025-12-11 05:46:19 +0000 (Thu, 11 Dec 2025)");
  script_tag(name:"creation_date", value:"2008-12-16 16:12:00 +0100 (Tue, 16 Dec 2008)");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_cve_id("CVE-2008-5304", "CVE-2008-5305");

  script_name("TWiki < 4.2.4 Multiple XSS / Command Execution Vulnerabilities");

  script_copyright("Copyright (C) 2008 Greenbone AG");
  script_category(ACT_GATHER_INFO);
  script_family("Web application abuses");
  script_dependencies("gb_twiki_detect.nasl");
  script_mandatory_keys("twiki/detected");

  script_tag(name:"impact", value:"Successful exploitation could allow execution of arbitrary script code or
  commands. This could let attackers steal cookie-based authentication credentials or compromise the affected
  application.");

  script_tag(name:"affected", value:"TWiki versions prior to 4.2.4.");
  script_tag(name:"insight", value:"The flaws are due to:

  - %URLPARAM{}% variable is not properly sanitized which lets attackers
    conduct cross-site scripting attack.

  - %SEARCH{}% variable is not properly sanitised before being used in an
    eval() call which lets the attackers execute perl code through eval
    injection attack.");

  script_tag(name:"solution", value:"Update to version 4.2.4 or later.");

  script_tag(name:"summary", value:"TWiki is prone to multiple cross-site scripting (XSS) and
  command execution vulnerabilities.");

  script_xref(name:"URL", value:"http://twiki.org/cgi-bin/view/Codev.SecurityAlert-CVE-2008-5304");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/32668");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/32669");
  script_xref(name:"URL", value:"http://twiki.org/cgi-bin/view/Codev/SecurityAlert-CVE-2008-5305");

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

  exit(0);
}

include("version_func.inc");
include("host_details.inc");

if( ! port = get_app_port( cpe:CPE ) )
  exit( 0 );

if( ! vers = get_app_version( cpe:CPE, port:port ) )
  exit( 0 );

if( version_is_less( version:vers, test_version:"4.2.4" ) ) {
  report = report_fixed_ver( installed_version:vers, fixed_version:"4.2.4" );
  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