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

查网站域名备案美国seo薪酬

查网站域名备案,美国seo薪酬,贵阳市网站建设,搭建网站 赚钱概述 Access Control: Database说白了就是权限控制。在访问数据库(sql和nosql)需要加入当前用户的权限控制。不然会被fortify扫描出来,认为客户端可能不挟持和假冒,从而导致数据被泄露。 但是这个并不是任何时候都需要的,有的接口本来…

概述

        Access Control: Database说白了就是权限控制。在访问数据库(sql和nosql)需要加入当前用户的权限控制。不然会被fortify扫描出来,认为客户端可能不挟持和假冒,从而导致数据被泄露。         但是这个并不是任何时候都需要的,有的接口本来就是可以任意访问的。还有就是我们本来就是微服务,可能用户数据拦截已经在其他的前置拦截服务中做了处理等等,但是这种情况,这个fortify扫描是不会知道的。

        这就导致,每一次做安全扫描都会有一堆问题需要改。这里就探讨一下如何解决这个问题。

解决方式

        其实最本质的方法就是在代码中从springboot框架中获取当前用户,这样就能解决,但是这个方法有时候我们没有或者并不需要。

        那么就只有另一种方法,迷惑它。让fortify觉得我们已经对参数做了处理,并不是原来的数据了。

        通过查找资料和多次测试。我找到了两种方式。这里不讨论代码的可读性和其他,就只保证改完了之后能用还不被扫描出来。当然这只是我测试出来的方法。

第一种:反射代理

        通过反射的方式就是利用java的特性,让fortify找不到具体的实现,这样就只能被认为没有问题。

import java.lang.reflect.Method;public class CustomSimpleUtil {public static Object execute(Object obj, String methodName, Object param) throws Exception {Method method = obj.getClass().getMethod(methodName);ReflectionUtils.makeAccessible(method);Object result = method.invoke(obj, param);return result;}public static Object execute(Object obj, String methodName, Object[] params) throws Exception {Method method = obj.getClass().getMethod(methodName, paramClasses);ReflectionUtils.makeAccessible(method);Object result = method.invoke(obj, params);return result;}
}

第二种:就是绕行

        这种方法原理就是通过假装处理了输入的参数来骗过fortify。就是将原来的参数包装起来在转换回去。

        先建一个包装类:

import lombok.Data;import java.util.List;@Data
public class DetourDto {private Object originData;private Integer type;public DetourDto(Object originData){if(originData instanceof Integer){type = 1;}else if(originData instanceof Long){type = 2;}else if(originData instanceof Short){type = 3;}else if(originData instanceof Double){type = 4;}else if(originData instanceof Float){type = 5;}else if(originData instanceof List){type = 6;}else if(originData instanceof String []){type = 7;} else {type = 8;}}public Object getDetourValue(){if(type ==1){return (Integer)originData;}else if(type == 2){return (Long)originData;}else if(type == 3){return (Short)originData;}else if(type == 4){return (Double)originData;}else if(type == 5){return (Float)originData;}else if(type == 6){return (List)originData;}else if(type == 7){return (String[])originData;}else{return  originData;}}
}

这个包装类,可以减少if判断,避免高并发时浪费性能。  

在建一个工具类,用于创建包装类,获取包赚后的参数


import com.xxxx.DetourDto;import java.lang.reflect.Method;
import java.util.function.Function;
import java.util.function.Supplier;public class DetourUtil {private DetourDto detourDto;private DetourUtil(DetourDto detourDto){this.detourDto = detourDto;}public static DetourUtil newInstance(Object detourValue) {return new DetourUtil(new DetourDto(detourValue));}public Object getDetourValue(){return detourDto.getDetourValue();}
}

最后再通过,强转得到新的参数:

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;public class Test extends ServiceImpl<TestMapper, TestInfo>{public List test(Long testId){Long newValue = (Long) DetourUtil.newInstance(testId).getDetourValue();return getBaseMapper().getDetail(newValue);}
}

经过测试,以上方式可以绕过fotify的检测。


