PWC.CGI Syslog Format String Vulnerability

BID:2505

Info

PWC.CGI Syslog Format String Vulnerability

Bugtraq ID: 2505
Class: Input Validation Error
CVE:
Remote: Yes
Local: No
Published: Mar 23 2001 12:00AM
Updated: Mar 23 2001 12:00AM
Credit: Reported to bugtraq by Wojtek Pawlikowski <[email protected]> on Fri, 23 Mar 2001.
Vulnerable:
Not Vulnerable:

Discussion

PWC.CGI Syslog Format String Vulnerability

A remote format string vulnerability exists in pwc.cgi, a script designed to permit administrators to change user passwords remotely via a browser.

Due to a failure to properly validate user-supplied input argumenting a call to syslog(), it is possible for a remote attacker to supply malicious input to the script which contains hostile shellcode. Properly exploited, the supplied code will execute with the privilege level of the webserver process.

Exploit / POC

PWC.CGI Syslog Format String Vulnerability

Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.

Solution / Fix

PWC.CGI Syslog Format String Vulnerability

Solution:
Patch:

change
syslog(LOG_ERR, buffer);
to
syslog(LOG_ERR, "%s", buffer);

References

PWC.CGI Syslog Format String Vulnerability

References:
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report