Title: Last Lines CGI Script Directory Traversal Vulnerability
Severity: HIGH
Description:
Last Lines CGI is a freely available script written in Perl and maintained by the Matrix's CGI Vault. It allows the user to print a specified number of lines from a log file(or any text file) to a webpage. It can run on Linux and Unix systems or any other platform with Apache and Perl support.
Lastlines.cgi does not sufficiently validate externally supplied input and is therefore prone to directory traversal attacks. It is possible for a remote attacker to submit a maliciously crafted web request, containing '../' sequences, which is capable of breaking out of wwwroot and browsing arbitrary web-readable files on a host running the vulnerable script.
Affected Products:
- Matrix's CGI vault Last Lines 2.0.0
References:
- Matrix's CGI Vault: Last Lines Homepage
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.