Skip to content

Commit

Permalink
fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
whgojp committed Nov 10, 2024
1 parent 7cf81bd commit 638288b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 14 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ url: jdbc:mysql://localhost:13306/JavaSecLab?characterEncoding=utf8&zeroDateTime
### Docker部署(推荐)
> 条件:已安装docker和docker-compose
>
> docker部署过程中 sql文件没有初始化执行的话(即数据库为空) 需要手动导入下sql文件
```shell
mvn clean package -DskipTests
Expand Down
1 change: 0 additions & 1 deletion deploy.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
@Api(value = "HorizontalController", tags = "逻辑漏洞-水平越权")
@Controller
@CrossOrigin(origins = "*")
@RequestMapping("/logic/idor")
@RequestMapping("/logic/idor/horizontal")
public class HorizontalController {
@Autowired
private UserMapper userMapper;

@RequestMapping("/horizontal")
@RequestMapping("")
public String horizontal(){
return "/vul/logic/idor/horizontal";
return "vul/logic/idor/horizontal";
}

@GetMapping("/getUserInfo")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
@Api(value = "VerticalController", tags = "逻辑漏洞-垂直越权")
@Controller
@CrossOrigin(origins = "*")
@RequestMapping("/logic/idor")
@RequestMapping("/logic/idor/vertical")
public class VerticalController {
@RequestMapping("/vertical")
@RequestMapping("")
public String vertical(){
return "/vul/logic/idor/vertical";
return "vul/logic/idor/vertical";
}

@GetMapping("/vul")
Expand Down
5 changes: 1 addition & 4 deletions src/main/java/top/whgojp/security/SecurityConfigurer.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,7 @@ protected void configure(HttpSecurity http) throws Exception {
// http.addFilterBefore(jwtRequestFilter, UsernamePasswordAuthenticationFilter.class);

// 如果不需要验证码校验登录 可以注释掉该行
http.addFilterBefore(validateCodeFilter, UsernamePasswordAuthenticationFilter.class);

// 如果不用验证码,注释这个过滤器即可
// http.addFilterAt(usernamePasswordAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class);
// http.addFilterBefore(validateCodeFilter, UsernamePasswordAuthenticationFilter.class);


// 添加session管理器 session失效后跳到登录页
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ <h1><span class="iconfont icon-code"> 安全代码</span></h1>


miniTab.listen();
layer.msg("其他漏洞-越权漏洞");
layer.msg("其他漏洞-水平越权");

var cmConfig = {
lineNumbers: true,
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/vul/logic/idor/vertical.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<div class="layui-col-md12" style="margin-top: 10px">
<div class="layui-row layui-col-space15">
<div class="layui-col-md6">
<h1><span class="iconfont icon-bug"> 漏洞环境:水平遍历用户信息</span></h1>
<h1><span class="iconfont icon-bug"> 漏洞环境:垂直越权管理员</span></h1>
<div class="layui-tab layui-tab-brief">
<div class="layui-tab-content">
<div class="layui-tab-item layui-show">
Expand Down Expand Up @@ -74,7 +74,7 @@ <h1><span class="iconfont icon-code"> 缺陷代码</span></h1>


miniTab.listen();
layer.msg("其他漏洞-越权漏洞");
layer.msg("其他漏洞-垂直越权");

var cmConfig = {
lineNumbers: true,
Expand Down

0 comments on commit 638288b

Please sign in to comment.