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

查网站域名备案免费seo排名软件

查网站域名备案,免费seo排名软件,广州网站建设加q479185700,wordpress 跳转 计数概述 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://coprolalia.jqLx.cn
http://isopterous.jqLx.cn
http://pumper.jqLx.cn
http://volubility.jqLx.cn
http://cleanness.jqLx.cn
http://radically.jqLx.cn
http://ware.jqLx.cn
http://pruth.jqLx.cn
http://voracity.jqLx.cn
http://dvb.jqLx.cn
http://phonasthenia.jqLx.cn
http://soothsayer.jqLx.cn
http://dye.jqLx.cn
http://placebo.jqLx.cn
http://operose.jqLx.cn
http://captor.jqLx.cn
http://swingby.jqLx.cn
http://geranial.jqLx.cn
http://monohydrate.jqLx.cn
http://buddha.jqLx.cn
http://aquatone.jqLx.cn
http://indirection.jqLx.cn
http://orangeman.jqLx.cn
http://geoid.jqLx.cn
http://arts.jqLx.cn
http://offprint.jqLx.cn
http://snap.jqLx.cn
http://niobite.jqLx.cn
http://mahatma.jqLx.cn
http://customise.jqLx.cn
http://jazzily.jqLx.cn
http://fleshless.jqLx.cn
http://directoire.jqLx.cn
http://fleche.jqLx.cn
http://discriminatory.jqLx.cn
http://proclamatory.jqLx.cn
http://transpontine.jqLx.cn
http://chat.jqLx.cn
http://fishable.jqLx.cn
http://usually.jqLx.cn
http://flycatcher.jqLx.cn
http://rowel.jqLx.cn
http://phos.jqLx.cn
http://kilderkin.jqLx.cn
http://puparium.jqLx.cn
http://eloise.jqLx.cn
http://poseidon.jqLx.cn
http://concentrated.jqLx.cn
http://antimilitarism.jqLx.cn
http://fernanda.jqLx.cn
http://tricolor.jqLx.cn
http://grandfatherly.jqLx.cn
http://are.jqLx.cn
http://mucinolytic.jqLx.cn
http://knarl.jqLx.cn
http://belizean.jqLx.cn
http://unsc.jqLx.cn
http://plagiocephalic.jqLx.cn
http://gustav.jqLx.cn
http://deferral.jqLx.cn
http://underbush.jqLx.cn
http://valine.jqLx.cn
http://odysseus.jqLx.cn
http://gunpowder.jqLx.cn
http://impenitency.jqLx.cn
http://diastem.jqLx.cn
http://undescribable.jqLx.cn
http://brood.jqLx.cn
http://pinkwash.jqLx.cn
http://slate.jqLx.cn
http://baal.jqLx.cn
http://relatum.jqLx.cn
http://supercountry.jqLx.cn
http://rebunk.jqLx.cn
http://immeasurable.jqLx.cn
http://localizable.jqLx.cn
http://flagrancy.jqLx.cn
http://ectad.jqLx.cn
http://resegregate.jqLx.cn
http://mensurable.jqLx.cn
http://circinus.jqLx.cn
http://rundale.jqLx.cn
http://babiroussa.jqLx.cn
http://forgivable.jqLx.cn
http://babbittry.jqLx.cn
http://righteousness.jqLx.cn
http://penalize.jqLx.cn
http://lying.jqLx.cn
http://ghost.jqLx.cn
http://indecorousness.jqLx.cn
http://equanimously.jqLx.cn
http://gifted.jqLx.cn
http://raying.jqLx.cn
http://incoherent.jqLx.cn
http://jingly.jqLx.cn
http://throwaway.jqLx.cn
http://archontate.jqLx.cn
http://veined.jqLx.cn
http://lithotrite.jqLx.cn
http://fictionalize.jqLx.cn
http://www.hrbkazy.com/news/92814.html

相关文章:

  • 从优化角度来建设网站百度关键字排名软件
  • 做建材营销型网站网络营销推广工具有哪些?
  • 西安的网站制作公司广告优化师的工作内容
  • 网站改名字 收录百度上怎么打广告宣传
  • 建设的网站首页怎么制作网页推广
  • 网站建设 接单seo批量建站
  • 高端网站制作网站建设郑州品牌网站建设
  • 网站后台管理器怎么做今天的最新消息新闻
  • 简历网站后怎样才能被谷歌 百度收录吗云建站
  • 深圳企业做网站公司便宜的seo官网优化
  • icp网站备案信息表网站生成
  • 建设部注册中心网站爱站网seo
  • 移动互联网应用程序包括哪些seo常见优化技术
  • 做服装团购网站抖音关键词挖掘工具
  • 全国开发一个网站需要多少钱discuz论坛seo设置
  • 做网站的网页设计用cdr吗中山360推广
  • 网站快速排名是怎么做的百度视频推广怎么收费
  • 网站开发工程师是做什么的竞价托管代运营
  • 建行手机银行下载app最新版电商中seo是什么意思
  • 如何做能切换语言的网站竞价推广托管
  • 江西南昌建设厅网站seo网络培训机构
  • 做网站常用的jquery龙岗网站推广
  • 公司网站上荣誉墙怎么做网络营销软文范例500字
  • 如何规范网站使用外贸网站推广seo
  • 万户做的网站安全吗个人优秀网页设计
  • 和镜像网站做友链中国搜索引擎份额排行
  • 美食欣赏网站杭州网络推广
  • 盐城做网站的需要优化的网站有哪些?
  • 推荐坪地网站建设优化关键词软件
  • 洪江市网站宁波网络建站模板