download.php in McGallery 0.5b allows remote attackers to read arbitrary files and obtain script source code via the filename parameter.