Vulnerabilities > CVE-2008-5706 - Link Following vulnerability in Verlihub-Project Verlihub 0.9.8D
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
The cTrigger::DoIt function in src/ctrigger.cpp in the trigger mechanism in the daemon in Verlihub 0.9.8d-RC2 and earlier allows local users to overwrite arbitrary files via a symlink attack on the /tmp/trigger.tmp temporary file.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 1 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Symlink Attack An attacker positions a symbolic link in such a manner that the targeted user or application accesses the link's endpoint, assuming that it is accessing a file with the link's name. The endpoint file may be either output or input. If the file is output, the result is that the endpoint is modified, instead of a file at the intended location. Modifications to the endpoint file may include appending, overwriting, corrupting, changing permissions, or other modifications. In some variants of this attack the attacker may be able to control the change to a file while in other cases they cannot. The former is especially damaging since the attacker may be able to grant themselves increased privileges or insert false information, but the latter can also be damaging as it can expose sensitive information or corrupt or destroy vital system or application files. Alternatively, the endpoint file may serve as input to the targeted application. This can be used to feed malformed input into the target or to cause the target to process different information, possibly allowing the attacker to control the actions of the target or to cause the target to expose information to the attacker. Moreover, the actions taken on the endpoint file are undertaken with the permissions of the targeted user or application, which may exceed the permissions that the attacker would normally have.
- 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.
- Leverage Executable Code in Non-Executable Files An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
- Manipulating Input to File System Calls An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
Exploit-Db
description | verlihub <= 0.9.8d-RC2 Remote Command Execution Vulnerability. CVE-2008-5705,CVE-2008-5706. Remote exploit for linux platform |
file | exploits/linux/remote/7183.txt |
id | EDB-ID:7183 |
last seen | 2016-02-01 |
modified | 2008-11-21 |
platform | linux |
port | |
published | 2008-11-21 |
reporter | v4lkyrius |
source | https://www.exploit-db.com/download/7183/ |
title | verlihub <= 0.9.8d-RC2 - Remote Command Execution Vulnerability |
type | remote |
Nessus
NASL family | FreeBSD Local Security Checks |
NASL id | FREEBSD_PKG_58997463E01211DDA7650030843D3802.NASL |
description | securityfocus reports : An attacker with local access could potentially exploit this issue to perform symbolic-link attacks, overwriting arbitrary files in the context of the affected application. Successfully mounting a symlink attack may allow the attacker to delete or corrupt sensitive files, which may result in a denial of service. Other attacks may also be possible. Verlihub is prone to a remote command-execution vulnerability because it fails to sufficiently validate user input. Successfully exploiting this issue would allow an attacker to execute arbitrary commands on an affected computer in the context of the affected application. |
last seen | 2020-06-01 |
modified | 2020-06-02 |
plugin id | 35336 |
published | 2009-01-12 |
reporter | This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. |
source | https://www.tenable.com/plugins/nessus/35336 |
title | FreeBSD : verlihub -- insecure temporary file usage and arbitrary command execution (58997463-e012-11dd-a765-0030843d3802) |
code |
|
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 32889,32420 CVE(CAN) ID: CVE-2008-5705,CVE-2008-5706 Verlihub是运行在Linux操作系统上的Direct Connect协议服务器。 Verlihub没有正确地过滤通过trigger机制传送给shell的用户输入,此外Verlihub守护程序还可能配置为以root用户权限运行,这就允许连接到hub的用户通过提交恶意请求执行任意命令,或允许本地攻击者通过对/tmp/trigger.tmp临时文件的符号链接攻击覆盖任意文件。以下是src/ctrigger.cpp文件的cTrigger::DoIt()函数中的有漏洞代码段: 106 string command(buf); 107 filename = server.mConfigBaseDir; 108 filename.append("/tmp/trigger.tmp"); 109 command.append(" > "); 110 command.append(filename); 111 cout << command << endl; 112 system(command.c_str()); Verlihub Project Verlihub <= 0.9.8d-RC2 厂商补丁: Verlihub Project ---------------- 目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本: <a href=http://www.verlihub-project.org target=_blank rel=external nofollow>http://www.verlihub-project.org</a> |
id | SSV:4599 |
last seen | 2017-11-19 |
modified | 2008-12-26 |
published | 2008-12-26 |
reporter | Root |
source | https://www.seebug.org/vuldb/ssvid-4599 |
title | Verlihub创建不安全文件及远程代码执行漏洞 |
References
- http://bugs.debian.org/506530
- http://bugs.debian.org/506530
- http://openwall.com/lists/oss-security/2008/12/17/16
- http://openwall.com/lists/oss-security/2008/12/17/16
- http://securityreason.com/securityalert/4800
- http://securityreason.com/securityalert/4800
- http://www.securityfocus.com/bid/32889
- http://www.securityfocus.com/bid/32889
- https://www.exploit-db.com/exploits/7183
- https://www.exploit-db.com/exploits/7183