Vulnerabilities > CVE-2008-3389 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Ingres 2.6/2006

047910
CVSS 4.6 - MEDIUM
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
local
low complexity
hp
linux
ingres
CWE-119

Summary

Stack-based buffer overflow in the libbecompat library in Ingres 2.6, Ingres 2006 release 1 (aka 9.0.4), and Ingres 2006 release 2 (aka 9.1.0) on Linux and HP-UX allows local users to gain privileges by setting a long value of an environment variable before running (1) verifydb, (2) iimerge, or (3) csreport. "Exploitation of this vulnerability allows an attacker to execute arbitrary code with the privileges of the "ingres" user. By itself, this vulnerability does not have very serious consequences. However, when combined with the library loading vulnerability, it allows an attacker to execute arbitrary code with root privileges. " (iDefense) "Fixes are available for the current release of Ingres 2006 release 2 (9.1.0), for Ingres 2006 release 1 (9.0.4), and for Ingres 2.6 versions on their respective platforms. The security fixes are available and can be quickly applied with little to no anticipated impact to systems. Ingres customers with a current support contract can review the following knowledge base document for information on downloading the available fixes: http://servicedesk.ingres.com/CAisd/pdmweb.ingres?OP=SHOW_DETAIL+PERSID=KD:416012+HTMPL=kt_document_view.htmpl (ingres.com)

Vulnerable Configurations

Part Description Count
OS
Hp
1
OS
Linux
1
Application
Ingres
3

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.

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 30512 CVE(CAN) ID: CVE-2008-3357,CVE-2008-3389,CVE-2008-3356 Ingres是很多CA产品默认所使用的数据库后端。 Ingres数据库中所捆绑的ingvalidpw工具用于验证用户凭据。在加载共享库时,ingvalidpw程序会加载ingres用户目录中的库,因此拥有ingres权限的用户可以通过特制的库获得root权限。 Ingres数据库所捆绑的一些ingres工具会使用libbecompat库。在将环境变量拷贝到固定大小的栈缓冲区时,该库没有对源字符串执行长度检查,导致栈溢出漏洞。 Ingres所捆绑的verifydb工具用于清除数据库目录中不必要的文件。verifydb程序没有正确地更改文件权限,首先在当前目录创建了名为iivdb.log的文件,然后设置为完全可写。如果本地攻击者创建了到属于ingres用户文件的符号链接,就可以获得对目标文件的写访问。 Ingres Corporation Ingres Database 2006 release 2 (9.1.0) Ingres Corporation Ingres Database 2006 release 1 (9.0.4) Ingres Corporation Ingres Database 2.6 Ingres Corporation ------------------ 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: <a href=http://www.ingres.com/index.php target=_blank>http://www.ingres.com/index.php</a>
idSSV:3764
last seen2017-11-19
modified2008-08-04
published2008-08-04
reporterRoot
titleIngres数据库多个本地安全漏洞