id: leostream-default-login

info:
  name: Leostream Default Login
  author: bhutch
  severity: high
  description: |
    Leostream default admin credentials were discovered.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
    cpe: cpe:2.3:a:leostream:connection_broker:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"Leostream"
    product: connection_broker
    vendor: leostream
  tags: leostream,default-login

http:
  - raw:
      - |
        POST / HTTP/1.1
        Host: {{Hostname}}

        login_type=0&user={{username}}&password={{password}}&submit=SIGN+IN

    payloads:
      username:
        - admin
      password:
        - leo
    attack: pitchfork

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "Set-Cookie: lld=%21"

      - type: word
        part: header
        words:
          - 'index.pl'
          - 'server.pl'
          - 'status.pl'
        condition: or

      - type: status
        status:
          - 302
# digest: 4a0a00473045022025f3cb94710e20e7709a5b21fcf145c01678768c6fe484528a77928f84588a37022100f090f4b718c4722bbfd88bc7e5aed99e8cddd1e07880a2108bec8790621c9900:922c64590222798bb761d5b6d8e72950