Skip to content

客户端配置的AppId大小写与服务端不一致时可越过accessKey检查而直接获取到配置 #3626

@supershania

Description

@supershania

描述bug

由于config service大小写不敏感,而导致客户端配置的AppId大小写与服务端不一致时可越过accessKey检查而直接获取到配置;
或直接通过postman等工具获取到配置文件;

复现

通过如下步骤可以复现:

  1. apollo开启访问秘钥
  2. 客户端配置 -Dapp.id={此处与portal配置的大小写不一致}
  3. 客户端不配置 accessKey
  4. 启动应用可以成功获取到配置(或使用postman直接请求)

期望

返回401而不是配置

截图

2
6
1
3
4
5

额外的细节和日志

  • 版本:服务端1.8.1;客户端1.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/clientapollo-clientarea/configserviceapollo-configservicebugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions