Skip to content

Basic authentication bypass #530

Closed
Closed
@Redpeppersir

Description

@Redpeppersir

BasicFilter 中的 match函数存在绕过的风险 可以在路径中添加 /;/ 格式绕过Basic认证访问到敏感的接口
开启Basic 认证
image
使用正常方式访问接口
/v2/api-docs?group=%E6%B5%8B%E8%AF%95%E5%88%86%E7%BB%84
image
通过添加 ; 在不进行认证的情况下绕过接口 /v2/;/api-docs?group=测试分组
image
match函数比较规避存在缺陷
image
建议在获取uri的时候将”;“去除
image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions