1. CVE archive
  2. 2006
  3. CVE-2006-0705

CVE-2006-0705

6.5 Medium severity CVSS v2.0 · source NVD AV:N/AC:L/Au:S/C:P/I:P/A:P 6.5 – Medium

Description

Format string vulnerability in a logging function as used by various SFTP servers, including (1) AttachmateWRQ Reflection for Secure IT UNIX Server before 6.0.0.9, (2) Reflection for Secure IT Windows Server before 6.0 build 38, (3) F-Secure SSH Server for Windows before 5.3 build 35, (4) F-Secure SSH Server for UNIX 3.0 through 5.0.8, (5) SSH Tectia Server 4.3.6 and earlier and 4.4.0, and (6) SSH Shell Server 3.2.9 and earlier, allows remote authenticated users to execute arbitrary commands via unspecified vectors, involving crafted filenames and the stat command.

Affected products

VendorProductVersionPlatform
attachmatewrq reflection for secure it server 6.0 –
attachmatewrq reflection for secure it server 6.0 –
f-secure f-secure ssh server 3.0.0 –
f-secure f-secure ssh server 3.0.1 –
f-secure f-secure ssh server 3.0.1 –
f-secure f-secure ssh server 3.0.2 –
f-secure f-secure ssh server 3.0.3 –
f-secure f-secure ssh server 3.0.4 –
f-secure f-secure ssh server 3.0.5 –
f-secure f-secure ssh server 3.0.6 –
f-secure f-secure ssh server 3.0.7 –
f-secure f-secure ssh server 3.0.8 –
f-secure f-secure ssh server 3.0.9 –
f-secure f-secure ssh server 3.1.0 –
f-secure f-secure ssh server 3.1.0 –
f-secure f-secure ssh server 3.1.0_build9 –
f-secure f-secure ssh server 3.2.0 –
f-secure f-secure ssh server 3.2.3 –
f-secure f-secure ssh server 5.0 –
f-secure f-secure ssh server 5.1 –
f-secure f-secure ssh server 5.2 –
f-secure f-secure ssh server 5.3 –

Vulnerability type

CWE-134 Use of Externally-Controlled Format String

The product uses a function that accepts a format string as an argument, but the format string originates from an external source.

Impact on systems

ScopeImpact
Confidentiality Read Memory
Format string problems allow for information disclosure which can severely simplify exploitation of the program.
Integrity, Confidentiality, Availability Modify Memory, Execute Unauthorized Code or Commands
Format string problems can result in the execution of arbitrary code, buffer overflows, denial of service, or incorrect data representation.

How to prevent it

Requirements Choose a language that is not subject to this flaw.
Implementation Ensure that all format string functions are passed a static string which cannot be controlled by the user, and that the proper number of arguments are always sent to that function as well. If at all possible, use functions that do not support the %n operator in format strings.
Build and Compilation Run compilers and linkers with high warning levels, since they may detect incorrect usage.

All 436 CWE-134 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org