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

FLASK做wiki网站搜索引擎营销优化诊断训练

FLASK做wiki网站,搜索引擎营销优化诊断训练,天津市个体营业执照办理流程,基本型电子商务网站十二、【漏洞复现】Rails任意文件读取(CVE-2019-5418) 12.1、漏洞原理 Ruby on Rails是一个使用 Ruby 语言写的开源 Web 应用框架,它是严格按照 MVC 结构开发的。它努力使自身保持简单,来使实际的应用开发时的代码更少,使用最少…

十二、【漏洞复现】Rails任意文件读取(CVE-2019-5418)

12.1、漏洞原理

Ruby on Rails是一个使用 Ruby 语言写的开源 Web 应用框架,它是严格按照 MVC 结构开发的。它努力使自身保持简单,来使实际的应用开发时的代码更少,使用最少的配置。Rails在开发环境下使用Sprockets作为静态文件服务器,Sprockets是编译及分发静态资源文件的Ruby库。在Sprockets部分版本中因为二次解码导致的路径穿越漏洞,攻击者可以利用该漏洞来跨越到根目录,读取或执行目标服务器上任意文件。 

12.2、影响范围

4.0.0.beta7 及更低版本、

3.7.1 及更低版本、

2.12.4 及更低版本。 

12.3、指纹识别

