Vulnerabilities > CVE-2008-4556 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in SUN Solaris 8/9

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
sun
CWE-119
critical
nessus
exploit available
metasploit

Summary

Stack-based buffer overflow in the adm_build_path function in sadmind in Sun Solstice AdminSuite on Solaris 8 and 9 allows remote attackers to execute arbitrary code via a crafted request.

Vulnerable Configurations

Part Description Count
OS
Sun
4

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Exploit-Db

  • descriptionSolaris 9 [UltraSPARC] sadmind Remote Root Exploit. CVE-2008-4556. Remote exploit for solaris platform
    fileexploits/solaris/remote/6786.pl
    idEDB-ID:6786
    last seen2016-02-01
    modified2008-10-19
    platformsolaris
    port111
    published2008-10-19
    reporterkingcope
    sourcehttps://www.exploit-db.com/download/6786/
    titleSolaris 9 - UltraSPARC sadmind Remote Root Exploit
    typeremote
  • descriptionSolaris sadmind adm_build_path Buffer Overflow. CVE-2008-4556. Remote exploit for solaris platform
    idEDB-ID:9920
    last seen2016-02-01
    modified2008-10-14
    published2008-10-14
    reporterAdriano Lima
    sourcehttps://www.exploit-db.com/download/9920/
    titleSolaris sadmind adm_build_path - Buffer Overflow
  • descriptionSun Solaris sadmind adm_build_path() Buffer Overflow. CVE-2008-4556. Remote exploit for solaris platform
    idEDB-ID:16325
    last seen2016-02-01
    modified2010-07-03
    published2010-07-03
    reportermetasploit
    sourcehttps://www.exploit-db.com/download/16325/
    titleSun Solaris sadmind adm_build_path Buffer Overflow

Metasploit

descriptionThis module exploits a buffer overflow vulnerability in adm_build_path() function of sadmind daemon. The distributed system administration daemon (sadmind) is the daemon used by Solstice AdminSuite applications to perform distributed system administration operations. The sadmind daemon is started automatically by the inetd daemon whenever a request to invoke an operation is received. The sadmind daemon process continues to run for 15 minutes after the last request is completed, unless a different idle-time is specified with the -i command line option. The sadmind daemon may be started independently from the command line, for example, at system boot time. In this case, the -i option has no effect; sadmind continues to run, even if there are no active requests.
idMSF:EXPLOIT/SOLARIS/SUNRPC/SADMIND_ADM_BUILD_PATH
last seen2020-03-15
modified2017-07-24
published2008-10-14
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/solaris/sunrpc/sadmind_adm_build_path.rb
titleSun Solaris sadmind adm_build_path() Buffer Overflow

Nessus

  • NASL familySolaris Local Security Checks
    NASL idSOLARIS9_X86_116454.NASL
    descriptionSunOS 5.9_x86: sadmind patch. Date this patch was last updated by Sun : May/21/09
    last seen2020-06-01
    modified2020-06-02
    plugin id13631
    published2004-07-12
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/13631
    titleSolaris 9 (x86) : 116454-03
    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(13631);
      script_version("1.34");
      script_cvs_date("Date: 2019/10/25 13:36:26");
    
      script_cve_id("CVE-2008-4556");
    
      script_name(english:"Solaris 9 (x86) : 116454-03");
      script_summary(english:"Check for patch 116454-03");
    
      script_set_attribute(
        attribute:"synopsis", 
        value:"The remote host is missing Sun Security Patch number 116454-03"
      );
      script_set_attribute(
        attribute:"description", 
        value:
    "SunOS 5.9_x86: sadmind patch.
    Date this patch was last updated by Sun : May/21/09"
      );
      script_set_attribute(
        attribute:"see_also",
        value:"http://download.oracle.com/sunalerts/1019777.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:L/Au:N/C:C/I:C/A:C");
      script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
      script_set_attribute(attribute:"exploit_available", value:"true");
      script_set_attribute(attribute:"exploit_framework_core", value:"true");
      script_set_attribute(attribute:"metasploit_name", value:'Sun Solaris sadmind adm_build_path() Buffer Overflow');
      script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
      script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
      script_set_attribute(attribute:"canvas_package", value:'D2ExploitPack');
      script_cwe_id(119);
    
      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:"2009/05/21");
      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_x86", arch:"i386", patch:"116454-03", obsoleted_by:"", package:"SUNWadmfw", version:"11.8,REV=2002.10.31.17.09") < 0) flag++;
    
    if (flag)
    {
      if (report_verbosity > 0) security_hole(port:0, extra:solaris_get_report());
      else security_hole(0);
      exit(0);
    }
    audit(AUDIT_HOST_NOT, "affected");
    
  • NASL familySolaris Local Security Checks
    NASL idSOLARIS8_X86_116442.NASL
    descriptionSunOS 5.8_x86: Solaris sadmind default sec. Date this patch was last updated by Sun : Feb/06/04
    last seen2020-06-01
    modified2020-06-02
    plugin id13508
    published2004-07-12
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/13508
    titleSolaris 8 (x86) : 116442-01
  • NASL familySolaris Local Security Checks
    NASL idSOLARIS9_116453.NASL
    descriptionSunOS 5.9: sadmind patch. Date this patch was last updated by Sun : May/21/09
    last seen2020-06-01
    modified2020-06-02
    plugin id13573
    published2004-07-12
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/13573
    titleSolaris 9 (sparc) : 116453-03
  • NASL familySolaris Local Security Checks
    NASL idSOLARIS8_116455.NASL
    descriptionSunOS 5.8: Solaris sadmind default securit. Date this patch was last updated by Sun : Feb/06/04
    last seen2020-06-01
    modified2020-06-02
    plugin id13405
    published2004-07-12
    reporterThis script is Copyright (C) 2004-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/13405
    titleSolaris 8 (sparc) : 116455-01

Oval

accepted2010-09-20T04:00:29.494-04:00
classvulnerability
contributors
  • namePai Peng
    organizationHewlett-Packard
  • nameJonathan Baker
    organizationThe MITRE Corporation
definition_extensions
  • commentSolaris 8 (SPARC) is installed
    ovaloval:org.mitre.oval:def:1539
  • commentSolaris 9 (SPARC) is installed
    ovaloval:org.mitre.oval:def:1457
  • commentSolaris 8 (x86) is installed
    ovaloval:org.mitre.oval:def:2059
  • commentSolaris 9 (x86) is installed
    ovaloval:org.mitre.oval:def:1683
descriptionStack-based buffer overflow in the adm_build_path function in sadmind in Sun Solstice AdminSuite on Solaris 8 and 9 allows remote attackers to execute arbitrary code via a crafted request.
familyunix
idoval:org.mitre.oval:def:5543
statusaccepted
submitted2009-05-26T13:34:47.000-04:00
titleA Buffer Overflow Security Vulnerability in the Solaris sadmind(1M) Daemon May Lead to Execution of Arbitrary Code
version37

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/82325/sadmind_adm_build_path.rb.txt
idPACKETSTORM:82325
last seen2016-12-05
published2009-10-28
reporterAdriano Lima
sourcehttps://packetstormsecurity.com/files/82325/Sun-Solaris-sadmind-adm_build_path-Buffer-Overflow.html
titleSun Solaris sadmind adm_build_path() Buffer Overflow