id: steve-default-login

info:
  name: SteVe Login Panel - Detect
  author: clem9669
  severity: info
  description: |
    SteVe login panel was detected.
  reference:
    - https://github.com/steve-community/steve
    - https://github.com/steve-community/steve/blob/e42ddcf1acf6c4ad2287bb466b2d3550663ce978/src/main/resources/config/test/main.properties
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
    cpe: cpe:2.3:a:steve-community:steve:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.title:"SteVe - Steckdosenverwaltung"
    google-query: intitle:"SteVe - Steckdosenverwaltung"
    product: steve
    vendor: steve-community
  tags: panel,default-login,steve,vuln

http:
  - raw:
      - |
        GET /steve/manager/signin HTTP/1.1
        Host: {{Hostname}}
      - |
        POST /steve/manager/signin HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        username={{username}}&password={{password}}&_csrf={{csrf}}

    attack: clusterbomb
    payloads:
      username:
        - admin
      password:
        - 1234
    redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body_2
        words:
          - "<a>DATA MANAGEMENT"
          - "SIGN OUT</a>"
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        name: csrf
        group: 1
        regex:
          - '_csrf" value="(.*?)"/>'
        internal: true
# digest: 490a0046304402203e5e3fcc4f80be05528dcdebe17165eb461234aa4760d9eb7cf2c00a1c8df6fd02204cdfcb7bdcd8479c385101a3e16244b6f14f66e9fb9154fc9cfa7579e482bd8e:922c64590222798bb761d5b6d8e72950