Vulnerabilities > CVE-2005-3398 - Information Exposure vulnerability in SUN Solaris and Sunos

047910
CVSS 4.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
NONE
Availability impact
NONE
network
sun
CWE-200
nessus
metasploit

Summary

The default configuration of the web server for the Solaris Management Console (SMC) in Solaris 8, 9, and 10 enables the HTTP TRACE method, which could allow remote attackers to obtain sensitive information such as cookies and authentication data from HTTP headers.

Vulnerable Configurations

Part Description Count
OS
Sun
3

Common Weakness Enumeration (CWE)

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Subverting Environment Variable Values
    The attacker directly or indirectly modifies environment variables used by or controlling the target software. The attacker's goal is to cause the target software to deviate from its expected operation in a manner that benefits the attacker.
  • Footprinting
    An attacker engages in probing and exploration activity to identify constituents and properties of the target. Footprinting is a general term to describe a variety of information gathering techniques, often used by attackers in preparation for some attack. It consists of using tools to learn as much as possible about the composition, configuration, and security mechanisms of the targeted application, system or network. Information that might be collected during a footprinting effort could include open ports, applications and their versions, network topology, and similar information. While footprinting is not intended to be damaging (although certain activities, such as network scans, can sometimes cause disruptions to vulnerable applications inadvertently) it may often pave the way for more damaging attacks.
  • Exploiting Trust in Client (aka Make the Client Invisible)
    An attack of this type exploits a programs' vulnerabilities in client/server communication channel authentication and data integrity. It leverages the implicit trust a server places in the client, or more importantly, that which the server believes is the client. An attacker executes this type of attack by placing themselves in the communication channel between client and server such that communication directly to the server is possible where the server believes it is communicating only with a valid client. There are numerous variations of this type of attack.
  • Browser Fingerprinting
    An attacker carefully crafts small snippets of Java Script to efficiently detect the type of browser the potential victim is using. Many web-based attacks need prior knowledge of the web browser including the version of browser to ensure successful exploitation of a vulnerability. Having this knowledge allows an attacker to target the victim with attacks that specifically exploit known or zero day weaknesses in the type and version of the browser used by the victim. Automating this process via Java Script as a part of the same delivery system used to exploit the browser is considered more efficient as the attacker can supply a browser fingerprinting method and integrate it with exploit code, all contained in Java Script and in response to the same web page request by the browser.
  • Session Credential Falsification through Prediction
    This attack targets predictable session ID in order to gain privileges. The attacker can predict the session ID used during a transaction to perform spoofing and session hijacking.

Metasploit

