Cfingerd Patch

Cfingerd Patch

Listing 6.1 provides a patch for the cfinger daemon to eliminate a vulnerability related to processing formatted strings.

Listing 6.1: The cfingerd patch
image from book
 snprintf(syslog_str, sizeof(syslog_str),         "%s fingered (internal) from %s", username, ident_user); - syslog(LOG_NOTICE, (char *) syslog_str);       // User input                                                  // in the format argument + syslog(LOG_NOTICE, "%s", (char *) syslog_str); // Explicit specification                                                  // of the format argument 
image from book
 


Shellcoder's Programming Uncovered
Shellcoders Programming Uncovered (Uncovered series)
ISBN: 193176946X
EAN: 2147483647
Year: 2003
Pages: 164

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net