id: clever-takeover

info:
  name: Clever Cloud - Subdomain Takeover Detection
  author: supr4s
  severity: high
  description: Clever Cloud subdomain takeover was detected.
  reference:
    - https://supras.io/new-subdomain-takeover-case-clever-cloud/
  metadata:
    max-request: 1
  tags: takeover

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

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - Host != ip

      - type: word
        part: body
        words:
          - "The application you're trying to access doesn't seem to exist"
          - "support@clever-cloud.com"
        condition: and

    extractors:
      - type: dsl
        dsl:
          - cname
# digest: 4b0a00483046022100f70150ea9c972b35332e7427fdb634da68f1e7a4e42c5525f8bd035c4393f4bd022100805a967cbbc56d2d0c5809d1b3196477ba61e8efe5930f1415a3c0ae8b3b570b:922c64590222798bb761d5b6d8e72950