J-Security Center

Title: Pagelog.cgi File Disclosure/Creation Vulnerability

Severity: LOW

Description:

A directory traversal bug exists in pagelog.cgi by Metertek (Metertek@yahoo.com). The script fails to check for '../' sequences in path and filename information supplied by the user. As a result, sequences such as

http://securehost/cgi-bin/pagelog.cgi?display=../../../../tmp/private

will, when supplied to the script, cause the server to display the contents of the file 'private.log'.

As well, it is possible to use this vulnerability to create files anywhere the web server has write permission.

For example,

http://server/cgi-bin/pagelog.cgi?name=../../../../../tmp/newfile

will create the files '/tmp/newfile.txt' and '/tmp/newfile.log'.

By exploiting these flaws, an attacker can read log files and create (and potentially overwrite) files accessible to the webserver.

While unverified, it is theoretically possible for an attacker with local access to elevate his privilege level to that of the webserver, by making use of a symlink attack.

Affected Products:

  • Metertek pagelog.cgi 1.0.0

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.