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

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: 490a004630440220358275002a5cb35b58a6886ab32e92a8efd3ced8f8bc557a528c8190c716bd0f022069ad86b1de8343cfcb521f34005a258357e344175fcdfae04d16a61d8cee70c1:922c64590222798bb761d5b6d8e72950