Vulnerabilities > CVE-2007-5544 - Incorrect Permission Assignment for Critical Resource vulnerability in IBM Lotus Notes

047910
CVSS 7.8 - HIGH
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
LOW
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
local
low complexity
ibm
CWE-732
nessus

Summary

IBM Lotus Notes before 6.5.6, and 7.x before 7.0.3; and Domino before 6.5.5 FP3, and 7.x before 7.0.2 FP1; uses weak permissions (Everyone:Full Control) for memory mapped files (shared memory) in IPC, which allows local users to obtain sensitive information, or inject Lotus Script or other character sequences into a session.

Vulnerable Configurations

Part Description Count
Application
Ibm
119

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Accessing Functionality Not Properly Constrained by ACLs
    In applications, particularly web applications, access to functionality is mitigated by the authorization framework, whose job it is to map ACLs to elements of the application's functionality; particularly URL's for web apps. In the case that the administrator failed to specify an ACL for a particular element, an attacker may be able to access it with impunity. An attacker with the ability to access functionality not properly constrained by ACLs can obtain sensitive information and possibly compromise the entire application. Such an attacker can access resources that must be available only to users at a higher privilege level, can access management sections of the application or can run queries for data that he is otherwise not supposed to.
  • Privilege Abuse
    An adversary is able to exploit features of the target that should be reserved for privileged users or administrators but are exposed to use by lower or non-privileged accounts. Access to sensitive information and functionality must be controlled to ensure that only authorized users are able to access these resources. If access control mechanisms are absent or misconfigured, a user may be able to access resources that are intended only for higher level users. An adversary may be able to exploit this to utilize a less trusted account to gain information and perform activities reserved for more trusted accounts. This attack differs from privilege escalation and other privilege stealing attacks in that the adversary never actually escalates their privileges but instead is able to use a lesser degree of privilege to access resources that should be (but are not) reserved for higher privilege accounts. Likewise, the adversary does not exploit trust or subvert systems - all control functionality is working as configured but the configuration does not adequately protect sensitive resources at an appropriate level.
  • Directory Indexing
    An adversary crafts a request to a target that results in the target listing/indexing the content of a directory as output. One common method of triggering directory contents as output is to construct a request containing a path that terminates in a directory name rather than a file name since many applications are configured to provide a list of the directory's contents when such a request is received. An adversary can use this to explore the directory tree on a target as well as learn the names of files. This can often end up revealing test files, backup files, temporary files, hidden files, configuration files, user accounts, script contents, as well as naming conventions, all of which can be used by an attacker to mount additional attacks.
  • Accessing, Modifying or Executing Executable Files
    An attack of this type exploits a system's configuration that allows an attacker to either directly access an executable file, for example through shell access; or in a possible worst case allows an attacker to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.
  • Exploiting Incorrectly Configured Access Control Security Levels
    An attacker exploits a weakness in the configuration of access controls and is able to bypass the intended protection that these measures guard against and thereby obtain unauthorized access to the system or network. Sensitive functionality should always be protected with access controls. However configuring all but the most trivial access control systems can be very complicated and there are many opportunities for mistakes. If an attacker can learn of incorrectly configured access security settings, they may be able to exploit this in an attack. Most commonly, attackers would take advantage of controls that provided too little protection for sensitive activities in order to perform actions that should be denied to them. In some circumstances, an attacker may be able to take advantage of overly restrictive access control policies, initiating denial of services (if an application locks because it unexpectedly failed to be granted access) or causing other legitimate actions to fail due to security. The latter class of attacks, however, is usually less severe and easier to detect than attacks based on inadequate security restrictions. This attack pattern differs from CAPEC 1, "Accessing Functionality Not Properly Constrained by ACLs" in that the latter describes attacks where sensitive functionality lacks access controls, where, in this pattern, the access control is present, but incorrectly configured.

Nessus

NASL familyWindows
NASL idNOTES_MEM_MAPPED_FILES.NASL
descriptionThe version of Lotus Notes installed on the remote Windows host fails to adequately protect certain memory mapped files used by the application for inter-process communications. In a shared user environment, a local user may be able to leverage this issue to read from these files, leading to information disclosure, or write to them, possibly injecting active content such as Lotus Script.
last seen2020-06-01
modified2020-06-02
plugin id27574
published2007-10-25
reporterThis script is Copyright (C) 2007-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/27574
titleIBM Lotus Notes / Domino Client Memory Mapped Files Privilege Escalation
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(27574);
  script_version("1.16");
  script_set_attribute(attribute:"plugin_modification_date", value:"2020/07/31");

  script_cve_id("CVE-2007-5544");
  script_bugtraq_id(26146);

  script_name(english:"IBM Lotus Notes / Domino Client Memory Mapped Files Privilege Escalation");
  script_summary(english:"Checks version of Lotus Notes and notes.ini settings");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host has an application that is affected by an
