Google Search Appliance proxystylesheet Parameter Multiple Remote Vulnerabilities (XSS, Code Exec, ID) - Nessus

High   Plugin ID: 20241

This page contains detailed information about the Google Search Appliance proxystylesheet Parameter Multiple Remote Vulnerabilities (XSS, Code Exec, ID) Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 20241
Name: Google Search Appliance proxystylesheet Parameter Multiple Remote Vulnerabilities (XSS, Code Exec, ID)
Filename: google_search_appliance_proxystylesheet.nasl
Vulnerability Published: 2005-11-21
This Plugin Published: 2005-11-22
Last Modification Time: 2021-01-19
Plugin Version: 1.28
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: google_search_appliance_detect.nasl
Excluded KB Items [?]: Settings/disable_cgi_scanning

Vulnerability Information


Severity: High
Vulnerability Published: 2005-11-21
Patch Published: 2005-11-21
CVE [?]: CVE-2005-3754, CVE-2005-3755, CVE-2005-3756, CVE-2005-3757, CVE-2005-3758
CPE [?]: cpe:/h:google:mini_search_appliance, cpe:/h:google:search_appliance

Synopsis

The remote web server is affected by multiple flaws.

Description

The remote Google Search Appliance / Mini Search Appliance fails to sanitize user-supplied input to the 'proxystylesheet' parameter, which is used for customization of the search interface. Exploitation of this issue may lead to arbitrary code execution (as an unprivileged user), port scanning, file discovery, and cross-site scripting.

Solution

Contact Google for a fix.

Public Exploits


Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the Google Search Appliance proxystylesheet Parameter Multiple Remote Vulnerabilities (XSS, Code Exec, ID) vulnerability:

  1. Metasploit: exploit/unix/webapp/google_proxystylesheet_exec
    [Google Appliance ProxyStyleSheet Command Execution]
  2. Exploit-DB: exploits/hardware/webapps/16907.rb
    [EDB-16907: Google Appliance ProxyStyleSheet - Command Execution (Metasploit)]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:H/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.5 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.5 (Medium)

Go back to menu.

Plugin Source


This is the google_search_appliance_proxystylesheet.nasl nessus plugin source code. This script is Copyright (C) 2005-2021 Tenable Network Security, Inc.

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

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