Nessus

  • NASL familySolaris Local Security Checks
    NASL idSOLARIS10_121308.NASL
    descriptionSunOS 5.10: Solaris Management Console Pat. Date this patch was last updated by Sun : Apr/02/10 This plugin has been deprecated and either replaced with individual 121308 patch-revision plugins, or deemed non-security related.
    last seen2019-02-21
    modified2018-07-30
    plugin id20273
    published2005-12-07
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=20273
    titleSolaris 10 (sparc) : 121308-20 (deprecated)
    code
    #%NASL_MIN_LEVEL 80502
    
    #
    # (C) Tenable Network Security, Inc.
    #
    # @DEPRECATED@
    #
    # Disabled on 2018/03/12. Deprecated and either replaced by
    # individual patch-revision plugins, or has been deemed a
    # non-security advisory.
    #
    include("compat.inc");
    
    if (description)
    {
      script_id(20273);
      script_version("1.53");
      script_cvs_date("Date: 2019/10/25 13:36:26");
    
      script_cve_id("CVE-2005-3398", "CVE-2005-3498", "CVE-2007-3093", "CVE-2007-3094");
    
      script_name(english:"Solaris 10 (sparc) : 121308-20 (deprecated)");
      script_summary(english:"Check for patch 121308-20");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"This plugin has been deprecated."
      );
      script_set_attribute(
        attribute:"description",
        value:
    "SunOS 5.10: Solaris Management Console Pat.
    Date this patch was last updated by Sun : Apr/02/10
    
    This plugin has been deprecated and either replaced with individual
    121308 patch-revision plugins, or deemed non-security related."
      );
      script_set_attribute(
        attribute:"see_also",
        value:"https://getupdates.oracle.com/readme/121308-20"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"n/a"
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
      script_cwe_id(200);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:sun:solaris");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2010/04/02");
      script_set_attribute(attribute:"plugin_publication_date", value:"2005/12/07");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2005-2019 Tenable Network Security, Inc.");
      script_family(english:"Solaris Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Solaris/showrev");
    
      exit(0);
    }
    
    exit(0, "This plugin has been deprecated. Consult specific patch-revision plugins for patch 121308 instead.");
    
  • NASL familyWeb Servers
    NASL idHTTP_TRACE.NASL
    descriptionThis web server is reachable through a reverse HTTP proxy.
    last seen2018-09-02
    modified2018-08-10
    plugin id11040
    published2002-07-02
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=11040
    titleHTTP Reverse Proxy Detection
    code
    # @DEPRECATED@
    #
    # (C) Tenable Network Security, Inc.
    #
    
    # HTTP/1.1 is defined by RFC 2068
    #
    # Check for proxy on the way (transparent or reverse?!)
    #
    
    
    include("compat.inc");
    
    if(description)
    {
     script_id(11040);
     script_version ("1.37");
     script_cve_id("CVE-2004-2320", "CVE-2005-3398", "CVE-2005-3498", "CVE-2007-3008");
    
     script_name(english: "HTTP Reverse Proxy Detection (Deprecated)");
     script_set_attribute(attribute:"synopsis", value:
    "A transparent or reverse HTTP proxy is running on this port." );
     script_set_attribute(attribute:"description", value:
    "This web server is reachable through a reverse HTTP proxy.
    
    Note: This plugin has been deprecated.
    " );
    
     script_set_attribute(attribute:"solution", value:"Disable the HTTP reverse proxy.");
     script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:N");
     script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N");
     script_set_attribute(attribute:"cvss_score_source", value:"CVE-2004-2320");
     script_cwe_id(79, 200);
    
     script_set_attribute(attribute:"plugin_publication_date", value: "2002/07/02");
     script_cvs_date("Date: 2019/09/26 12:31:13");
    
    script_set_attribute(attribute:"plugin_type", value:"remote");
     script_end_attributes();
    
     script_summary(english: "Look for an HTTP proxy on the way");
     script_category(ACT_GATHER_INFO);
     script_copyright(english:"This script is Copyright (C) 2002-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
     script_family(english: "Web Servers");
     script_dependencies("http_version.nasl");
     script_require_ports("Services/www", 80);
     exit(0);
    }
    
    # Deprecated
    exit(0, 'This plugin has been deprecated.');
    
    include("global_settings.inc");
    include("misc_func.inc");
    include("http.inc");
    
    port = get_http_port(default:80, embedded: 1);
    
    r = http_send_recv3(port: port, method: 'GET', item: "/", exit_on_fail: 1);
    h = parse_http_headers(status_line: r[0], headers: r[1]);
    via = h["via"];
    trace="";
    
      while(via)
      {
        # display("Via=", via, "\n");
        proxy = ereg_replace(string:via, pattern: " *([^,]*),?.*", replace: "\1");
        via = ereg_replace(string: via, pattern: "([^,]*)(, *)?(.*)", replace: "\3");
        # display(string("Proxy=", proxy, " - Via=", via, "\n"));
        proto = ereg_replace(string:proxy, 
    		pattern:"^([a-zA-Z0-9_-]*/?[0-9.]+) +.*",
    		replace: "\1");
        line = ereg_replace(string:proxy, 
    		pattern:"^([a-zA-Z0-9_-]*/?[0-9.]+) *(.*)",
    		replace: "\2");
        # display(string("Proto=", proto, "\nLine=", line, "\n"));
        if (egrep(pattern:"^[0-9]+", string: proto))
          proto = "HTTP/" + proto;
        trace = trace + proto;
        l = strlen(proto);
        for (i= l;i < 12; i=i+1) trace=trace+" ";
        trace = strcat(trace, " ", line, '\n');
      }
    
    if (trace)
      security_warning(port: port, extra: 
    strcat(
    'The GET method revealed those proxies on the way to this web server :\n', trace));
    else if (h["x-cache"])
    {
      p = ereg_replace(pattern:'^ *[A-Z]+ +from +([^ \t\r\n]+)[ \t\r\n]+',
    	string: h["x-cache"], replace: "\1");
      r = 'There might be a caching proxy on the way to this web server';
      if (p != heads) r = strcat(r, ':\n', p);
      security_warning(port: port, extra: r);
    }
    
    exit(0); # broken at this time
    #
    ver = get_kb_item(string("http/", port));
    if (int(ver) < 11)  exit(0);	# No TRACE in HTTP/1.0
    
    n=0;
    for (i = 0; i < 99; i ++)
    {
      r = http_send_recv3(port: port, method: 'TRACE', item: '/', 
      add_headers: make_array("Max-Forwards", i), exit_on_fail: 0 );
      if (isnull(r)) break;
      h = parse_http_headers(status_line: r[0], headers: r[1]);
      via = h["via"];
      if (via)
        viaL[i] = via;
      else
        viaL[i] = "?";
    
      if (r[0] =~ '^HTTP/[0-9.]+ +200 ')
        {
          # The proxy is supposed to send back the request it got. 
          # i.e. "TRACE / HTTP/1.1"
          # However, NetCache appliance change it to "TRACE http://srv HTTP/1.1"
          if (egrep(pattern: "^TRACE (/|http://.*) HTTP/1.1", string: r[2]))
          {
            srv = h["server"];
            if (srv)
              srvL[i+1] = srv;
            else
              srvL[i+1] = "?";
            n ++;
          }
        }
        else
          break;
    }
    
    trace="";
    for (i = 1; i <= n; i = i+1)
      trace = strcat(trace, viaL[i]," - ", srvL[i], '\n');
    
    if (n > 0)
      security_warning(port:port, protocol:"tcp",
    	extra: strcat(
    	'The TRACE method revealed ', n, 
    	' proxy(s) between us and the web server :\n',
    	trace) );
    
  • NASL familySolaris Local Security Checks
    NASL idSOLARIS9_116807.NASL
    descriptionSunOS 5.9: /usr/sadm/lib/smc/lib/preload/jsdk21.jar patch. Date this patch was last updated by Sun : Sep/15/05
    last seen2020-06-01
    modified2020-06-02
    plugin id13576
    published2004-07-12
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/13576
    titleSolaris 9 (sparc) : 116807-02
    code
    #%NASL_MIN_LEVEL 80502
    #
    # (C) Tenable Network Security, Inc.
    #
    # The descriptive text in this plugin was
    # extracted from the Oracle SunOS Patch Updates.
    #
    include("compat.inc");
    
    if (description)
    {
      script_id(13576);
      script_version("1.36");
      script_cvs_date("Date: 2019/10/25 13:36:23");
    
      script_cve_id("CVE-2005-3398", "CVE-2005-3498");
    
      script_name(english:"Solaris 9 (sparc) : 116807-02");
      script_summary(english:"Check for patch 116807-02");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote host is missing Sun Security Patch number 116807-02"
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "SunOS 5.9: /usr/sadm/lib/smc/lib/preload/jsdk21.jar patch.
    Date this patch was last updated by Sun : Sep/15/05"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://download.oracle.com/sunalerts/1000162.1.html"
      );
      script_set_attribute(
        attribute:"solution", 
        value:"You should install this patch for your system to be up-to-date."
      );
      script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:N/A:N");
      script_cwe_id(200);
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/o:sun:solaris");
    
      script_set_attribute(attribute:"patch_publication_date", value:"2005/09/15");
      script_set_attribute(attribute:"plugin_publication_date", value:"2004/07/12");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_copyright(english:"This script is Copyright (C) 2004-2019 Tenable Network Security, Inc.");
      script_family(english:"Solaris Local Security Checks");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/local_checks_enabled", "Host/Solaris/showrev");
    
      exit(0);
    }
    
    
    include("audit.inc");
    include("global_settings.inc");
    include("solaris.inc");
    
    if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
    
    if (solaris_check_patch(release:"5.9", arch:"sparc", patch:"116807-02", obsoleted_by:"", package:"SUNWmc", version:"11.9,REV=2002.04.14.23.49") < 0) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_warning(port:0, extra:solaris_get_report());
      else security_warning(0);
      exit(0);
    }
    audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familySolaris Local Security Checks
    NASL idSOLARIS10_X86_121309.NASL
    descriptionSunOS 5.10_x86: Solaris Management Console. Date this patch was last updated by Sun : Apr/02/10 This plugin has been deprecated and either replaced with individual 121309 patch-revision plugins, or deemed non-security related.
    last seen2019-02-21
    modified2018-07-30
    plugin id20276
    published2005-12-07
    reporterTenable
    sourcehttps://www.tenable.com/plugins/index.php?view=single&id=20276
    titleSolaris 10 (x86) : 121309-20 (deprecated)
  • NASL familySolaris Local Security Checks
    NASL idSOLARIS9_X86_116808.NASL
    descriptionSunOS 5.9_x86: /usr/sadm/lib/smc/lib/preload/jsdk21.jar patch. Date this patch was last updated by Sun : Sep/15/05
    last seen2020-06-01
    modified2020-06-02
    plugin id13633
    published2004-07-12
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/13633
    titleSolaris 9 (x86) : 116808-02

Oval

accepted2006-02-22T08:27:00.000-04:00
classvulnerability
contributors
nameRobert L. Hollis
organizationThreatGuard, Inc.
descriptionThe default configuration of the web server for the Solaris Management Console (SMC) in Solaris 8, 9, and 10 enables the HTTP TRACE method, which could allow remote attackers to obtain sensitive information such as cookies and authentication data from HTTP headers.
familyunix
idoval:org.mitre.oval:def:1445
statusaccepted
submitted2006-01-11T12:56:00.000-04:00
titleSMC TRACE HTTP Vulnerability
version36