Vulnerabilities > CVE-2008-2240 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in IBM Lotus Domino

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
ibm
CWE-119
critical
nessus
exploit available
metasploit

Summary

Stack-based buffer overflow in the Web Server service in IBM Lotus Domino before 7.0.3 FP1, and 8.x before 8.0.1, allows remote attackers to cause a denial of service (daemon crash) or possibly execute arbitrary code via a long Accept-Language HTTP header.

Vulnerable Configurations

Part Description Count
Application
Ibm
5

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

descriptionIBM Lotus Domino Web Server Accept-Language Stack Buffer Overflow. CVE-2008-2240. Remote exploit for windows platform
idEDB-ID:16697
last seen2016-02-02
modified2010-11-11
published2010-11-11
reportermetasploit
sourcehttps://www.exploit-db.com/download/16697/
titleIBM Lotus Domino Web Server Accept-Language Stack Buffer Overflow

Metasploit

descriptionThis module exploits a stack buffer overflow in IBM Lotus Domino Web Server prior to version 7.0.3FP1 and 8.0.1. This flaw is triggered by any HTTP request with an Accept-Language header greater than 114 bytes.
idMSF:EXPLOIT/WINDOWS/LOTUS/DOMINO_HTTP_ACCEPT_LANGUAGE
last seen2020-03-10
modified2017-07-24
published2009-04-16
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/windows/lotus/domino_http_accept_language.rb
titleIBM Lotus Domino Web Server Accept-Language Stack Buffer Overflow

Nessus

NASL familyWeb Servers
NASL idDOMINO_7_0_3FP1.NASL
descriptionAccording to its banner, the version of Lotus Domino on the remote host is older than 8.0.1 / 7.0.3 FP1. The web server component of such versions is reportedly affected by a stack overflow that can be triggered by means of a specially crafted
last seen2020-06-01
modified2020-06-02
plugin id32433
published2008-05-23
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/32433
titleIBM Lotus Domino < 8.0.1 / 7.0.3 FP1 Multiple Vulnerabilities
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(32433);
  script_version("1.17");
  script_cvs_date("Date: 2018/11/15 20:50:25");

  script_cve_id("CVE-2008-2240", "CVE-2008-2410");
  script_bugtraq_id(29310, 29311);
  script_xref(name:"Secunia", value:"30310");

  script_name(english:"IBM Lotus Domino < 8.0.1 / 7.0.3 FP1 Multiple Vulnerabilities");
  script_summary(english:"Checks version of Lotus Domino");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server is affected by multiple vulnerabilities.");
  script_set_attribute(attribute:"description", value:
"According to its banner, the version of Lotus Domino on the remote
host is older than 8.0.1 / 7.0.3 FP1.  The web server component of
such versions is reportedly affected by a stack overflow that can be
triggered by means of a specially crafted 'Accept-Language' request
header.  While IBM says this only results in a denial of service, the
original researchers claim to have a working proof-of-concept for
Windows that allows arbitrary code execution with LOCAL SYSTEM
privileges. 

In addition, the web server reportedly has an unspecified cross-site
scripting vulnerability in its servlet engine / Web container.");
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?a3b5cab6");
  script_set_attribute(attribute:"see_also", value:"https://www-01.ibm.com/support/docview.wss?uid=swg21303057");
  script_set_attribute(attribute:"see_also", value:"https://www-01.ibm.com/support/docview.wss?uid=swg21303296");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Lotus Domino 8.0.1 / 7.0.3 FP1 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/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:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'IBM Lotus Domino Web Server Accept-Language Stack 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:'CANVAS');
  script_cwe_id(79, 119);
  script_set_attribute(attribute:"plugin_publication_date", value:"2008/05/23");
  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:ibm:lotus_domino");
  script_end_attributes();
 
  script_category(ACT_GATHER_INFO);
  script_family(english:"Web Servers");
  script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
  script_dependencies("domino_installed.nasl", "http_version.nasl");
  script_require_keys("Domino/Version");
  script_require_ports("Services/www", 80);

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");
include("http.inc");


# Unless we're being paranoid, make sure a Domino web server is listening.
if (report_paranoia < 2)
{
  port = get_http_port(default:80);
  banner = get_http_banner(port:port);
  if (!banner || "Domino" >!< banner) exit(0);
}
else port = 0;


# Check the version of Domino installed.
ver = get_kb_item("Domino/Version");
if (isnull(ver)) exit(0);

if (
  egrep(pattern:"^7\.0($|\.([0-2]($|[^0-9])|3$))", string:ver) ||
  egrep(pattern:"^8\.0($|\.0($|[^0-9]))", string:ver)
)
{
  if (report_verbosity > 0)
  {
    report = string(
      "\n",
      "Domino version ", ver, " appears to be installed on the remote host.\n"
    );
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
  set_kb_item(name: 'www/'+port+'/XSS', value: TRUE);
}

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/83193/domino_http_accept_language.rb.txt
idPACKETSTORM:83193
last seen2016-12-05
published2009-11-26
reporterriaf
sourcehttps://packetstormsecurity.com/files/83193/IBM-Lotus-Domino-Web-Server-Accept-Language-Stack-Overflow.html
titleIBM Lotus Domino Web Server Accept-Language Stack Overflow

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 29310 CVE(CAN) ID: CVE-2008-2240 Lotus Domino是集电子邮件、文档数据库、快速应用开发技术以及Web技术为一体的电子邮件与群集平台。 Lotus Domino Web服务器中负责处理HTTP头的代码存在栈溢出漏洞,Accept Language字段是直接从请求的HTTP头中获得的,然后使用strcpy函数拷贝到了固定长度的栈缓冲区中,因此远程攻击者可以通过包含有GET方式的HTTP 1.1请求覆盖栈缓冲区,导致执行任意指令。 IBM Lotus Domino 8.0 IBM Lotus Domino 7.0 IBM Lotus Domino 6.5 IBM Lotus Domino 6.0 IBM Lotus Domino IBM --- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href=http://www.ers.ibm.com/ target=_blank>http://www.ers.ibm.com/</a>
idSSV:3320
last seen2017-11-19
modified2008-05-23
published2008-05-23
reporterRoot
titleIBM Lotus Domino Web服务器Accept Language HTTP头栈溢出漏洞