2026年10月31日 · 今日 0 帖 · 会员 6.1万 · 主题 17.4万
登录 · 注册 · 游客,欢迎随便逛逛
返回版块
只看作者:洞房 查看全部
1000
Lv9有为九子能等级图标
勋章勋章勋章勋章勋章
帖子
9.3万
回复
2,089
积分
60.3万
注册
2006-12-06
[计算机网络]

MyBB所有版本远程命令执行总结

[复制链接]
查看 849 回复 0
楼主 发表于 | 查看全部
6 人收藏

源码下载 : http://www.mybb.com/download/latest

文件: /inc/3rdparty/diff/Diff/Engine/shell.php

Bug 部分源码:

$$fp = fopen($$to_file, ‘w‘);

fwrite($$fp, implode(“\n“, $$to_lines));

fclose($$fp);

$$diff = shell_*($$this->_diff* . ‘ ‘ . $$from_file . ‘ ‘ . $$to_file);

unlink($$from_file);

unlink($$to_file);

证明:

$$_GET + shell_*() = * *ution

缺陷描述:

An attacker might *ute arbitrary system *s with this vulnerability. User tainted data is used when creating the * that will be *uted on the underlying operating system. This vulnerability can lead to full server compromise.

缺陷示例代码:

1: *(“./crypto -mode “ . $$_GET[“mode“]);

proof of concept :

/index.php?mode=1;sleep 10;

补丁:

Limit the code to a very strict character subset or build a whitelist of allowed *s. Do not try to filter for evil *s. Try to avoid the usage of system * *uting functions if possible.

1: $$modes = array(“r“, “w“, “a“); if(!in_array($$_GET[“mode“], $$modes)) exit ;

r

D3m0 :

http://www.minuteworkers.com/forum/inc/3rdparty/diff/Diff/Engine/shell.php?Find It In Source=RCE

http://www.artistsuniverse.org/forum/inc/3rdparty/diff/Diff/Engine/shell.php?Find It In Source=RCE

#########################################################

We are : K0242 | Nafsh | Ehram.shahmohamadi

登录回复

登录后可以回复这个帖子。旧账号可使用原密码登录。

登录 注册新号
← 返回版块