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
  metadata:
    max-request: 1
    shodan-query: http.html:"phpMiniAdmin"
    verified: true
  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: 4b0a00483046022100e03fa32584462fde7bcc16a2d689965f7da6f41e2b4fda3cc0a9b48211213348022100b85089b97664231a71b3311a7569998dee59fdf03e23657ee3bd38b5380cfd4f:922c64590222798bb761d5b6d8e72950