1. 程式人生 > >DedeCMS 5.7SP1 /plus/download.php URL重定向漏洞

DedeCMS 5.7SP1 /plus/download.php URL重定向漏洞

將/plus/download.php中第67行

header("location:$link");

替換為如下程式碼


if(stristr($link,$cfg_basehost))

    {

        header("location:$link");

    }

    else

    {

        header("location:$cfg_basehost");