id: softr-takeover

info:
  name: Softr.io Takeover Detection
  author: philippedelteil
  severity: high
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/352
    - https://docs.softr.io/custom-domain-and-publishing/9qTmU2Lj8Gnpr1Ue6dEAkX/add-a-custom-domain-to-your-app/93K5bLJN3n91MRo9uRGdAf
  metadata:
    max-request: 1
  tags: takeover,softr

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

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

      - type: word
        words:
          - 'The application you were looking for was built on Softr'
          - 'Get started with Softr'
        condition: and

      - type: status
        status:
          - 404

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