# DedeCMS 5.8.1 common.func.php 远程命令执行漏洞 ## 漏洞描述 DocCMS flink.php 文件存远程命令执行漏洞,攻击者通过漏洞可以执行任意命令 ## 漏洞影响 ``` DedeCMS v5.81 beta 内测版 ``` ## 网络测绘 ``` "DedeCMS_V5.8.1" ``` ## 漏洞复现 产品页面  查看文件 `include/common.func.php` 的 ShowMsg方法  ``` function ShowMsg($msg, $gourl, $onlymsg = 0, $limittime = 0) { if (empty($GLOBALS['cfg_plus_dir'])) { $GLOBALS['cfg_plus_dir'] = '..'; } if ($gourl == -1) { $gourl = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; if ($gourl == "") { $gourl = -1; } } $htmlhead = " \r\n
\r\n