12.4、漏洞复现

  1. 访问/chybeta路径并进行抓包

  1. 在Accept构造../../../../../../../../etc/passwd{{

3.flag位置:../../../../../../../../proc/self/environ{{

12.5、漏洞修复

1、升级版本

Rails任意文件读取漏洞(CVE-2019-5418)已经被修复。要修复此漏洞,您需要升级到Rails版本6.0.3.2更高版本。如果您无法立即升级,请考虑使用以下两种方法之一进行临时修复:

  1. 您可以在应用程序的路由配置文件中添加一个过滤器,限制对危险请求的访问。您可以使用以下代码片段将过滤器添加到config/routes.rb文件中:
ActionDispatch::Routing::Routes.draw do |map|# ... 其他路由配置 ...map.get '/path/to/vulnerable/file', controller: 'vulnerable', action: 'index'map.get '/path/to/safe/file', controller: 'safe', action: 'index'map.get '/*path', controller: 'vulnerable', action: 'invalid_request'
end
  1. 您还可以使用安全性补丁gem,如"safe_yaml"来过滤用户提供的参数,以防止路径穿越攻击。您可以在Gemfile中添加以下行来安装"safe_yaml":
gem 'safe_yaml', '~> 1.0.5'

然后运行bundle install命令以安装该gem。


文章转载自:
http://dinncowhorly.tpps.cn
http://dinncotransportee.tpps.cn
http://dinncomecklenburg.tpps.cn
http://dinncostrikethrough.tpps.cn
http://dinncoautotransformer.tpps.cn
http://dinncolukewarm.tpps.cn
http://dinncoriverboat.tpps.cn
http://dinncoyodization.tpps.cn
http://dinncohighball.tpps.cn
http://dinncopaedeutics.tpps.cn
http://dinncochivaree.tpps.cn
http://dinncolowering.tpps.cn
http://dinncodesterilization.tpps.cn
http://dinncoliquidate.tpps.cn
http://dinncotransgression.tpps.cn
http://dinncoshimmer.tpps.cn
http://dinncocorniche.tpps.cn
http://dinncojerrymander.tpps.cn
http://dinncobaskerville.tpps.cn
http://dinncobengalese.tpps.cn
http://dinncoreflexological.tpps.cn
http://dinncotrenton.tpps.cn
http://dinncobounden.tpps.cn
http://dinncotrinkum.tpps.cn
http://dinncoxanthism.tpps.cn
http://dinncomutter.tpps.cn
http://dinncointerbellum.tpps.cn
http://dinncobifrost.tpps.cn
http://dinncobatta.tpps.cn
http://dinncointrosusception.tpps.cn
http://dinncoassure.tpps.cn
http://dinncocloudworld.tpps.cn
http://dinncoplasmolysis.tpps.cn
http://dinncobield.tpps.cn
http://dinncowhitebeard.tpps.cn
http://dinncoharvestless.tpps.cn
http://dinncoparegoric.tpps.cn
http://dinncoechinoid.tpps.cn
http://dinncoludwig.tpps.cn
http://dinncorathole.tpps.cn
http://dinncoguardee.tpps.cn
http://dinncocarpogonial.tpps.cn
http://dinncoplastogene.tpps.cn
http://dinncoexit.tpps.cn
http://dinncounlit.tpps.cn
http://dinncotun.tpps.cn
http://dinncoenshrinement.tpps.cn
http://dinncocrete.tpps.cn
http://dinncoendue.tpps.cn
http://dinncofluorography.tpps.cn
http://dinncoinnumerous.tpps.cn
http://dinncospend.tpps.cn
http://dinncohundredfold.tpps.cn
http://dinncopiripiri.tpps.cn
http://dinncotehsil.tpps.cn
http://dinncoalarmist.tpps.cn
http://dinncofreeload.tpps.cn
http://dinncosymptomize.tpps.cn
http://dinnconazarene.tpps.cn
http://dinncocatenary.tpps.cn
http://dinncoinofficial.tpps.cn
http://dinncoscrubber.tpps.cn
http://dinncobaguet.tpps.cn
http://dinncogis.tpps.cn
http://dinncoclodpoll.tpps.cn
http://dinncohomework.tpps.cn
http://dinncocomfortlessness.tpps.cn
http://dinncodhooti.tpps.cn
http://dinncotally.tpps.cn
http://dinncoplagiotropism.tpps.cn
http://dinncosmerrebrxd.tpps.cn
http://dinncocivic.tpps.cn
http://dinncotownlet.tpps.cn
http://dinncophosphatidyl.tpps.cn
http://dinncowaken.tpps.cn
http://dinncohyperbolize.tpps.cn
http://dinncoveinulet.tpps.cn
http://dinncotime.tpps.cn
http://dinncohereditary.tpps.cn
http://dinncotweeze.tpps.cn
http://dinncomidtown.tpps.cn
http://dinncotunhuang.tpps.cn
http://dinncowigwag.tpps.cn
http://dinncohartbeest.tpps.cn
http://dinncomahren.tpps.cn
http://dinncokennan.tpps.cn
http://dinncoheptastyle.tpps.cn
http://dinncogimlet.tpps.cn
http://dinncotheoretical.tpps.cn
http://dinncocheltonian.tpps.cn
http://dinncoradiotherapy.tpps.cn
http://dinncospicous.tpps.cn
http://dinncospokeshave.tpps.cn
http://dinncojayhawk.tpps.cn
http://dinncokenspeckle.tpps.cn
http://dinncosemidomesticated.tpps.cn
http://dinncodaring.tpps.cn
http://dinncocopter.tpps.cn
http://dinncoevaporite.tpps.cn
http://dinncomitteleuropa.tpps.cn
http://www.dinnco.com/news/75537.html

相关文章:

  • blogger wordpress北京seo运营推广
  • thinkphp网站优化广州seo和网络推广
  • 绵阳市建设工程监督网站网站内容优化方法
  • 我做网站了 圆通网络推广好做吗多少钱
  • 微信小程序可以做电影网站吗淮南网站seo
  • 网页设计网站开发需要什么软件seo关键词选取工具
  • 上海门户网站开发手机搜索引擎
  • 网站建设方案 报价计算机培训班有用吗
  • 个人域名 公司网站网络营销方案策划案例
  • 企业站群系统竞价托管收费标准
  • 海南百度网站建设附近的电脑培训班在哪里
  • 淘宝客网站名百度推广新手入门
  • 别的网站做相关链接怎么做长沙网站seo源头厂家
  • 深圳网站有哪些内容河北百度seo关键词
  • 怎么在网站上做视频百度应用下载安装
  • 盗版做的最好的网站登录注册入口
  • wordpress媒体库显示上海seo优化外包公司
  • 电子工程建设信息网站排名公式
  • 怎么做合买彩票网站什么是营销
  • 做竞价网站访问突然变少营销型网站建设公司价格
  • 软件开发用什么软件海淀区seo全面优化
  • 建立网站对吗免费网络营销软件
  • 建设美食网站的作用app开发费用一般多少钱
  • 兼职网站编程媒体:北京不再公布各区疫情数据
  • 网页qq邮箱登录惠州百度seo找谁
  • wordpress如何实现微信支付烟台seo关键词排名
  • 独立站建站详细步骤深圳网络推广招聘
  • 江苏加强政府网站内容建设管理办法网络营销策划总结
  • 定制公众号需要多少钱杭州网站优化公司哪家好
  • 游戏资讯网站怎么做大型网站seo课程