保护 Web 应用程序的最佳实践.pdf

编号:981432 PDF 68页 2.34MB 下载积分:VIP专享
下载报告请您先登录!

保护 Web 应用程序的最佳实践.pdf

1、Best Practices to Secure Web ApplicationsLoiane Groner loianeApplication SecurityPlanDevelopmentBuildTestQA/UATProductionSecurity TestingProduction Delays due to late assessmentWorse:assessment is done after production every X monthsSource:NIST Ponemom InstituteShift leftPlanDevelopmentBuildTestQA/U

2、ATProductionSource:NIST Ponemom InstituteRemediation Costs:Security from day 1Loiane GronerDevelopment/Engineering Manager|Published AWhat is API security?Authentication and AuthorizationOWASP Top 10 API Security Risks 2023Broken Object Level AuthorizationUnrestricted Access to Sensitive Business Fl

3、owsBroken AuthenticationServer Side Request ForgeryBroken Object Property Level AuthorizationSecurity MisconfigurationUnrestricted Resource ConsumptionImproper Inventory ManagementBroken Function Level AuthorizationUnsafe Consumption of APIs12345678910https:/owasp.org/API-Security/editions/2023/en/0

4、 x11-t10/Better AuthorizationBad Practice:Checking not allowedpublic CourseDTO update(PathVariable Long id,RequestBody Course course)User user=getAuthenticatedUser();if(user.getRole().equals(Role.STUDENT)throw new AccessDeniedException(You dont have permission to update course);return courseService.

5、update(id,course);Good Practice:Deny by DefaultPutMapping(value=/id)public CourseDTO update(PathVariable Long id,RequestBody Course course)User user=getAuthenticatedUser();/allow to update if role is admin or teacher if(user.getRole().equals(Role.ADMIN)|user.getRole().equals(Role.TEACHER)return cour

6、seService.update(id,course);throw new AccessDeniedException(You dont have permission to update course);Role-based access controlPreAuthorize(hasRole(ADMIN)or hasRole(TEACHER)public CourseDTO update(PathVariable Long id,RequestBody Course course)return courseService.update(id,course);Potential Proble

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(保护 Web 应用程序的最佳实践.pdf)为本站 (竿头日上) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