id: ampache-panel

info:
  name: Ampache Login Panel - Detect
  author: ritikchaddha
  severity: info
  description: Ampache login panel was detected.
  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:ampache:ampache:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 3
    vendor: ampache
    product: ampache
    shodan-query:
      - http.title:"For the Love of Music"
      - http.title:"for the love of music"
    fofa-query: title="for the love of music"
    google-query: intitle:"for the love of music"
  tags: panel,ampache

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

    host-redirects: true
    max-redirects: 2
    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Ampache :: For the Love of Music"
        case-insensitive: true

      - type: word
        part: body
        words:
          - "Music - Installation"
        negative: true

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100d37d4e900f1382b75e540b3782e189ffc8c8ef07486c7d03c909e728d41647ed022026aadcec905b9f6004a89a489386cae608aa81c7e8dcee8e2d538e299f2470b3:922c64590222798bb761d5b6d8e72950