Summary
cf-manager, a dashboard for managing Cloudflare accounts and services, has an SSRF vulnerability in versions prior to 1.1.2 that can lead to code execution in the victim's Cloudflare Workers account. It is rated critical with a CVSS score of 10.0.
What happened
According to the vendor's description, worker/src/routes/workers.ts uses unvalidated fetch(url) calls to retrieve user-supplied URLs and deploys the returned content as a Worker script using stored Cloudflare credentials. The multipart and JSON branches of POST /api/:accountId/workers and POST /api/batch-deploy accept URLs without validating protocol, destination, redirects, content type, or response size. An attacker with deployment API access, or unauthenticated access if API_SECRET is not configured, can make cf-manager access internal resources or fetch attacker-controlled JavaScript and execute it in the victim's Cloudflare Workers account. The associated weaknesses are CWE-94 and CWE-918.
Why it matters
The score is CVSS 3.1 10.0 (critical), with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H, assigned by CNA:GitHub_M. The attack can be carried out over the network with low complexity and no user interaction, and may require no authentication when API_SECRET is not configured. CISA's KEV catalog does not list this vulnerability as exploited, and the source does not indicate active exploitation.
Affected products and versions
cf-manager (vendor: hefy2027), versions prior to 1.1.2 (< 1.1.2).
| Product | Versions | Fixed in |
|---|---|---|
| hefy2027 cf-manager | < 1.1.2 | — |
Action recommended by the source
The vendor states the issue is fixed in version 1.1.2. The references include the GitHub security advisory (GHSA-wmx3-qxcc-mh64), the fix commit, and the 1.1.2 release at https://github.com/hefy2027/cf-manager/releases/tag/1.1.2. The source does not mention other mitigations.
Sources and references
- https://github.com/hefy2027/cf-manager/security/advisories/GHSA-wmx3-qxcc-mh64 — CVE Program
- https://github.com/hefy2027/cf-manager/commit/934aecbe614d8a08a8c96f393c0126519c35e3be — CVE Program
- https://github.com/hefy2027/cf-manager/releases/tag/1.1.2 — CVE Program
Weaknesses (CWE): CWE-94, CWE-918
Relevant change history
Published
Advisory published.