J-Security Center

Title: CFingerD Utilities Format String Vulnerability

Severity: HIGH

Description:

cfingerd is a secure implementation of the finger daemon. cfingerd has been contributed to by many authors, and is maintained by the cfingerd development team.

A problem exists in cfingerd that makes it possible to pass format string specifiers. Due to insufficient validation of input in a section of the util.c file, it's possible to pass arbitrary format strings through the .nofinger file.

Because there are certain format specifiers which allow writing to memory, it may be possible for users to create a format string value that will cause almost arbitrary values to be written to attacker-supplied locations in memory.

An attacker may be able to use these format specifiers in a maliciously constructed .nofinger file to cause critical areas of memory to be corrupted. An attacker may be able to execute arbitrary code on the host if a return address or function pointer is overwritten.

cfingerd by default runs as root, and is managed by inetd. By exploiting this vulnerability, it's possible for local users to execute arbitrary code as root, and thus gain root privileges on the local system.

Affected Products:

  • Martin Schulze Cfingerd 1.4.2
  • Martin Schulze Cfingerd 1.4.3

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.