发布时间 :2004-12-06 00:00:00
修订时间 :2008-09-05 16:38:27

[原文]Format string vulnerability in the log function for jftpgw 0.13.4 and earlier allows remote authenticated users to execute arbitrary code via format string specifiers in certain syslog messages.


        jftpgw FTP proxy存在远程格式串问题,远程攻击者可以利用这个漏洞以jftpgw进程权限在系统上执行任意指令。

- CVSS (基础分值)

CVSS分值: 10 [严重(HIGH)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)


- OVAL (用于检测的技术细节)


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(VENDOR_ADVISORY)  XF  jftpgw-log-format-string(16271)

- 漏洞信息

危急 输入验证
2004-12-06 00:00:00 2005-10-20 00:00:00
        jftpgw FTP proxy存在远程格式串问题,远程攻击者可以利用这个漏洞以jftpgw进程权限在系统上执行任意指令。

- 公告与补丁


- 漏洞信息 (F33454)

dsa-510.txt (PacketStormID:F33454)
2004-05-30 00:00:00
Matt Zimmerman

Debian Security Advisory DSA 510-1 - jaguar discovered a format string vulnerability in jftpgw, an FTP proxy program, whereby a remote user could potentially cause arbitrary code to be executed with the privileges of the jftpgw server process, which runs as user nobody by default.

Hash: SHA1

- --------------------------------------------------------------------------
Debian Security Advisory DSA 510-1                                        Matt Zimmerman
May 29th, 2004                
- --------------------------------------------------------------------------

Package        : jftpgw
Vulnerability  : format string
Problem-Type   : remote
Debian-specific: no
CVE Ids        : CAN-2004-0448 discovered a vulnerability in jftpgw, an FTP
proxy program, whereby a remote user could potentially cause arbitrary
code to be executed with the privileges of the jftpgw server process.
By default, the server runs as user "nobody".

CAN-2004-0448: format string vulnerability via syslog(3) in log()

For the current stable distribution (woody) this problem has been
fixed in version 0.13.1-1woody1.

For the unstable distribution (sid), this problem has been fixed in
version 0.13.4-1.

We recommend that you update your jftpgw package.

Upgrade Instructions
- --------------------

wget url
        will fetch the file for you
dpkg -i file.deb
        will install the referenced file.

If you are using the apt-get package manager, use the line for
sources.list as given below:

apt-get update
        will update the internal database
apt-get upgrade
        will install corrected packages

You may use an automated update by adding the resources from the
footer to the proper configuration.

Debian GNU/Linux 3.0 alias woody
- --------------------------------

  Source archives:
      Size/MD5 checksum:      589 6c0ed10f2034cefdbf338de14b8c26bf
      Size/MD5 checksum:    19365 e34131b25f532be7e16c51030c55349f
      Size/MD5 checksum:   219139 9546400895b5fe54ad70dbb33f83c6a1

  Alpha architecture:
      Size/MD5 checksum:    74918 53c4ed0d56bfdd42191405059376cc98

  ARM architecture:
      Size/MD5 checksum:    57788 a3cadbfab75a3be17d0ef4d3da483504

  Intel IA-32 architecture:
      Size/MD5 checksum:    55924 b59ff3f29eb9803ebe06de132fbb2c24

  Intel IA-64 architecture:
      Size/MD5 checksum:    98458 072000de165c9abb980c99241ad1282a

  HP Precision architecture:
      Size/MD5 checksum:    67726 e90daefe5490c21c7d442f33f2d68223

  Motorola 680x0 architecture:
      Size/MD5 checksum:    52158 d48c566a6fda177048e91e90f60c076a

  Big endian MIPS architecture:
      Size/MD5 checksum:    68020 60b41b05f85fc83affd559bca3f0fd6f

  Little endian MIPS architecture:
      Size/MD5 checksum:    68180 b966bab91c3bc469652874d6e18844f7

  PowerPC architecture:
      Size/MD5 checksum:    60466 3363c313d0cb2a409ce5579697912afc

  IBM S/390 architecture:
      Size/MD5 checksum:    57770 bfead388669f0fd30967e56b2b648c2c

  Sun Sparc architecture:
      Size/MD5 checksum:    60528 849fd4f56002ff1d8e4e4b08de7608f2

  These files will probably be moved into the stable distribution on
  its next revision.

- ---------------------------------------------------------------------------------
For apt-get: deb stable/updates main
For dpkg-ftp: dists/stable/updates/main
Mailing list:
Package info: `apt-cache show <pkg>' and<pkg>
Version: GnuPG v1.2.4 (GNU/Linux)


- 漏洞信息

jftpgw syslog() Logging Format String
Remote / Network Access, Local / Remote, Context Dependent Input Manipulation
Loss of Integrity

- 漏洞描述

The jftpgw proxy server contains a flaw that may allow an attacker to execute arbitrary commands with the privileges of the server process. The issue is caused by an error in the logging functionality of the server where user supplied data is passed as a format string directly to a syslog() function call.

- 时间线

2004-05-30 Unknow
Unknow Unknow

- 解决方案

Upgrade to version 0.13.4 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

- 漏洞信息

JFTPGW Remote Syslog Format String Vulnerability
Input Validation Error 10438
Yes No
2004-03-01 12:00:00 2009-07-12 05:16:00
Discovery is credited to

- 受影响的程序版本

jftpgw jftpgw 0.13.3
jftpgw jftpgw 0.13.2
jftpgw jftpgw 0.13.1
- Debian Linux 3.0 sparc
- Debian Linux 3.0 s/390
- Debian Linux 3.0 ppc
- Debian Linux 3.0 mipsel
- Debian Linux 3.0 mips
- Debian Linux 3.0 m68k
- Debian Linux 3.0 ia-64
- Debian Linux 3.0 ia-32
- Debian Linux 3.0 hppa
- Debian Linux 3.0 arm
- Debian Linux 3.0 alpha
- Debian Linux 3.0
jftpgw jftpgw 0.13
jftpgw jftpgw 0.13.4

- 不受影响的程序版本

jftpgw jftpgw 0.13.4

- 漏洞讨论

jftpgw FTP proxy is prone to a remotely exploitable format string vulnerability.

This issue could be exploited to execute arbitrary code in the context of the process, which is usually run as nobody (or an equivalent user). This is due to insecure usage of the syslog() function.

- 漏洞利用

Currently we are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: &lt;;.

- 解决方案

Please see Debian advisory DSA 510-1 to details on how to obtain fixes to address the issue.

OpenBSD includes the software in their ports collection. OpenBSD has updated the port to version 0.13.5 in CVS.

The vendor released jftpgw 0.13.4 to address this issue.

jftpgw jftpgw 0.13

jftpgw jftpgw 0.13.1

jftpgw jftpgw 0.13.2

jftpgw jftpgw 0.13.3

- 相关参考