Title: MRTG CGI Arbitrary File Display Vulnerability
Severity: MODERATE
Description:
Multi Router Traffic Grapher (MRTG) CGI scripts allow display of arbitrary files from the host machine. This can be accomplished by specifying a relative path and file name in a query string passed to the scripts via a properly constructed URL. The scripts reported to be vulnerable include mrtg.cgi, traffic.cgi, 14all-1.1.cgi, and 14all.cgi. An example URL is: http://somehost/mrtg.cgi?cfg=../../../../../../../../etc/passwd. All affected scripts are reportedly exploited with the same query string (i.e., the "cfg=" variable).
This is simply a failure to parse input and ensure that the requested file isn't outside of the web root environment. Files that are not accessible to CGI can not be disclosed; i.e., permissions are not superceded.
Affected Products:
- MRTG Multi Router Traffic Grapher CGI 2.9.17 -unix
- MRTG Multi Router Traffic Grapher CGI 2.9.17 -win32
References:
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.