apolloconfig / apolloconfig/apollo

反射型xss

Open
#2,171 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
29.8k
Forks
10.2k
Avg merge
4d 7h
Merged PRs (30d)
4

Description

你好:
我是奇安信代码卫士的工作人员,在我们的开源代码检测项目中,发现apollo存在反射型的跨站点脚本攻击漏洞(xss),详细信息如下:
在ConfigFileController.java的queryConfigAsJson方法中接收了请求中的clusterName参数
![图片](https://user-images.githubusercontent.com/39950310/56802204-0743c680-6852-11e9-818e-8e6cfc53ce95.png)
用于在数据库中进行查询,当没有查询结果时,会将clusterName参数进行字符串拼凑后放入response包中返回
![图片](https://user-images.githubusercontent.com/39950310/56802375-70c3d500-6852-11e9-9f17-b4e5f5768e64.png)
这样可能导致反射型的xss漏洞

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.