unauthorized access vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of Lotus Notes installed on the remote Windows host fails
to adequately protect certain memory mapped files used by the
application for inter-process communications. In a shared user
environment, a local user may be able to leverage this issue to read
from these files, leading to information disclosure, or write to them,
possibly injecting active content such as Lotus Script.");
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/482694/30/0/threaded");
  script_set_attribute(attribute:"see_also", value:"https://www-01.ibm.com/support/docview.wss?uid=swg21257030");
  script_set_attribute(attribute:"solution", value:
"Upgrade as necessary to Lotus Notes Client version 6.5.6 / 7.0.3 / 8.0
or later and then edit the 'notes.ini' configuration file as described
in the vendor advisory above.");
  script_set_cvss_base_vector("CVSS2#AV:L/AC:H/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2007-5544");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_cwe_id(264);

  script_set_attribute(attribute:"vuln_publication_date", value:"2007/10/25");
  script_set_attribute(attribute:"plugin_publication_date", value:"2007/10/25");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:ibm:lotus_notes");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

  script_copyright(english:"This script is Copyright (C) 2007-2020 Tenable Network Security, Inc.");

  script_dependencies("smb_hotfixes.nasl","lotus_notes_installed.nasl");
  script_require_keys("SMB/name", "SMB/login", "SMB/password", "SMB/Lotus_Notes/Installed");
  script_require_ports(139, 445);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("smb_func.inc");

appname = "IBM Lotus Notes";
kb_base = "SMB/Lotus_Notes/";

version = get_kb_item_or_exit(kb_base + 'Version');
ver_ui = get_kb_item_or_exit(kb_base + 'Version_UI');
path = get_kb_item_or_exit(kb_base + 'Path');


# If it's an affected version...
#
# nb: ver[2] is multiplied by 10.
ver = split(version, sep:'.', keep:FALSE);

if ( int(ver[0]) >= 9 )
  audit(AUDIT_INST_VER_NOT_VULN, "IBM Lotus Notes");

if (
  (int(ver[0]) == 6 && int(ver[1]) == 5 && int(ver[2]) < 6) ||
  (int(ver[0]) == 7 && int(ver[1]) == 0 && int(ver[2]) < 30)
)
{
  port = kb_smb_transport();

  report =
    '\n  Path              : ' + path +
    '\n  Installed version : ' + ver_ui +
    '\n  Fixed version     : 6.5.6 / 7.0.3 / 8.0' +
    '\n';
  security_report_v4(severity:SECURITY_WARNING, port:port, extra:report);
  exit(0);
}
# Otherwise, make sure the setting is present in notes.ini.
else
{
  # Connect to the appropriate share.
  port    =  kb_smb_transport();
  login   =  kb_smb_login();
  pass    =  kb_smb_password();
  domain  =  kb_smb_domain();

  if(! smb_session_init()) audit(AUDIT_FN_FAIL, 'smb_session_init');

  path = ereg_replace(pattern:"^(.+)\\$", replace:"\1", string:path);
  share = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:path);

  rc = NetUseAdd(login:login, password:pass, domain:domain, share:share);
  if (rc != 1)
  {
    NetUseDel();
    audit(AUDIT_SHARE_FAIL, share);
  }

  ini =  ereg_replace(pattern:"^[A-Za-z]:(.*)", replace:"\1\notes.ini", string:path);
  fh = CreateFile(
    file:ini,
    desired_access:GENERIC_READ,
    file_attributes:FILE_ATTRIBUTE_NORMAL,
    share_mode:FILE_SHARE_READ,
    create_disposition:OPEN_EXISTING
  );
  if (isnull(fh))
  {
    NetUseDel();
    exit(0);
  }

  # no more than 50k
  data = '';
  chunk = 51200;
  size = GetFileSize(handle:fh);
  if (size > 0)
  {
    if (chunk > size) chunk = size;
    data = ReadFile(handle:fh, length:chunk, offset:0);
  }
  CloseFile(handle:fh);
  NetUseDel();

  if (data)
  {
    # There's a problem if the setting doesn't exist.
    if (!egrep(pattern:"^SharedMemoryAllowOnly=1", string:data))
    {
      security_report_v4(severity:SECURITY_WARNING, port:port);
      exit(0);
    }
  }
}


audit(AUDIT_INST_PATH_NOT_VULN, appname, ver_ui, path);

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 26146 CVE(CAN) ID: CVE-2007-5544 Lotus Domino/Notes服务器是一款基于WEB协同工作的应用程序架构,运行在Linux/Unix和Microsoft Windows操作系统平台下。 Lotus Domino的IPC机制实现上存在漏洞,本地攻击者可能利用此漏洞提升权限。 Lotus Domino的NLNOTES和NTASKLDR间进程间通讯(IPC)机制是通过内存映射的文件执行的,在创建文件时向ACL参数传送了NULL,导致EVERYONE都赋予了完全控制权限。 如果部署在共享用户环境中(如终端服务或Citrix)的话,这个漏洞允许攻击者能够读取任意用户Lotus Notes会话的内容,包括电子邮件到数据库和相关的Lotus脚本。 请注意这个漏洞还可能导致写入内存映射的文件,这样攻击者就可以注入活动的内容,如Lotus脚本。 IBM Lotus Notes 8.0 IBM Lotus Notes 7.0.3 IBM Lotus Notes 6.5.6 IBM Lotus Domino 8.0 IBM Lotus Domino 7.0.3 IBM Lotus Domino 7.0.2 FP1 IBM Lotus Domino 6.5.6 IBM Lotus Domino 6.5.5 FP3 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href="http://www.ers.ibm.com/" target="_blank">http://www.ers.ibm.com/</a>
idSSV:2333
last seen2017-11-19
modified2007-10-25
published2007-10-25
reporterRoot
titleLotus Domino任意访问内存映射文件漏洞