id: salesforce-b2c-commerce-webdav

info:
  name: Salesforce B2C Commerce WebDAV - Detection
  author: batutahibnu17
  severity: info
  description: |
    Detects Salesforce B2C Commerce WebDAV by checking for specific patterns in a 404 response.
  reference:
    - https://help.salesforce.com/s/articleView?id=cc.b2c_import_export_transaction_handling_and_feed_size.htm&type=5
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"/waroot/style.css"
  tags: salesforce,tech,detect,discovery

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "/waroot/style.css"
          - "/waroot/system_arrow.gif"
        condition: and

      - type: status
        status:
          - 404
# digest: 490a0046304402204b49cc6175ff0337011bab437e93b9a666e05849f003067f81dc5b80188b200f02201b846df73d5f4bbfe4ade9269fbd7966b8c82a90c8b1cdeb3a165a9955d02342:922c64590222798bb761d5b6d8e72950