File tree Expand file tree Collapse file tree 7 files changed +12
-14
lines changed
modules/logic/idor/controller
resources/templates/vul/logic/idor Expand file tree Collapse file tree 7 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ url: jdbc:mysql://localhost:13306/JavaSecLab?characterEncoding=utf8&zeroDateTime
94
94
### Docker部署(推荐)
95
95
96
96
> 条件:已安装docker和docker-compose
97
+ >
98
+ > docker部署过程中 sql文件没有初始化执行的话(即数据库为空) 需要手动导入下sql文件
97
99
98
100
` ` ` shell
99
101
mvn clean package -DskipTests
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 23
23
@ Api (value = "HorizontalController" , tags = "逻辑漏洞-水平越权" )
24
24
@ Controller
25
25
@ CrossOrigin (origins = "*" )
26
- @ RequestMapping ("/logic/idor" )
26
+ @ RequestMapping ("/logic/idor/horizontal " )
27
27
public class HorizontalController {
28
28
@ Autowired
29
29
private UserMapper userMapper ;
30
30
31
- @ RequestMapping ("/horizontal " )
31
+ @ RequestMapping ("" )
32
32
public String horizontal (){
33
- return "/ vul/logic/idor/horizontal" ;
33
+ return "vul/logic/idor/horizontal" ;
34
34
}
35
35
36
36
@ GetMapping ("/getUserInfo" )
Original file line number Diff line number Diff line change 19
19
@ Api (value = "VerticalController" , tags = "逻辑漏洞-垂直越权" )
20
20
@ Controller
21
21
@ CrossOrigin (origins = "*" )
22
- @ RequestMapping ("/logic/idor" )
22
+ @ RequestMapping ("/logic/idor/vertical " )
23
23
public class VerticalController {
24
- @ RequestMapping ("/vertical " )
24
+ @ RequestMapping ("" )
25
25
public String vertical (){
26
- return "/ vul/logic/idor/vertical" ;
26
+ return "vul/logic/idor/vertical" ;
27
27
}
28
28
29
29
@ GetMapping ("/vul" )
Original file line number Diff line number Diff line change @@ -99,10 +99,7 @@ protected void configure(HttpSecurity http) throws Exception {
99
99
// http.addFilterBefore(jwtRequestFilter, UsernamePasswordAuthenticationFilter.class);
100
100
101
101
// 如果不需要验证码校验登录 可以注释掉该行
102
- http .addFilterBefore (validateCodeFilter , UsernamePasswordAuthenticationFilter .class );
103
-
104
- // 如果不用验证码,注释这个过滤器即可
105
- // http.addFilterAt(usernamePasswordAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class);
102
+ // http.addFilterBefore(validateCodeFilter, UsernamePasswordAuthenticationFilter.class);
106
103
107
104
108
105
// 添加session管理器 session失效后跳到登录页
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ <h1><span class="iconfont icon-code"> 安全代码</span></h1>
160
160
161
161
162
162
miniTab . listen ( ) ;
163
- layer . msg ( "其他漏洞-越权漏洞 " ) ;
163
+ layer . msg ( "其他漏洞-水平越权 " ) ;
164
164
165
165
var cmConfig = {
166
166
lineNumbers : true ,
Original file line number Diff line number Diff line change 26
26
< div class ="layui-col-md12 " style ="margin-top: 10px ">
27
27
< div class ="layui-row layui-col-space15 ">
28
28
< div class ="layui-col-md6 ">
29
- < h1 > < span class ="iconfont icon-bug "> 漏洞环境:水平遍历用户信息 </ span > </ h1 >
29
+ < h1 > < span class ="iconfont icon-bug "> 漏洞环境:垂直越权管理员 </ span > </ h1 >
30
30
< div class ="layui-tab layui-tab-brief ">
31
31
< div class ="layui-tab-content ">
32
32
< div class ="layui-tab-item layui-show ">
@@ -74,7 +74,7 @@ <h1><span class="iconfont icon-code"> 缺陷代码</span></h1>
74
74
75
75
76
76
miniTab . listen ( ) ;
77
- layer . msg ( "其他漏洞-越权漏洞 " ) ;
77
+ layer . msg ( "其他漏洞-垂直越权 " ) ;
78
78
79
79
var cmConfig = {
80
80
lineNumbers : true ,
You can’t perform that action at this time.
0 commit comments