Lucene search

K
nessusThis script is Copyright (C) 2003-2021 Tenable Network Security, Inc.TRUEGALERIE_ADMIN_BYPASS.NASL
HistoryMay 06, 2003 - 12:00 a.m.

Truegalerie admin.php loggedin Parameter Admin Authentication Bypass

2003-05-0600:00:00
This script is Copyright (C) 2003-2021 Tenable Network Security, Inc.
www.tenable.com
15

CVSS2

6.4

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:P/A:N

EPSS

0.01

Percentile

84.2%

The remote host is running TrueGalerie, an album management system written in PHP.

There is a flaw in the version of TrueGalerie that could allow an attacker to log in as the administrator without having to know the password, simply by requesting the URL :

/admin.php?loggedin=1 Provided PHP’s ‘register_globals’ setting is enabled, an attacker may use this flaw to gain administrative privileges on this web server and modify its content.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

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

if(description)
{
 script_id(11582);
 script_version("1.20");
 script_cve_id("CVE-2003-1488");
 script_bugtraq_id(7427);

 script_name(english:"Truegalerie admin.php loggedin Parameter Admin Authentication Bypass");

 script_set_attribute(attribute:"synopsis", value:
"The remote host has a PHP script that is affected by an
authentication bypass issue." );
 script_set_attribute(attribute:"description", value:
"The remote host is running TrueGalerie, an album management 
system written in PHP.

There is a flaw in the version of TrueGalerie that could 
allow an attacker to log in as the administrator without 
having to know the password, simply by requesting the URL :

  /admin.php?loggedin=1
		
Provided PHP's 'register_globals' setting is enabled, an 
attacker may use this flaw to gain administrative privileges
on this web server and modify its content." );
 script_set_attribute(attribute:"solution", value:
"Disable the option 'register_globals' in php.ini or replace
this set of CGI by something else." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
 script_set_cvss_temporal_vector("CVSS2#E:POC/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(20);

 script_set_attribute(attribute:"plugin_publication_date", value: "2003/05/06");
 script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();

 
 script_summary(english:"logs into the remote TrueGalerie installation");
 
 script_category(ACT_GATHER_INFO);
 
 script_copyright(english:"This script is Copyright (C) 2003-2021 Tenable Network Security, Inc.");
 script_family(english:"CGI abuses");
 script_dependencie("find_service1.nasl", "http_version.nasl");
 script_require_ports("Services/www", 80);
 script_exclude_keys("Settings/disable_cgi_scanning");
 script_require_keys("www/PHP");
 exit(0);
}

#
# The script code starts here
#

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);

function check(loc)
{
 local_var res, req;
 res = http_send_recv3(method:"GET", item:string(loc, "/admin.php?loggedin=1"), port:port);

 if(isnull(res))exit(1,"Null response to admin.php request.");
 if(">DECONNEXION</a>" >< res[2] &&
    'Liste des cat\xE9gories' >< res[2])
 {
 	security_warning(port);
	exit(0);
 }
}

foreach dir (cgi_dirs())
{
 check(loc:dir);
}

CVSS2

6.4

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

NONE

AV:N/AC:L/Au:N/C:P/I:P/A:N

EPSS

0.01

Percentile

84.2%

Related for TRUEGALERIE_ADMIN_BYPASS.NASL