id: satis-repository

info:
  name: Satis Composer Repository - Detect
  author: FlorianMaak
  severity: info
  description: |
    Satis composer repository was detected
  reference:
    - https://github.com/composer/satis
  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:
    verified: true
    max-request: 1
    shodan-query: html:"<a href=\"https://github.com/composer/satis\">Satis</a>"
  tags: panel,exposure,composer,satis

http:
  - method: GET
    path:
      - '{{BaseURL}}'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'This is a private repository'
          - 'https://github.com/composer/satis'
        condition: and

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: body
        regex:
          - '\d+\.\d+\.\d+-dev'
# digest: 4b0a00483046022100f680ac1ec0461fbc4d7806b4a356868b0d9c65f648d59e6b1193a3a1e85b3e0b022100d95a903437a4f60528bd6bcfe7f84bec4b0a307fdcb81ca6d3f3ab8e844bd53e:922c64590222798bb761d5b6d8e72950