|
|
|
View Notes By
|
|
|
|
Other Documents
|
|
|
|
 |
Vulnerability Note VU#946969
Perl programs providing user-controlled I/O format strings may contain format string vulnerabilities
OverviewPrograms written in Perl may contain many of the same types of format string vulnerabilities as programs written in C.
I. DescriptionPerl 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. ImpactPerl 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. SolutionRepair 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
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 Public: | 2005-12-05 |
| Date First Published: | 2005-12-06 |
| Date Last Updated: | 2006-01-04 |
| CERT Advisory: | |
| CVE-ID(s): | |
| NVD-ID(s): | |
| US-CERT Technical Alerts: | |
| Metric: | 13.77 |
| Document Revision: | 26 |
If you have feedback, comments, or additional information about this vulnerability, please send us
email.
|
|