id: ampache-update-exposure

info:
  name: Ampache Update Page Exposure
  author: ritikchaddha
  severity: low
  description: Ampache update page is exposed.
  classification:
    cpe: cpe:2.3:a:ampache:ampache:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: ampache
    product: ampache
    shodan-query: http.html:"Ampache Update"
  tags: misconfig,ampache,exposure

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Ampache Update"
        case-insensitive: true

      - type: word
        part: body
        words:
          - "No Update Needed"
          - "No updates needed"
        negative: true

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