J-Security Center

Title: Horde IMP Message Attachment Symbolic Link Vulnerability

Severity: HIGH

Description:

IMP is a powerful web-based mail interface/client developed by members of the Horde project.

IMP makes insecure use of temporary filenames, allowing an attacker to carry out symbolic link attacks. Imp creates temporary filenames in processing files attached to mail messages.

These files are named using a predictable pattern: /tmp/phpXXXXXX

As well, when opening attached files using an external viewer, IMP creates temporary files matching this pattern:

/tmp/imp.'.date('Y-M-D_H:i:s').'__'.md5($contents).

If an attacker can successfully anticipate the name of Imp's temporary file prior to its creation, a symbolic link could be created pointing to a target file writable by the webserver process.

In this event, Imp will overwrite the contents of the target file with its own output.

Affected Products:

  • Caldera OpenLinux Server 3.1.0
  • Horde Horde 1.2.0
  • Horde Horde 1.2.1
  • Horde Horde 1.2.2
  • Horde Horde 1.2.3
  • Horde Horde 1.2.4
  • Horde IMP 2.0.0
  • Horde IMP 2.2.0
  • Horde IMP 2.2.1
  • Horde IMP 2.2.2
  • Horde IMP 2.2.3
  • Horde IMP 2.2.4

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.