Coppermine Gallery <= 1.5.44 directory traversal vulnerability
Coppermine is a multi-purpose fully-featured and integrated web picture gallery script written in PHP using GD or ImageMagick as image library with a MySQL backend. A directory travesal vuln exists within the "save_thumb" function of the "crop & rotate" image feature. This can be accessed from pic_editor.php. First upload a file, e.g. "hackerhouse.png" to an album. This will create a predictable file path location with your userid e.g: http://target/cpg15x/albums/userpics/10001/hackerhouse.png. You will then send a POST request to pic_editor to manipulate this file but replace the "new_image" with the filepath you want to read such as "../../../../../etc/passwd". Your file will then by copied to a predictible path location as thumb. http://target/cpg15x/albums/userpics/10001/thumb_hackerhouse.png. To exploit this vulnerability you will need to be able to register an account and upload files to a photo album. You do not need admin rights to exploit this flaw. All versions from cpg 1.4.14 to cpg 1.5.44 have been found vulnerable to this flaw. The coppermine configuration was tested with ImageMagick enabled, your mileage may vary with GD1.x/GD2.x.