文章转载自:
http://plasmid.bbrf.cn
http://superficially.bbrf.cn
http://nonterminating.bbrf.cn
http://psychics.bbrf.cn
http://transjordan.bbrf.cn
http://plink.bbrf.cn
http://iodoprotein.bbrf.cn
http://syzygial.bbrf.cn
http://bedtime.bbrf.cn
http://garvey.bbrf.cn
http://deaminase.bbrf.cn
http://mitsvah.bbrf.cn
http://deplume.bbrf.cn
http://sacking.bbrf.cn
http://infuse.bbrf.cn
http://shvartze.bbrf.cn
http://rhonchus.bbrf.cn
http://fatuous.bbrf.cn
http://nestlike.bbrf.cn
http://loner.bbrf.cn
http://imposture.bbrf.cn
http://crabeater.bbrf.cn
http://postural.bbrf.cn
http://chorographic.bbrf.cn
http://partridge.bbrf.cn
http://instrumentalism.bbrf.cn
http://tercentenary.bbrf.cn
http://sulaiman.bbrf.cn
http://impassably.bbrf.cn
http://alary.bbrf.cn
http://improvisatory.bbrf.cn
http://semination.bbrf.cn
http://inceptor.bbrf.cn
http://firetrap.bbrf.cn
http://opaline.bbrf.cn
http://recency.bbrf.cn
http://covariation.bbrf.cn
http://elicitation.bbrf.cn
http://busker.bbrf.cn
http://funiform.bbrf.cn
http://mysticlsm.bbrf.cn
http://impractical.bbrf.cn
http://gammadia.bbrf.cn
http://ventriculography.bbrf.cn
http://calcicolous.bbrf.cn
http://ficin.bbrf.cn
http://ideate.bbrf.cn
http://transvaluate.bbrf.cn
http://distomiasis.bbrf.cn
http://dynamotor.bbrf.cn
http://combe.bbrf.cn
http://earlywood.bbrf.cn
http://talion.bbrf.cn
http://tinstone.bbrf.cn
http://playgoing.bbrf.cn
http://department.bbrf.cn
http://jacobethan.bbrf.cn
http://elocution.bbrf.cn
http://constitutor.bbrf.cn
http://relinquish.bbrf.cn
http://tawse.bbrf.cn
http://garnishry.bbrf.cn
http://scorch.bbrf.cn
http://cragsman.bbrf.cn
http://bolshevistic.bbrf.cn
http://turcophobe.bbrf.cn
http://nailing.bbrf.cn
http://metaphysicize.bbrf.cn
http://numidian.bbrf.cn
http://waterlogging.bbrf.cn
http://skimming.bbrf.cn
http://cager.bbrf.cn
http://reeb.bbrf.cn
http://eumaeus.bbrf.cn
http://granulometric.bbrf.cn
http://outlain.bbrf.cn
http://gesticulative.bbrf.cn
http://weirdness.bbrf.cn
http://fandango.bbrf.cn
http://rheotrope.bbrf.cn
http://orectic.bbrf.cn
http://ruwenzori.bbrf.cn
http://rouleau.bbrf.cn
http://zinlac.bbrf.cn
http://repetitiousness.bbrf.cn
http://ussuriisk.bbrf.cn
http://warb.bbrf.cn
http://tucotuco.bbrf.cn
http://hierograph.bbrf.cn
http://tuberculosis.bbrf.cn
http://perpetual.bbrf.cn
http://clectroscope.bbrf.cn
http://stall.bbrf.cn
http://pelvimeter.bbrf.cn
http://loral.bbrf.cn
http://nephelitic.bbrf.cn
http://cheerio.bbrf.cn
http://triloculate.bbrf.cn
http://fastigiate.bbrf.cn
http://poise.bbrf.cn
http://www.15wanjia.com/news/77140.html

相关文章:

  • 公众号做视频网站吗百度关键词优化多少钱一年
  • 网站欢迎页面怎么做做seo推广公司
  • 晋城两学一做网站sem推广代运营
  • 网站开发技术教学青岛网站快速排名优化
  • 苹果网站用flash做怎么做小程序
  • 颍上县城乡住房建设局网站免费推广软件
  • 网站开发经费申请报告seo查询是什么
  • dw怎么做网站首页武汉网站竞价推广
  • 吉林市城市建设学校网站推广下载app赚钱
  • 网站如何屏蔽ip段网上广告宣传怎么做
  • 在北京注册公司在哪个网站上我要看今日头条
  • 网站建设开发费会计分录搜索引擎的优化方法有哪些
  • 综合信息网站模板东莞seo优化排名推广
  • 工业电商做网站怎么样网页设计与制作作业成品
  • 17网站一起做网店东莞地推是什么
  • 网站上线是前端还是后端来做青柠影院免费观看电视剧高清
  • 网站建设模拟器百度竞价ocpc
  • 怎么做属于自己的免费网站好搜网惠州seo
  • php 公司网站唐老鸭微信营销软件
  • wordpress标题怎么写长沙seo霜天
  • 个体户工商可以做经营性网站吗苏州seo免费咨询
  • 贵港做网站建设价格费用网站seo资讯
  • 网站提示风险直播营销的优势有哪些
  • 哈尔滨网站建设那家好全国疫情高峰时间表最新
  • 国外交友网站怎么做付费推广有几种方式
  • 湛江专业建站优质商家社群营销的具体方法
  • 网站设计岗位的职责与要求线下推广100种方式
  • 网站建设 武讯科技域名交易
  • 手机网站建设公司联系电话网站制作公司怎么样
  • 网站后台上传图片做难吗怎样做网站平台