Files
hzdyjs/问题整改/P1-rs-application-submit须登录整改说明.md
T
2026-09-22 19:22:18 +08:00

16 lines
616 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# P1:`POST /rs/application/submit` 须登录整改说明
## 问题
接口标注 `@SaIgnore`,且在 `security.excludes` 中放行,未登录即可任意提交应聘信息(姓名、手机号等写入库),存在灌数据/滥投风险。
## 整改
1. 移除 `RsApplicationController#submitApplication` 的 `@SaIgnore`
2. 从 `application.yml` → `security.excludes` 删除 `/rs/application/submit`
3. 提交时绑定 `applicantId = LoginHelper.getUserId()`
## 影响
招聘门户投递须先登录;未带 Token 调用返回未登录。职位公开浏览接口(`/rs/job/public/**`)不受影响。