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

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: 4a0a0047304502205b3bed82454021407ebeb63423bcffc7abb2ad9ace59358ab79f7a49a5dc2dc5022100c9b1834fbda5f182deabd5b4149d308c50368b20f833e6d51cf13eae20d5d232:922c64590222798bb761d5b6d8e72950