J-Security Center

Title: Pine Environment Variable Expansion in URLS Vulnerability

Severity: HIGH

Description:

When pine handles email formatted with or containing HTML, urls which contain shell variables defined on the local machine where the client is running are expanded when followed. This can cause many security problems, ranging from sending expanded variables to webservers in the form of cgi parameters (and then logged to collect information about the target) to possibly executing arbitrary commands on the target host through malicious email. The following example was given by Jim Hebert <jhebert@jhebert.cx> in his post to BugTraq:


echo 'setenv WWW www.securityfocus.com' >> .tcshrc
source .tcshrc
pine
(view a link I mailed myself like: http://$WWW )
it works, I visit securityfocus.

Affected Products:

  • Conectiva Linux 5.0.0
  • Conectiva Linux 5.1.0
  • Conectiva Linux 6.0.0
  • Conectiva Linux 7.0.0
  • Conectiva Linux ecommerce
  • Conectiva Linux graficas
  • RedHat Linux 6.2.0 alpha
  • RedHat Linux 6.2.0 i386
  • RedHat Linux 6.2.0 sparc
  • RedHat Linux 7.0.0 alpha
  • RedHat Linux 7.0.0 i386
  • Slackware Linux 7.0.0
  • Slackware Linux 7.1.0
  • Turbolinux Turbolinux Workstation 6.0.0
  • University of Washington Pine 4.20.0
  • University of Washington Pine 4.21.0

References:

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.