[SA17299] mgdiff Patch Viewer Insecure Temporary File Creation

Type securityvulns
Reporter Securityvulns
Modified 2005-10-24T00:00:00


TITLE: mgdiff Patch Viewer Insecure Temporary File Creation


VERIFY ADVISORY: http://secunia.com/advisories/17299/

CRITICAL: Less critical

IMPACT: Privilege escalation

WHERE: Local system

SOFTWARE: mgdiff Patch Viewer http://secunia.com/product/5962/

DESCRIPTION: Javier Fernandez-Sanguino Pena has reported a vulnerability in mgdiff Patch Viewer, which can be exploited by malicious, local users to perform certain actions on a vulnerable system with escalated privileges.

The vulnerability is caused due to "viewpatch" script creating temporary files insecurely in "/tmp". This can be exploited via symlink attacks to create or overwrite arbitrary files with the privileges of the user running the affected script.

SOLUTION: Grant only trusted users access to affected systems.

PROVIDED AND/OR DISCOVERED BY: Javier Fernandez-Sanguino Pena

ORIGINAL ADVISORY: Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=335188

About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities.

Subscribe: http://secunia.com/secunia_security_advisories/

Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/

Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor.