Skip to content

安装阶段 SecurityKey 泄露且安装后仍可创建管理员(SSCMS 7.4.0,已本地验证) #3898

Description

@mofeifeifei

SSCMS 的 AgentController(/api/admin/agent/*)没有类级别 [Authorize] 保护,仅依赖 SecurityKey 字符串比对认证。同一 SecurityKey 被复用为所有 JWT Token 的 HMAC-SHA256 签名密钥。攻击者可在系统未安装时通过 InstallController.Prepare 获取 SecurityKey 或通过文件读取获取 sscms.json,随后伪造管理员 JWT 完全接管系统。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions