SkipNavigation
US-CERT
American Flag
  Vulnerability
Notes
Database

Search Vulnerability Notes

Vulnerability Notes Help Information


 
 View Notes By
  Name

ID Number

CVE Name

Date Public

Date Published

Date Updated

Severity Metric



 Other Documents
  Technical Alerts

Technical Bulletins

Alerts

Security Tips

 

Vulnerability Note VU#946969

Perl programs providing user-controlled I/O format strings may contain format string vulnerabilities

Overview

Programs written in Perl may contain many of the same types of format string vulnerabilities as programs written in C.

I. Description

Perl is a programming language used in many applications and commonly used for web applications. It provides many of the same functions for formatted I/O as C, including sprintf() and printf(). As a result, programs written Perl may contain format string vulnerabilities similar to the types of format string vulnerabilities found in C programs.

Note: Although there has been increased interest in this issue recently, it has been known since at least 2002 that programs written in Perl may contain format string vulnerabilities.

II. Impact

Perl programs that pass user data to routines that subsequently use that data as a format string may be vulnerable. Such routines include, but are not limited to, printf(), sprintf(), and syslog().

III. Solution

Repair Perl Program


Programs written in Perl that contain format string vulnerabilities should be changed to not include user data in format strings.

Taint Mode

Perl provides a "taint" mode (-T) that may detect format strings that include user data. However, taint mode will not catch all format string vulnerabilities and, when it does detect an error, the program will be terminated. Thus, taint mode may stop a vulnerability from allowing an attacker to execute arbitrary code, but such a vulnerability can still be used to terminate the program.

Systems Affected

VendorStatusDate Updated
Perl DevelopersUnknown1-Dec-2005

References


http://archives.neohapsis.com/archives/fulldisclosure/2005-12/0066.html

Credit

This vulnerability was reported to CERT/CC by Steve Christey of MITRE.

This document was written by Hal Burch.

Other Information

Date Public12/05/2005
Date First Published12/06/2005 11:42:10 AM
Date Last Updated01/04/2006
CERT Advisory 
CVE-ID(s) 
NVD-ID(s) 
US-CERT Technical Alerts 
Metric13.77
Document Revision26

If you have feedback, comments, or additional information about this vulnerability, please send us email.
 

 
Page Corner Image
Produced 2005 by US-CERT, a government organization
Disclaimers and copyright information
Get Adobe Reader Get Adobe Reader