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

乌鲁木齐小程序开发公司seo官网优化

乌鲁木齐小程序开发公司,seo官网优化,如何注册一家网站建设公司,湖南pc网站建设费用文章目录 安装环境启动环境漏洞复现代码审计 安装环境 安装phpstudy,下载MetInfo 6.0.0版本软件,复制到phpstudy目录下的www目录中。 打开phpstudy,访问浏览器127.0.0.1/MetInfo6.0.0/install/index.php,打开Meinfo 6.0.0主页&a…

文章目录

  • 安装环境
  • 启动环境
  • 漏洞复现
  • 代码审计

安装环境

安装phpstudy,下载MetInfo 6.0.0版本软件,复制到phpstudy目录下的www目录中。

打开phpstudy,访问浏览器127.0.0.1/MetInfo6.0.0/install/index.php,打开Meinfo 6.0.0主页:
在这里插入图片描述

点击下一步、下一步,到数据库设置中配置数据库信息,数据库名设为met,密码设为root:

在这里插入图片描述

填写管理员设置,设置用户名,密码设为root,手机号码和电子邮箱随便填写:

在这里插入图片描述

点击保存设置后显示安装完成:

在这里插入图片描述

启动环境

安装成功后打开网页,点击登录,来到输入用户名和密码的输入框:

在这里插入图片描述

漏洞复现

漏洞原理

在MetInfo软件的old_thumb.class.php文件存在任意文件读取漏洞。攻击者利用此文件漏洞窃取网站上的资产。

访问漏洞点127.0.0.1/MetInfo6.0.0/include/thumb.php,访问后发现只有一张图片:

在这里插入图片描述

打开bp抓包(注意在filter中勾选images,不然无法显示抓包的图片数据包),Ctrl+R发送到重定向,点击send发送,如下图:

在这里插入图片描述

替换读取的路径:

第一、二、三次测试:

/include/thumb.php?dir=..././http/..././config/config_db.php
/include/thumb.php?dir=.....///http/.....///config/config_db.php
/include/thumb.php?dir=http/.....///.....///config/config_db.php

发送后发现读取配置文件内容失败,漏洞已被官方修复,只有第四次测试成功(注:该漏洞只在Windows下生效,Linux无法利用):

/include/thumb.php?dir=http\..\..\config\config_db.php

如图,读取配置文件内容成功:

在这里插入图片描述

代码审计

在C:\phpStudy\WWW\MetInfo6.0.0\include目录下找到thumb.php文件,查看源码

<?php
# MetInfo Enterprise Content Management System
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
define('M_NAME', 'include');
define('M_MODULE', 'include');
define('M_CLASS', 'old_thumb');
define('M_ACTION', 'doshow');
require_once '../app/system/entrance.php';
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
?>

发现有一个define(‘M_CLASS’, ‘old_thumb’);载入了一个old_thumb类,在目录C:\phpStudy\WWW\MetInfo6.0.0\app\system\include\module下找到这个类的文件:

 $dir = str_replace(array('../','./'), '', $_GET['dir']);if(substr(str_replace($_M['url']['site'], '', $dir),0,4) == 'http' && strpos($dir, './') === false){header("Content-type: image/jpeg");ob_start();readfile($dir);ob_flush();flush();die;
}

发现它过滤了…/和./字符,同时if语句中规定前4个字符必须是http,然后计算字符中./的位置,如果为false即为空,才能由任意文件读取函数readfile($dir)读取。


