id: digitalrebar-default-login

info:
  name: RackN Digital Rebar Default Login
  author: c-sh0
  severity: high
  description: A RackN Digital Rebar default login was discovered.
  reference:
    - https://docs.rackn.io/en/latest/doc/faq-troubleshooting.html?#what-are-the-default-passwords
    - https://rackn.com/
  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
  metadata:
    max-request: 1
  tags: rackn,digitalrebar,default-login,vuln

http:
  - raw:
      - |
        GET /api/v3/users HTTP/1.1
        Host: {{Hostname}}
        Authorization: Basic {{base64(username + ':' + password)}}

    payloads:
      username:
        - rocketskates
      password:
        - r0cketsk8ts
    attack: pitchfork

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: regex
        part: header
        regex:
          - '(?i)(X-Drp-)'

      - type: word
        part: body
        words:
          - 'Name'
          - 'Secret'
        condition: and
# digest: 4a0a0047304502210098edc0b533836fed6ceb4e45ecdca8b24be9dd76a847726b24596fef492d513d022042dd6b846a392ac70930a0b8830489313abe8a292a64e378f97394478e525474:922c64590222798bb761d5b6d8e72950