id: phpminiadmin-panel

info:
  name: phpMiniAdmin Login Panel - Detect
  author: nullfuzz
  severity: info
  description: |
    phpMiniAdmin login panel was detected.
  reference:
    - https://github.com/osalabs/phpminiadmin
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
    cpe: cpe:2.3:a:phpminiadmin_project:phpminiadmin:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"phpMiniAdmin"
    product: phpminiadmin
    vendor: phpminiadmin_project
  tags: panel,phpminiadmin

http:
  - method: GET
    path:
      - "{{BaseURL}}/phpminiadmin.php"

    matchers:
      - type: dsl
        dsl:
          - "status_code == 200"
          - "contains(body, '<title>phpMiniAdmin')"
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - 'phpMiniAdmin ([0-9._]+)'
# digest: 490a004630440220776457a625043c207b8c72c32ac84c2b0ab5dac82421ca0565a6fd1f29479334022009b16181b936d927500fa69ed9c4836932ffd97895b668cab2d4ffc0fd99a84a:922c64590222798bb761d5b6d8e72950