if (description)
{
  script_id(20241);
  script_version("1.28");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_cve_id(
    "CVE-2005-3754", 
    "CVE-2005-3755", 
    "CVE-2005-3756", 
    "CVE-2005-3757", 
    "CVE-2005-3758"
  );
  script_bugtraq_id(15509);

  script_name(english:"Google Search Appliance proxystylesheet Parameter Multiple Remote Vulnerabilities (XSS, Code Exec, ID)");
  script_summary(english:"Checks for proxystylesheet parameter multiple vulnerabilities in Google Search Appliance");
 
  script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by multiple flaws.");
  script_set_attribute(attribute:"description", value:
"The remote Google Search Appliance / Mini Search Appliance fails to
sanitize user-supplied input to the 'proxystylesheet' parameter, which
is used for customization of the search interface.  Exploitation of this
issue may lead to arbitrary code execution (as an unprivileged user),
port scanning, file discovery, and cross-site scripting.");
  # http://web.archive.org/web/20051213084327/http://metasploit.com/research/vulns/google_proxystylesheet/
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?516540e6");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2005/Nov/652");
  script_set_attribute(attribute:"solution", value:"Contact Google for a fix.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/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:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Google Appliance ProxyStyleSheet Command Execution');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
  script_cwe_id(20, 74, 79, 442, 629, 711, 712, 722, 725, 750, 751, 800, 801, 809, 811, 864, 900, 928, 931, 990);

  script_set_attribute(attribute:"vuln_publication_date", value:"2005/11/21");
  script_set_attribute(attribute:"plugin_publication_date", value:"2005/11/22");
  script_set_attribute(attribute:"patch_publication_date", value:"2005/11/21");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe",value:"cpe:/h:google:search_appliance");
  script_set_attribute(attribute:"cpe",value:"cpe:/h:google:mini_search_appliance");
  script_end_attributes();
 
  script_category(ACT_ATTACK);
  script_family(english:"CGI abuses");
 
  script_copyright(english:"This script is Copyright (C) 2005-2021 Tenable Network Security, Inc.");

  script_dependencies("google_search_appliance_detect.nasl");
  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);
if (!get_kb_item(string("www/", port, "/google_search_appliance"))) exit(0);


file = "../../../../../../../../../../etc/passwd";
w = http_send_recv3(method:"GET",
  item:string(
    "/search?",
    "site=nessus&",
    "output=xml_no_dtd&",
    "q=", SCRIPT_NAME, "&",
    "proxystylesheet=", file
  ), 
  port:port
);
if (isnull(w)) exit(1, "the web server did not answer");
res = w[2];

# There's a problem if the error message indicates...
if (
  # the file doesn't exist or...
  string("ERROR: Unable to fetch the stylesheet from source: ", file) >< res ||
  # the file does exist but isn't a valid stylesheet.
  "The following required pattern was not found:" >< res
) {
  security_hole(port);
  set_kb_item(name: 'www/'+port+'/XSS', value: TRUE);
  exit(0);
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/google_search_appliance_proxystylesheet.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\google_search_appliance_proxystylesheet.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/google_search_appliance_proxystylesheet.nasl

Go back to menu.

How to Run


Here is how to run the Google Search Appliance proxystylesheet Parameter Multiple Remote Vulnerabilities (XSS, Code Exec, ID) as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select Google Search Appliance proxystylesheet Parameter Multiple Remote Vulnerabilities (XSS, Code Exec, ID) plugin ID 20241.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl google_search_appliance_proxystylesheet.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a google_search_appliance_proxystylesheet.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - google_search_appliance_proxystylesheet.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state google_search_appliance_proxystylesheet.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CWE | Common Weakness Enumeration:
  • CWE-20 (Weakness) Improper Input Validation
  • CWE-74 (Weakness) Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
  • CWE-79 (Weakness) Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-442 (Category) DEPRECATED: Web Problems
  • CWE-629 (View) Weaknesses in OWASP Top Ten (2007)
  • CWE-711 (View) Weaknesses in OWASP Top Ten (2004)
  • CWE-712 (Category) OWASP Top Ten 2007 Category A1 - Cross Site Scripting (XSS)
  • CWE-722 (Category) OWASP Top Ten 2004 Category A1 - Unvalidated Input
  • CWE-725 (Category) OWASP Top Ten 2004 Category A4 - Cross-Site Scripting (XSS) Flaws
  • CWE-750 (View) Weaknesses in the 2009 CWE/SANS Top 25 Most Dangerous Programming Errors
  • CWE-751 (Category) 2009 Top 25 - Insecure Interaction Between Components
  • CWE-800 (View) Weaknesses in the 2010 CWE/SANS Top 25 Most Dangerous Programming Errors
  • CWE-801 (Category) 2010 Top 25 - Insecure Interaction Between Components
  • CWE-809 (View) Weaknesses in OWASP Top Ten (2010)
  • CWE-811 (Category) OWASP Top Ten 2010 Category A2 - Cross-Site Scripting (XSS)
  • CWE-864 (Category) 2011 Top 25 - Insecure Interaction Between Components
  • CWE-900 (View) Weaknesses in the 2011 CWE/SANS Top 25 Most Dangerous Software Errors
  • CWE-928 (View) Weaknesses in OWASP Top Ten (2013)
  • CWE-931 (Category) OWASP Top Ten 2013 Category A3 - Cross-Site Scripting (XSS)
  • CWE-990 (Category) SFP Secondary Cluster: Tainted Input to Command
See also: Similar and related Nessus plugins:
  • 63687 - Google Doc Embedder Plugin for WordPress 'File' Parameter Traversal Arbitrary File Disclosure
  • 146544 - Google Chrome < 88.0.4324.182 Multiple Vulnerabilities
  • 146948 - Google Chrome < 89.0.4389.72 Multiple Vulnerabilities
  • 147754 - Google Chrome < 89.0.4389.90 Multiple Vulnerabilities
  • 148243 - Google Chrome < 89.0.4389.114 Multiple Vulnerabilities
  • 148487 - Google Chrome < 89.0.4389.128 Multiple Vulnerabilities
  • 148558 - Google Chrome < 90.0.4430.72 Multiple Vulnerabilities
  • 148848 - Google Chrome < 90.0.4430.85 Multiple Vulnerabilities
  • 149412 - Google Chrome < 90.0.4430.212 Multiple Vulnerabilities
  • 150430 - Google Chrome < 91.0.4472.101 Multiple Vulnerabilities
  • 151831 - Google Chrome < 92.0.4515.107 Multiple Vulnerabilities
  • 152928 - Google Chrome < 93.0.4577.63 Multiple Vulnerabilities
  • 153255 - Google Chrome < 93.0.4577.82 Multiple Vulnerabilities
  • 153931 - Google Chrome < 94.0.4606.81 Multiple Vulnerabilities
  • 154238 - Google Chrome < 95.0.4638.54 Multiple Vulnerabilities
  • 154706 - Google Chrome < 95.0.4638.69 Multiple Vulnerabilities
  • 156462 - Google Chrome < 97.0.4692.71 Multiple Vulnerabilities
  • 159235 - Google Chrome < 99.0.4844.84 Vulnerability
  • 35689 - Google Chrome < 1.0.154.48 Cross-browser Command Execution
  • 39852 - Google Chrome < 2.0.172.37 Multiple Vulnerabilities
  • 41958 - Google Chrome < 3.0.195.24 dtoa Implementation Remote Overflow
  • 45610 - Google Chrome < 4.1.249.1059 Multiple Vulnerabilities
  • 46171 - Google Chrome < 4.1.249.1064 Multiple Vulnerabilities
  • 51161 - Google Chrome < 8.0.552.224 Multiple Vulnerabilities
  • 52589 - Google Chrome < 10.0.648.127 Multiple Vulnerabilities
  • 53569 - Google Chrome < 11.0.696.57 Multiple Vulnerabilities
  • 56230 - Google Chrome < 14.0.835.163 Multiple Vulnerabilities
  • 57974 - Google Chrome < 17.0.963.56 Multiple Vulnerabilities
  • 65925 - Google Picasa < 3.9 Build 136.17 Multiple Vulnerabilities
  • 66272 - Google Apps Directory Sync < 3.1.6 Weak Stored Credential Local Disclosure
  • 66556 - Google Chrome < 27.0.1453.93 Multiple Vulnerabilities
  • 66926 - Google SketchUp < 13.0.3689 SKP Multiple Vulnerabilities
  • 70923 - Google Chrome < 31.0.1650.57 Multiple Memory Corruptions
  • 72800 - Google Chrome < 33.0.1750.146 Multiple Vulnerabilities
  • 72939 - Google Chrome < 33.0.1750.149 Multiple Vulnerabilities

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file google_search_appliance_proxystylesheet.nasl version 1.28. For more plugins, visit the Nessus Plugin Library.

Go back to menu.