mirror of
https://github.com/Ed1s0nZ/CyberStrikeAI.git
synced 2026-10-19 14:07:36 +02:00
fix: validate login and role inputs and protect task access
This commit is contained in:
1 parent
17498368f6
commit
079ba0d2b3
18 files changed
+328
-8
No files matched your search
@@ -16,6 +16,9 @@
|
||||
| --- | --- | --- |
|
||||
| C2 wait/cancel 资源权限 | handler 直接按 ID 查询和取消,缺少 c2ResourceAllowed | 与同模块接口一致,先校验任务访问权限,再执行 |
|
||||
| 32 纯文本批量/机器人任务缺少执行证据 | batch_queue_executor 和 finalizeRobotAgentSuccess 显式传 true | 与普通对话的默认策略一致,允许无工具文本回复,保留 pending/HITL 检查 |
|
||||
| 30、31 角色名路径字符/长度 | 名称未校验,文件名会转换,存在碰撞 | 拒绝路径和控制字符、首尾空格、超过 64 字符及文件名碰撞 |
|
||||
| 工作流悬空引用 | 角色保存与工作流删除均未检查引用 | 保存时验证存在;删除引用中的工作流返回冲突 |
|
||||
| 4 登录用户名为空 | 前端无 required,后端空用户名默认 admin | 登录接口及页面拒绝空白/超过 64 字符用户名 |
|
||||
|
||||
## 不适用
|
||||
|
||||
@@ -23,4 +26,7 @@
|
||||
|
||||
## 验证
|
||||
|
||||
待填写实际执行结果。
|
||||
- `go test ./internal/handler ./internal/app ./internal/agentfinalizer` 通过。
|
||||
- 新增 C2 跨用户禁止等待/取消、所有者正常操作、机器人纯文本交付、角色名称边界、工作流引用、登录用户名测试。
|
||||
- 前端已有测试存在 HITL 断言失败,正在核实基线;未修改 HITL 脚本。
|
||||
- 当前尚未完成全部表内条目核对,也尚未合入 main。
|
||||
Reference in new issue
Block a user