J-Security Center

Title: GPicView Multiple Local Security Vulnerabilities

Severity: MODERATE

Description:

GPicView is an open-source image viewer.

GPicView is affected by multiple local security vulnerabilities:

1. The application creates temporary files in an insecure manner because it assumes only one user exists on the computer. '/tmp/rot.jpg' is hardcoded in the 'src/main-win.c' source file for jpeg file saves. Attackers can overwrite this file with malicious data by executing a symbolic-link attack.

2. The application permits data to be overwritten with an arbitrary file. This issue affects GPicView built with the LIBJPEG library. The 'ask_before_save' preference setting is ignored, allowing an attacker to overwrite data with a symlink attack; no confirmation from the user is required.

3. The application permits data to be overwritten because it ignores the 'ask_before_save' and 'auto_save_rotated' preference settings in the 'on_rotate_clockwise()' and 'on_rotate_counterclockwise()' functions in the 'src/main-win.c' source file. This can allow an attacker to overwrite data with a symlink attack; no confirmation from the user is required.

Attackers may leverage these issues to overwrite arbitrary files with the privileges of the user running the application.

GPicView 0.1.9 is vulnerable; other versions may also be affected.

Affected Products:

  • Debian Linux 4.0
  • Debian Linux 4.0 alpha
  • Debian Linux 4.0 amd64
  • Debian Linux 4.0 arm
  • Debian Linux 4.0 hppa
  • Debian Linux 4.0 ia-32
  • Debian Linux 4.0 ia-64
  • Debian Linux 4.0 m68k
  • Debian Linux 4.0 mips
  • Debian Linux 4.0 mipsel
  • Debian Linux 4.0 powerpc
  • Debian Linux 4.0 s/390
  • Debian Linux 4.0 sparc
  • GPicView GPicView 0.1.9

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.