关联漏洞
标题:
Istio 权限许可和访问控制问题漏洞
(CVE-2021-34824)
描述:Istio是一套连接、管理和保护微服务的开放平台。 Istio 存在权限许可和访问控制问题漏洞,该漏洞源于应用程序没有适当地施加安全限制。攻击者可通过该漏洞访问敏感信息。以下产品及版本受到影响: Istio: 1.8.0、1.8.1、1.8.2、1.8.3、1.8.4、1.8.5、1.8.6、1.9.0、1.9.1、1.9.3、1.9.4、1.9.5、1.10.0、1.10.1。
描述
reproducing an old istio bug
介绍
# CVE-2021-34824 repro
## reproducing an old istio bug
This set of scripts and manifests will aid in exploring [an old Istio security issue](https://istio.io/latest/news/security/istio-security-2021-007/) which allowed malicious Istio users to access Kubernetes secrets they should not have access to. This reproduction is modeled on [this blog post](https://www.cyberark.com/resources/threat-research-blog/what-i-learned-from-analyzing-a-caching-vulnerability-in-istio) which has some problems. See [this blog post](https://rob.salmond.ca/reproing-a-repro-of-an-old-istio-vulnerability/) for details.
## Using
### See the vulnerability
1. Run `./one_time_setup.sh` to download the necessary binaries.
1. Run `./deploy_test.sh` to deploy the vulnerable version of istio in a vulnerable configuration.
1. Run `./evaluate_test.sh` to examine the results of the test.
### See the fix
1. Edit `istio_versions.sh` and switch the `ISTIO_VERSION` variable from `${ISTIO_VULN}` to `${ISTIO_SAFE}`.
1. Run `./deploy_test.sh` to deploy the fixed version of istio in the same vulnerable configuration.
1. Run `./rollpods.sh` to bounce the gateway pods so they pick up the new version.
1. Run `./check_version.sh` to verify that the fixed version of istio is running.
1. Run `./evaluate_test.sh` to examine the results again.
文件快照
[4.0K] /data/pocs/a1fd710aeda46a373425c03f9e738ee7fb9e63eb
├── [ 74] check_version.sh
├── [1.2K] deploy_test.sh
├── [1.3K] evaluate_test.sh
├── [ 144] istio_versions.sh
├── [4.0K] manifests
│ ├── [4.0K] a
│ │ ├── [ 296] gateway.yaml
│ │ ├── [ 602] nginx.yaml
│ │ └── [ 287] vs.yaml
│ ├── [4.0K] b
│ │ ├── [ 296] gateway.yaml
│ │ ├── [ 602] nginx.yaml
│ │ └── [ 287] vs.yaml
│ ├── [ 390] istio-profile.yaml
│ └── [ 112] ns.yaml
├── [1.4K] one_time_setup.sh
├── [1.3K] README.md
└── [ 207] rollpods.sh
3 directories, 15 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。