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:
    max-request: 1
    shodan-query: html:"<a href=\"https://github.com/composer/satis\">Satis</a>"
    verified: true
  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: 4a0a0047304502202297b594f947a4b3571e998c52b2d8f0ffb4346734c077af42e772de251bf5b30221008769c4f6ec50f0adb01709033416c5b328e9cab14970c0c69a2b0af89880722e:922c64590222798bb761d5b6d8e72950