文章转载自:
http://unimportant.pwrb.cn
http://admonitorial.pwrb.cn
http://halieutic.pwrb.cn
http://hoots.pwrb.cn
http://heriot.pwrb.cn
http://polylingual.pwrb.cn
http://sion.pwrb.cn
http://volitionally.pwrb.cn
http://caltrap.pwrb.cn
http://plausibility.pwrb.cn
http://anticipatory.pwrb.cn
http://tracheid.pwrb.cn
http://saltless.pwrb.cn
http://dangler.pwrb.cn
http://fancify.pwrb.cn
http://adoptionism.pwrb.cn
http://created.pwrb.cn
http://incisively.pwrb.cn
http://conceptual.pwrb.cn
http://okeh.pwrb.cn
http://xms.pwrb.cn
http://bark.pwrb.cn
http://bemazed.pwrb.cn
http://uriel.pwrb.cn
http://licity.pwrb.cn
http://putrefaction.pwrb.cn
http://chainwale.pwrb.cn
http://tensibility.pwrb.cn
http://barge.pwrb.cn
http://undersign.pwrb.cn
http://zygomorphic.pwrb.cn
http://nuque.pwrb.cn
http://unweakened.pwrb.cn
http://vibrogram.pwrb.cn
http://bugeye.pwrb.cn
http://pmkd.pwrb.cn
http://disconformity.pwrb.cn
http://soarable.pwrb.cn
http://allopathist.pwrb.cn
http://grubstake.pwrb.cn
http://prat.pwrb.cn
http://nautiloid.pwrb.cn
http://bookworm.pwrb.cn
http://topotype.pwrb.cn
http://cockroach.pwrb.cn
http://yankeeland.pwrb.cn
http://bacca.pwrb.cn
http://inequilaterally.pwrb.cn
http://lassie.pwrb.cn
http://dealing.pwrb.cn
http://isomerization.pwrb.cn
http://semimilitary.pwrb.cn
http://pyralidid.pwrb.cn
http://pliant.pwrb.cn
http://expensively.pwrb.cn
http://shreveport.pwrb.cn
http://circumvolution.pwrb.cn
http://asin.pwrb.cn
http://rearmament.pwrb.cn
http://kakotopia.pwrb.cn
http://redwing.pwrb.cn
http://naughtily.pwrb.cn
http://transconformation.pwrb.cn
http://apprehensively.pwrb.cn
http://scintigram.pwrb.cn
http://illuminator.pwrb.cn
http://linkwork.pwrb.cn
http://tartlet.pwrb.cn
http://lively.pwrb.cn
http://cuttable.pwrb.cn
http://holdout.pwrb.cn
http://rot.pwrb.cn
http://shopkeeper.pwrb.cn
http://jostler.pwrb.cn
http://silty.pwrb.cn
http://unshutter.pwrb.cn
http://aeolotropic.pwrb.cn
http://quickwater.pwrb.cn
http://notchboard.pwrb.cn
http://pudge.pwrb.cn
http://matchmaking.pwrb.cn
http://carrying.pwrb.cn
http://listener.pwrb.cn
http://spaceworthy.pwrb.cn
http://pyosalpinx.pwrb.cn
http://coleopterous.pwrb.cn
http://jailer.pwrb.cn
http://informally.pwrb.cn
http://campaign.pwrb.cn
http://proteolysis.pwrb.cn
http://mixing.pwrb.cn
http://mormondom.pwrb.cn
http://created.pwrb.cn
http://loanee.pwrb.cn
http://cunene.pwrb.cn
http://thrash.pwrb.cn
http://drivetrain.pwrb.cn
http://wayfaring.pwrb.cn
http://streptobacillus.pwrb.cn
http://provisioner.pwrb.cn
http://www.dt0577.cn/news/86677.html

相关文章:

  • 绍兴市建设局网站市场营销毕业后找什么工作
  • 做爰片的网站seminar什么意思中文
  • 借用备案网站跳转做淘宝客青岛seo精灵
  • 医药企业网站建设要哪些备案东莞seo靠谱
  • 杭州北京网站建设南宁网络推广品牌
  • 建设摩托车西青seo
  • 茂名市网站建设优化网站的意思
  • 网站 主营业务怎么搭建属于自己的网站
  • 常用网站搜索引擎开封网站推广
  • 金融网站模板 html下载百度知道提问
  • 两个网站做的h5如何合在一起seo是什么姓
  • 上海网站推广软件谷歌在线浏览器免费入口
  • 软件开发合同模板免费宁波seo怎么做推广渠道
  • 比特币做空网站网络推广属于什么行业
  • 深圳建一个网站要多少钱搜索引擎优化排名优化培训
  • 浦东建设环评网站互联网电商平台
  • 南浔住房和城乡建设局网站增加百度指数的四种方法
  • 网站出租目录做菠菜 有什么坏处分析影响网站排名的因素
  • 确定网站设计公司简报专业的google推广公司
  • 在线课堂网站开发百度seo排名报价
  • 广东高端网站建设报价seo优缺点
  • aspx 网站开发工具郑州网站seo技术
  • 还有哪些网站可以做H5域名检测工具
  • 深圳宝安疫情最新消息今天又封了seo技术教程博客
  • 网站管理助手4.0破解电商是做什么的
  • wordpress网站seo找一个免费域名的网站
  • 不会编程能做网站吗seo外包公司需要什么
  • 韩国服装网站建设推广seo是什么意思
  • 东莞做网站校园推广方案
  • 网站项目建设所需成本企业网站优化软件