您现在的位置: 电脑知识网 >> 菜鸟学堂 >> 网络管理员 >> permine Photo Gallery远程命令执行漏洞

permine Photo Gallery远程命令执行漏洞

 2008-2-3 10:18:01 来源:PC235.COM 您有问题?请联系我们
关 键 词:permine Photo Gallery远程命令执行漏洞

发布日期:2008-01-29

更新日期:2008-01-31

受影响系统:

Coppermine Photo Gallery 1.4.14

不受影响系统:

Coppermine Photo Gallery 1.4.15

描述:

BUGTRAQ ID: 27512

Coppermine是用PHP编写的多用途集成web图形库脚本。

Coppermine在处理用户请求时存在输入验证漏洞,远程攻击者可能利用此漏洞在用户系统上执行任意命令。

Coppermine的include/imageObjectIM.class.php文件中没有正确地验证用户所提交的quality、angle和clipval POST变量。在ImageMagick的包装函数中:

--------------------------------------

function rotateImage(&$angle){

...

$imgFile = escapeshellarg("$this->directory$this->filename");

...

$cmd = "{$CONFIG['impath']}convert -quality {$this->quality}

{$CONFIG['im_options']} -rotate $angle $imgFile $imgFile";

exec ($cmd, $output, $retval);

-------------------------------------

可见未经过滤便在命令行中使用了$angle变量。在picEditor.php文件的123行:

-------------------------------------

...

$newimage = $_POST['newimage'];

...

if ($newimage){

$imgObj = new imageObject($img_dir,$newimage);

...

if ($imgObj->imgRes){

...

if ($_POST['angle']<>0){

$imgObj = $imgObj->rotateImage($_POST['angle']);

}

-------------------------------------

因此如果提交了正确的$_POST['newimage']和$_POST['angle'],就会导致注入shell命令。

Coppermine:目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:http://downloads.sourceforge.net/coppermine/cpg1.4.15.zip

permine Photo Gallery远程命令执行漏洞文章结束

更多内容请看 菜鸟学堂 > > 网络管理员专题
  • 上一个文章:

  • 下一个文章:
  • 【最新推荐】
    电脑知识学习
    【频道更新】
    【相关文章】
    本站郑重声明:所载文章、数据仅供参考,使用前请核实,风险自负。
    Copyright ©2007-2008 电脑知识网 All Rights Reserved 版权所有 复制必究