Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2021-34824 PoC — Istio 权限许可和访问控制问题漏洞

Source
Associated Vulnerability
Title:Istio 权限许可和访问控制问题漏洞 (CVE-2021-34824)
Description: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。
Description
reproducing an old istio bug
Readme
# 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.
File Snapshot

[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
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. If the original source is unavailable, please email f.jinxu#gmail.com for a local snapshot (replace # with @).
    3. Shenlong has snapshotted the POC code for you. To support long-term maintenance, please consider donating. Thank you for your support.