id: weebly-detect

info:
  name: Weebly Detection
  author: Chirag Mistry
  severity: info
  description: |
    An instance running Weebly is detected by looking for specific HTTP headers, HTML tags, and known endpoints.
  metadata:
    max-request: 7
    shodan-query: product:"Weebly"
  tags: weebly, detect, tech

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/robots.txt"
      - "{{BaseURL}}/sitemap.xml"
      - "{{BaseURL}}/favicon.ico"
      - "{{BaseURL}}/index.php"
      - "{{BaseURL}}/weebly/"
      - "{{BaseURL}}/site/"

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: word
        part: response
        words:
          - "Powered by Weebly"
          - "weebly.com"
          - "X-Powered-By-Weebly"
        condition: or
        case-insensitive: true

      - type: status
        status:
          - 200
          - 403

    extractors:
      - type: regex
        part: body
        name: version
        regex:
          - 'Weebly ([0-9.]+)'
          - 'Powered by Weebly ([0-9.]+)'

      - type: regex
        part: body
        name: weebly_id
        regex:
          - 'weebly-site-id=([a-z0-9]+)'
          - 'weebly\.com/([^/]+)'
# digest: 4a0a00473045022100e9a0fbc6f82fcce3f65f2c2cfdf04fa3c4292c55207bb06456ce70a2e5937d7c0220028e38e073f13ba753fc89f1cea74cc262cdab7b9044b4ff7da82b23857e4bdb:922c64590222798bb761d5b6d8e72950