HexBrain

Browse / CVEs / CVE-2024-11044

CVE-2024-11044

Stable Diffusion Webui 1.10.0 - Open Redirect

mediumseverity
0.8%likelihood of exploitation, next 30 days
58%of all CVEs are less likely
Readycheck to confirm it

An open redirect vulnerability exists in Stable-Diffusion-Webui 1.10.0, where the file parameter in the /file= endpoint can be manipulated to redirect users to malicious websites. This could facilitate phishing attacks by tricking users into visiting attacker-controlled URLs.

Impact

Unauthenticated attackers can redirect users to malicious URLs via the file parameter, facilitating phishing attacks and credential theft.

Fix

Update Stable Diffusion Webui to a version newer than 1.10.0.

How to confirm it

Send: GET {{BaseURL}}
Positive when: contains_any(tolower(body), "stable-diffusion-webui", "k-diffusion", "content=\"stable diffusion")
Send: GET {{BaseURL}}/file=https://oast.pro
Positive when: matches in header /(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)oast\.pro.*$/

Run it with nuclei: nuclei -id CVE-2024-11044 -u <target>

The full check
id: CVE-2024-11044

info:
  name: Stable Diffusion Webui 1.10.0 - Open Redirect
  author: DhiyaneshDK
  severity: medium
  description: |
    An open redirect vulnerability exists in Stable-Diffusion-Webui 1.10.0, where the file parameter in the /file= endpoint can be manipulated to redirect users to malicious websites. This could facilitate phishing attacks by tricking users into visiting attacker-controlled URLs.
  impact: |
    Unauthenticated attackers can redirect users to malicious URLs via the file parameter, facilitating phishing attacks and credential theft.
  remediation: |
    Update Stable Diffusion Webui to a version newer than 1.10.0.
  reference:
    - https://huntr.com/bounties/ee942e5e-4987-4f81-ba83-014fec6b33b3
  classification:
    epss-score: 0.00845
    epss-percentile: 0.58298
  metadata:
    verified: true
    max-request: 1
    fofa-query: body="stable-diffusion-webui"
  tags: cve,cve2024,huntr,redirect,oss,stable_diffusion_webui,automatic1111,vuln

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers:
      - type: dsl
        dsl:
          - 'contains_any(tolower(body), "stable-diffusion-webui", "k-diffusion", "content=\"stable diffusion")'
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/file=https://oast.pro"

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)oast\.pro.*$'

References

Use this check only on systems you are authorised to test. Where the data comes from