pligg cms 1.1.3 - Multiple Vulnerabilities

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

### 漏洞一名称: Pligg CMS file existence exploration/shared hosting privilege escalation Vulnerable version 1.1.3 在config.php文件第80行代码出存在如下代码: ``` if(isset($_COOKIE['template'])){ $thetemp = sanit($_COOKIE['template']); } ``` 往下6行代码如下: ``` $file = dirname(__FILE__) . '/templates/' . $thetemp . "/pligg.tpl"; unset($errors); if (!file_exists($file)) { $errors[]='You may have typed the template name wrong or "'. $thetemp . '" does not exist. Click <a href = "admin/admin_config.php?page=Template">here</a> to fix it.'; } ``` sanit()函数执行如下: ``` addslashes(htmlentities(strip_tags($var),ENT_QUOTES,’UTF-8?)); ``` 你可以通过创建一个名为template的cookie并赋值存放在正确的位置来使用这个函数,默认名称为wistie,你可以通过将你的template cookie命名为wistie来测试是否可用。 利用方法如下: ``` template=../templates/wistie ``` 生成如下代码: ``` $file = dirname(__FILE__) . “/templates/../templates/wistie/pligg.tpl”; ``` /templates/../templates/wistie/pligg.tpl does exist so we know now that the name of the underlaying directory is templates....

0%
暂无可用Exp或PoC
当前有0条受影响产品信息