[HIGH] SetupSuperAdmin 接口暴露:无速率限制,可被爆破 #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
漏洞描述
POST /api/v1/admin/setup/super-admin接口仅依赖setup_secret保护,存在以下问题:config.yaml中,无哈希保护影响文件
internal/handler/setup_handler.go— 处理 Setup 请求internal/service/setup_service.go— 验证 setup_secret 并赋予超级管理员角色风险
如果 setup_secret 被泄露或爆破成功,攻击者可将任意用户提升为超级管理员,获得系统全部权限。
修复建议
严重程度
HIGH — 直接导致权限提升到最高级别。