PHPix Directory Traversal Vulnerability
BID:1773
Info
PHPix Directory Traversal Vulnerability
| Bugtraq ID: | 1773 |
| Class: | Input Validation Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Oct 07 2000 12:00AM |
| Updated: | Oct 07 2000 12:00AM |
| Credit: | Made public in a Synnergy advisory SLA-2000-15 published on Oct 7, 2000. |
| Vulnerable: |
PHPix PHPix 1.0.2 PHPix PHPix 1.0.1 PHPix PHPix 1.0 |
| Not Vulnerable: | |
Discussion
PHPix Directory Traversal Vulnerability
PHPix is a web-based photo-album system written in PHP. It is vulnerable to an attack that allows a malicious remote user to view arbitrary files on the target webserver with the privileges of the webserver. The problem is that "../" character sequences can be supplied by the user in an http variable that is used to reference a file on the webservers filesystem. As a result, the attacker can construct a path relative to the current working directory of the webserver using ".."'s and then the target filename/path to read any readable (to the uid of the httpd process) file on the filesystem. The information gained may make it easier to compromise the system in other ways.
PHPix is a web-based photo-album system written in PHP. It is vulnerable to an attack that allows a malicious remote user to view arbitrary files on the target webserver with the privileges of the webserver. The problem is that "../" character sequences can be supplied by the user in an http variable that is used to reference a file on the webservers filesystem. As a result, the attacker can construct a path relative to the current working directory of the webserver using ".."'s and then the target filename/path to read any readable (to the uid of the httpd process) file on the filesystem. The information gained may make it easier to compromise the system in other ways.
Exploit / POC
PHPix Directory Traversal Vulnerability
From Synnergy advisory SLA-2000-15:
Example:
http://target.com/Album/?mode=album&album=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc&dispsize=640&start=0
The above line if given will output all the directories that are nested within /etc
directory. Other more sinister content can be revealed from there.
From Synnergy advisory SLA-2000-15:
Example:
http://target.com/Album/?mode=album&album=..%2F..%2F..%2F..%2F..%2F..%2F..%2F..%2Fetc&dispsize=640&start=0
The above line if given will output all the directories that are nested within /etc
directory. Other more sinister content can be revealed from there.
Solution / Fix
PHPix Directory Traversal Vulnerability
Solution:
Currently the SecurityFocus staff are not aware of any vendor supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected].
Solution:
Currently the SecurityFocus staff are not aware of any vendor supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected].
References
PHPix Directory Traversal Vulnerability
References:
References: